Skip to content

Instantly share code, notes, and snippets.

@boscomonkey
Created November 6, 2009 19:00
Show Gist options
  • Save boscomonkey/228182 to your computer and use it in GitHub Desktop.
Save boscomonkey/228182 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Use mencoder to create a video from image and audio files
# http://fmtyewtk.blogspot.com/2009/10/how-to-create-video-from-mp3-using.html
# suggests that we cannot use just 1 image file but the following seems to work (though
# vlc reports the video codec is NOT h264)
mencoder "mf://$1" -mf fps=1/60 -audiofile "$2" -oac mp3lame -ovc lavc -lavcopts vcodec=libx264 -noskip -mc 0 -ovc copy -o "$3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment