How to convert a video format with ffmpeg (mp4 to avi, move to mp4, ..) ?


This article shows you how to convert a video from one format to an another with ffmpeg


Command line

Once, you have installed it, you can run the following command.

from mp4 to avi

The command is pretty simple

ffmpeg -i input.mp4 output.avi

from mov to mp4

The command may also add more information such as the codec

ffmpeg -i {in-video}.mov -vcodec h264 -acodec aac {out-video}.mp4


Powered by ComboStrap