[FFmpeg-user] triming an audio wavfile

llee040 at sbcglobal.net llee040 at sbcglobal.net
Tue May 25 04:20:57 EEST 2021


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


More information about the ffmpeg-user mailing list