ffmpeg -i input.mp4 output.avi

Category: Media & Conversion

ffmpeg -i input.mp4 output.avi

Transcode a video to a different container and codec

Converts input.mp4 to AVI, guessing the output format and default codecs (video and audio compression algorithms) from the .avi extension. Defaults are rarely optimal, so serious work usually names codecs explicitly with -c:v and -c:a as in the H.264 example. Run ffprobe first to see what streams the file contains.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.