Batch Processing AVI to MP4

Good gawd these distro things spread like VD's. How many flavors of Ubuntu do we really need?
Post Reply
User avatar
«FC»Crimson
Administrator
Posts: 123
Joined: Fri Oct 02, 2020 3:33 am
Location: Chicago
Contact:

Batch Processing AVI to MP4

Code: Select all

sudo dnf install ffmpeg
The following packages have to be installed:
ffmpeg-4.4.1-1.fc35.x86_64 Digital VCR and streaming server
libavdevice-4.4.1-1.fc35.x86_64 Special devices muxing/demuxing library

Code: Select all

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