Tagged under: linux
This post is mostly for my own reference as I keep forgetting the correct parameters. To convert an MP4 file to an AVI file use ffmpeg and supply the codecs like so:
ffmpeg -i input.mp4 -vcodec mpeg4 -acodec ac3 -ar 48000 -ab 192k output.avi
-vcodec is the video codec
-acodec is the audio codec
-ar is the audio sampling frequency
-ab is the bit stream
Running the command above will create output.avi.
This requires ffmepeg to be installed. In Ubuntu do the following:
sudo apt-get install ffmpeg