How do you convert an entire directory/folder with ffmpeg via command line or with a batch script?
相关问题
- Improving accuracy of Google Cloud Speech API
- Spring Batch - late binding of commit interval not
- MP4 codec support in Chromium
- Streaming video (C# using FFmpeg AutoGen) sends mu
- How do I decode opus file to pcm file using libavc
相关文章
- Handling ffmpeg library interface change when upgr
- How to use a framework build of Python with Anacon
- c++ mp3 library [closed]
- Passing a native fd int to FFMPEG from openable UR
- FFmpeg - What does non monotonically increasing dt
- ffmpeg run from shell runs properly, but does not
- Issues in executing FFmpeg command in Java code in
- Terminal text becomes invisible after terminating
I know this might be redundant but I use this script to batch convert files.
It takes 2 arguments to make it more flexible :
I create an alias for it but you can also use it manually like this:
This would convert all the
mkv
files intomp4
files.As you can see it slightly more versatile. As long as
ffmpeg
can convert it you can specify any two extensions.If you have GNU parallel you could convert all .avi files below
vid_dir
to mp4 in parallel, using all except one of your CPU cores withTo convert from/to different formats, change
'*.avi'
or.mp4
as needed. GNU parallel is listed in most Linux distributions' repositories in a package which is usually calledparallel
.And on Windows:
For anyone who wants to batch convert anything with ffmpeg but would like to have a convenient Windows interface, I developed this front-end:
https://sourceforge.net/projects/ffmpeg-batch
It adds to ffmpeg a window fashion interface, progress bars and time remaining info, features I always missed when using ffmpeg.
Previous answer will only create 1 output file called out.mov. To make a separate output file for each old movie, try this.
If you want a graphical interface to batch process with ffmpegX, try Quick Batcher. It's free and will take your last ffmpegX settings to convert files you drop into it.
Note that you can't drag-drop folders onto Quick Batcher. So select files and then put them through Quick Batcher.