Batch convert *.avi files using ffmpeg



As an IT administrator, you may find yourself needing to batch convert AVI files using FFmpeg. FFmpeg is a free, open source, and cross-platform multimedia framework that can be used to convert videos and audio files from one format to another. It is widely used in video editing and transcoding, as well as in the streaming media industry.

Using FFmpeg to batch convert AVI files can be quite simple, but there are a few steps you need to take first. Before you begin, you will need to download and install FFmpeg on your system. Once that is done, you will need to make sure that you have the correct AVI files that you want to convert. To do this, you can use a tool such as MediaInfo to check the file type and container type.

Once you have the correct files, you will need to open the command line and navigate to the directory containing the AVI files. To convert the AVI files to another format, you will need to use a command line command similar to the following:

ffmpeg -i input.avi -c:v libx264 -preset slow -crf 22 -c:a libvo_aacenc -b:a 128k output.mp4

This command will convert the AVI files to an MP4 format with libx264 as the video codec and libvo_aacenc as the audio codec. It will also use the “-preset slow” setting and a CRF of 22.

In order to batch convert AVI files, you will need to use the “-f” flag and specify the output format. For example, the following command will batch convert AVI files to MP4 files:

ffmpeg -i *.avi -c:v libx264 -preset slow -crf 22 -c:a libvo_aacenc -b:a 128k -f mp4 *.mp4

Finally, you can use the “-map” flag to specify which streams should be included in the output file. For example, the following command will include only the audio stream in the output file:

ffmpeg -i *.avi -c:v libx264 -preset slow -crf 22 -c:a libvo_aacenc -b:a 128k -f mp4 -map 0:a *.mp4

Using the commands above, you can easily batch convert AVI files using FFmpeg. This can be a great time-saver for IT administrators who need to quickly convert a large number of files.

Inquire Now

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Find your next full or part-time role here

ScaleDesk can either help you find your next full time gig or a part time side gig where you can create extra income!

Onboard with us once
Skip HR screening and go to the final interview with with only your resume and a video interview you never have to redo
Get paid electronically every month for the hours you work
We will be your reference even if you work for us once

IT Teams: Use ScaleDesk to augment your team

Schedule Demo