FFmpeg Batch Convert Video Files

preview_player
Показать описание
A quick demo on how to use FFmpeg to convert multiple video files to a different format.

Video assumes FFmpeg is already installed.

👋 Let's talk shop 👇

Credit for batch code and quality flags:

Рекомендации по теме
Комментарии
Автор

A treasure! Thank you so much, I really needed this!

clarkwayne
Автор

it shows command not found what I do wrong? ffmpeg works fine as a command in terminal

Cycling.Doughnut
Автор

Thanks, this worked for me.

It was a PIA to do on Windows because I didn't realize I needed Bash for it. I ended up using

for i in *.m2v;
do name=`echo "$i" | cut -d'.' -f1`
echo "$name"
ffmpeg -i "$i" -c copy "${name}.mp4"
done

as my script to remux mpeg2 into mp4. Much quicker than -qscale 0, which does indeed re-encode the video. This was going to be a problem for me because I've got a folder over around 200 videos.

Slavolko