[FFmpeg-user] triming an audio wavfile

pink panther pantherlong at gmail.com
Tue May 25 04:40:23 EEST 2021


I tried it with the double quotes and got the following. Same out I got
using the other statements I got from the other links
C:\ffmpeg>
C:\ffmpeg>ffmpeg -i "Mohg729.wav" -ss 00:00:00.00 -t 00:01:00.00 -c:a copy
"Mohg729a.wav"
ffmpeg version N-101626-gc5341d415c Copyright (c) 2000-2021 the FFmpeg
developers
  built with gcc 9.3-win32 (GCC) 20200320
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static
--pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64
--target-os=mingw32 --enable-gpl --enable-version3 --disable-debug
--disable-w32threads --enable-pthreads --enable-iconv --enable-zlib
--enable-libxml2 --enable-libfreetype --enable-libfribidi --enable-gmp
--enable-lzma --enable-fontconfig --enable-opencl --enable-libvmaf
--disable-vulkan --enable-libvorbis --enable-amf --enable-libaom
--enable-avisynth --enable-libdav1d --enable-libdavs2 --enable-ffnvcodec
--enable-cuda-llvm --disable-libglslang --enable-libgme --enable-libass
--enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora
--enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2
--enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame
--enable-libuavs3d --enable-libvidstab --enable-libx264 --enable-libx265
--enable-libxavs2 --enable-libxvid --enable-libzimg
--extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags=
--extra-ldflags=-pthread --extra-libs=-lgomp
  libavutil      56. 69.100 / 56. 69.100
  libavcodec     58.133.100 / 58.133.100
  libavformat    58. 75.100 / 58. 75.100
  libavdevice    58. 12.100 / 58. 12.100
  libavfilter     7.109.100 /  7.109.100
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
[wav @ 00000215e03f4580] Estimating duration from bitrate, this may be
inaccurate
[wav @ 00000215e03f4580] Could not find codec parameters for stream 0
(Audio: none (3[1][0][0] / 0x0133), 8000 Hz, 1 channels, 8 kb/s): unknown
codec
Consider increasing the value for the 'analyzeduration' (0) and 'probesize'
(5000000) options
Guessed Channel Layout for Input Stream #0.0 : mono
Input #0, wav, from 'Mohg729.wav':
  Duration: 00:05:32.55, bitrate: 8 kb/s
  Stream #0:0: Audio: none (3[1][0][0] / 0x0133), 8000 Hz, mono, 8 kb/s
File 'Mohg729a.wav' already exists. Overwrite? [y/N] y
Output #0, wav, to 'Mohg729a.wav':
  Metadata:
    ISFT            : Lavf58.75.100
  Stream #0:0: Audio: none (3[1][0][0] / 0x0133), 8000 Hz, mono, 8 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown

C:\ffmpeg>

On Mon, May 24, 2021 at 9:33 PM pink panther <pantherlong at gmail.com> wrote:

