ffmpeg error: No such file or directory

Asked 1 years ago, Updated 1 years ago, 441 views

I asked the same question before, but I was advised to put a command on it, so I'm reposting it.

I would like to compress mp4 with ffmpeg and eventually convert it to VOB, but I get the following error.
The original file name is original.mp4 for convenience.

We are looking forward to hearing from experts who understand what's wrong.

C:\Users\USER>ffmpeg\ffmpeg.exe
ffmpeg version N-108306-ge7a987d7c9-20220923 Copyright (c) 2000-2022 the FFmpeg developers
  build with gcc 12.1.0 (crossstool-NG 1.25.0.55_3defb7b)
  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 --enable-shared --disable-static --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --disable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=--extra-libs=-lgomp --extra-version=20220923
  libavutil 57.36.102/57.36.102
  libavcodec 59.44.101/59.44.101
  libavformat 59.32.101/59.32.101
  libavdevice59.8.101/59.8.101
  libavfilter 8.49.100 / 8.49.100
  libswscale 6.8.112 / 6.8.112
  libswresample 4.9.100 / 4.9.100
  libpostproc 56.7.100 / 56.7.100
Hyperfast Audio and Video Encoder
usage:ffmpeg [options] [[infile options] -i profile] ... {[outfile options] outfile} ...

Use-h to get full helper, even better, run 'man ffmpeg'
 C:\Users\USER>ffmpeg-i original.mp4-crf10 compressed.mp4
ffmpeg version N-108306-ge7a987d7c9-20220923 Copyright (c) 2000-2022 the FFmpeg developers
  build with gcc 12.1.0 (crossstool-NG 1.25.0.55_3defb7b)
  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 --enable-shared --disable-static --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --disable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags=--extra-libs=-lgomp --extra-version=20220923
  libavutil 57.36.102/57.36.102
  libavcodec 59.44.101/59.44.101
  libavformat 59.32.101/59.32.101
  libavdevice59.8.101/59.8.101
  libavfilter 8.49.100 / 8.49.100
  libswscale 6.8.112 / 6.8.112
  libswresample 4.9.100 / 4.9.100
  libpostproc 56.7.100 / 56.7.100
original.mp4 —No such file or directory

windows ffmpeg

2022-10-06 01:00

2 Answers

"original.mp4:No such file or directory" is an error that the specified file cannot be found.

Move the video file to the same folder as ffmpeg.exe before running it or
Alternatively, try the following method: "Go to the folder with the video file" and then "Call FFmpeg in the full path."

C:\>cd Folder with Movies

C:\Folder with Videos > C:\Users\USER\ffmpeg\ffmpeg.exe -ioriginal.mp4-crf10compressed.mp4


2022-10-06 01:00

After that, try starting ffmpeg.exe using @cubick's procedure.

Originally, it is not troublesome to add a directory where ffmpeg.exe is placed in the environment variable PATH with advanced system settings→environment variable→user environment variable...


2022-10-06 01:00

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.