A couple of days ago I got FFMPEG working to automatically generate FLV video files for OpenVlog. Today I finally got thumbnails generating correctly. Here are the commands:

This creates a JPEG:
ffmpeg -i inputfile -t 0.001 -ss 1 -vframes 1 -f mjpeg -s 320×240 outputfile.jpg

This creates a QT Movie that I am using as a reference movie (just one frame of video):
ffmpeg -i inputfile -t 0.001 -ss 1 -vframes 1 -vcodec mpeg4 -an outputfile.mov

I got this working with lots of help from the following pages:
Converting Video Formats with FFmpeg
Extracting JPG Frames Using FFmpeg and mjpeg Parameter

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • co.mments
  • Furl
  • NewsVine
  • Reddit
  • Slashdot
  • StumbleUpon
  • TailRank
  • Technorati
  • YahooMyWeb

2 Responses to “Flash, FFMPEG and now Thumbnails!”  

  1. 1 Igor Skomorokh

    Can you please show me a command sample which will help me to conwert avi file to flash format? Thaks!

  2. 2 vanevery

    Converting to mov files (thanks Cat):

    ffmpeg -i media.mp4 -ab 128 -b 1200 -vcodec mpeg4 -acodec ac3 media.mov

    Lines at the top of my perl script (Dreamhost doesn’t include environment variables so you have to put them in yourself):

    $ENV{’PATH’} = $ENV{’PATH’} . ‘:.:/home/MYUSERNAME/bin’;
    $ENV{’LD_LIBRARY_PATH’} = $ENV{’LD_LIBRARY_PATH’} . ‘:/home/MYUSERNAME/lib’;

    Compiled FFMPEG libs and bin folders for people on Dreamhost:
    http://www.walking-productions.com/dh_ffmpeg/

Leave a Reply