> I wanted to send you the output again. This time with the quote removed
> just to try it. The output below
>
> C:\ffmpeg>ffmpeg -i Mohg729.wav -ss 00:00:00.00 -t 00:01:00.00 -c:a copy
> Mohg729a.wav
> ffmpeg version N-101626-gc5341d415c Copyright (c) 2000-2021 the FFmpeg
> developers
>   built with gcc 9.3-win32 (GCC) 20200320
>   configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static
> --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64
> --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug
> --disable-w32threads --enable-pthreads --enable-iconv --enable-zlib
> --enable-libxml2 --enable-libfreetype --enable-libfribidi --enable-gmp
> --enable-lzma --enable-fontconfig --enable-opencl --enable-libvmaf
> --disable-vulkan --enable-libvorbis --enable-amf --enable-libaom
> --enable-avisynth --enable-libdav1d --enable-libdavs2 --enable-ffnvcodec
> --enable-cuda-llvm --disable-libglslang --enable-libgme --enable-libass
> --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora
> --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx
> --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
> --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2
> --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame
> --enable-libuavs3d --enable-libvidstab --enable-libx264 --enable-libx265
> --enable-libxavs2 --enable-libxvid --enable-libzimg
> --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags=
> --extra-ldflags=-pthread --extra-libs=-lgomp
>   libavutil      56. 69.100 / 56. 69.100
>   libavcodec     58.133.100 / 58.133.100
>   libavformat    58. 75.100 / 58. 75.100
>   libavdevice    58. 12.100 / 58. 12.100
>   libavfilter     7.109.100 /  7.109.100
>   libswscale      5.  8.100 /  5.  8.100
>   libswresample   3.  8.100 /  3.  8.100
>   libpostproc    55.  8.100 / 55.  8.100
> [wav @ 000001e2b12a4580] Estimating duration from bitrate, this may be
> inaccurate
> [wav @ 000001e2b12a4580] Could not find codec parameters for stream 0
> (Audio: none (3[1][0][0] / 0x0133), 8000 Hz, 1 channels, 8 kb/s): unknown
> codec
> Consider increasing the value for the 'analyzeduration' (0) and
> 'probesize' (5000000) options
> Guessed Channel Layout for Input Stream #0.0 : mono
> Input #0, wav, from 'Mohg729.wav':
>   Duration: 00:05:32.55, bitrate: 8 kb/s
>   Stream #0:0: Audio: none (3[1][0][0] / 0x0133), 8000 Hz, mono, 8 kb/s
> Output #0, wav, to 'Mohg729a.wav':
>   Metadata:
>     ISFT            : Lavf58.75.100
>   Stream #0:0: Audio: none (3[1][0][0] / 0x0133), 8000 Hz, mono, 8 kb/s
> Stream mapping:
>   Stream #0:0 -> #0:0 (copy)
> Press [q] to stop, [?] for help
> size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
> video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
> muxing overhead: unknown
>
> C:\ffmpeg>
>
> On Mon, May 24, 2021 at 9:27 PM pink panther <pantherlong at gmail.com>
> wrote:
>
>> I  notice the extra space also. I removed it after sending the email to
>> you. That didn't work either.
>> The file extension is the same because I am not changing the type. I am
>> just trying to change the length of the music audio to 1 minute
>>
>> On Mon, May 24, 2021 at 9:21 PM llee040 at sbcglobal.net <
>> llee040 at sbcglobal.net> wrote:
>>
>>> On May 24, 2021, at 7:55 PM, pink panther <pantherlong at gmail.com> wrote:
>>> >
>>> > I got the error shown to the bottom of the page. Strange, because the
>>> file
>>> > is in the ffmpeg directory
>>> >
>>> > C:\ffmpeg>ffmpeg -i 'Mohg729.wav ' -ss 00:00:00.00 -t 00:01:00.00 -c:a
>>> copy
>>> > ‘Mohg729a.wav '
>>> > ffmpeg version N-101626-gc5341d415c Copyright (c) 2000-2021 the FFmpeg
>>> > developers
>>> >  built with gcc 9.3-win32 (GCC) 20200320
>>> >  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static
>>> > --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32-
>>> --arch=x86_64
>>> > --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug
>>> > --disable-w32threads --enable-pthreads --enable-iconv --enable-zlib
>>> > --enable-libxml2 --enable-libfreetype --enable-libfribidi --enable-gmp
>>> > --enable-lzma --enable-fontconfig --enable-opencl --enable-libvmaf
>>> > --disable-vulkan --enable-libvorbis --enable-amf --enable-libaom
>>> > --enable-avisynth --enable-libdav1d --enable-libdavs2
>>> --enable-ffnvcodec
>>> > --enable-cuda-llvm --disable-libglslang --enable-libgme --enable-libass
>>> > --enable-libbluray --enable-libmp3lame --enable-libopus
>>> --enable-libtheora
>>> > --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx
>>> > --enable-libopencore-amrnb --enable-libopencore-amrwb
>>> --enable-libopenjpeg
>>> > --enable-librav1e --enable-librubberband --enable-schannel
>>> --enable-sdl2
>>> > --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame
>>> > --enable-libuavs3d --enable-libvidstab --enable-libx264
>>> --enable-libx265
>>> > --enable-libxavs2 --enable-libxvid --enable-libzimg
>>> > --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags=
>>> > --extra-ldflags=-pthread --extra-libs=-lgomp
>>> >  libavutil      56. 69.100 / 56. 69.100
>>> >  libavcodec     58.133.100 / 58.133.100
>>> >  libavformat    58. 75.100 / 58. 75.100
>>> >  libavdevice    58. 12.100 / 58. 12.100
>>> >  libavfilter     7.109.100 /  7.109.100
>>> >  libswscale      5.  8.100 /  5.  8.100
>>> >  libswresample   3.  8.100 /  3.  8.100
>>> >  libpostproc    55.  8.100 / 55.  8.100
>>> > *'Mohg729.wav: No such file or directory*
>>> >
>>>
>>>
>>> I notice that there’s a space between the end of the file name and the
>>> final single quote in the file specification of your example. That could
>>> result in such an error. Also, the ffmpeg executable uses that file name
>>> extension (“.wav”), so I would suggest that you not use the space at the
>>> end of the output file specification, either.
>>>
>>> Laine
>>> _______________________________________________
>>> ffmpeg-user mailing list
>>> ffmpeg-user at ffmpeg.org
>>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>>
>>> To unsubscribe, visit link above, or email
>>> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>>>
>>


More information about the ffmpeg-user mailing list