Saturday, 9 June 2012 - 2:55pm

Error message

  • Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in _menu_load_objects() (line 579 of /var/www/drupal-7.x/includes/menu.inc).
  • Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /var/www/drupal-7.x/includes/common.inc).
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.)