Converting ogv to mp4 on Linux

April 12, 2013

I have some video files in ogv format that I need in mp4 so I can use them in Adobe Premiere Elements.

I did this with the following command:

$ ffmpeg -i input.ogv -aq 80 -vcodec libx264 -preset slow -crf 5 -threads 0 output.mp4

input.ogv is the input file. output.mp4 is the output file. The value 5 after -crf controls the quality - larger numbers are lower quality (and therefore smaller files).