Flash, FFMPEG and now Thumbnails!

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

3 thoughts on “Flash, FFMPEG and now Thumbnails!”

  1. 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/

  2. Can you please show us a ffmeg command to convert avi to Android G1 compatible video.
    Thanks
    Sudip

Leave a Reply

Your email address will not be published. Required fields are marked *