Saturday, 9 June 2012 - 2:55pm

Published by Matthew Davidson on Sat, 09/06/2012 - 2:55pm in

A few months ago I hit upon a workable ffmpeg one-liner to convert videos to a format my cheap LG video player understands. Of course I never made a note of it anywhere except my bash history, so when I next closed a bash session I'd had running in screen for months, the recipe dropped off the end of my bash history file. To avoid the subsequent hours of hair-tearing in future, here it is, as near as I can work out:

ffmpeg -i input.file -acodec libmp3lame -ab 128k -vcodec mpeg4 -r 25 -s 720x404 -vtag xvid -q:v 4 output.avi

(Corrections undoubtedly to follow.)