views:

184

answers:

5

What command line util can i use to create a thumbnail preview of a video i made? I do not want a single thumb that windows make, i want a large jpg file that has 30 or less shots so i can preview the movie w/o running it.

I either need an app that can do a batch at once or a command line util so i can loop through a folder or w/e i need and feed it to the util. I was thinking of hacking up ffplay to do this, i dont know what i am getting myself into so is that recommended? (i used SDL many times, never its YUV settings nor with ffmpeg)

+3  A: 

You can use ffmpeg to perform frame extraction, here's how I've done something similar

ffmpeg -i my_input_video.flv -y -an -sameq -f image2 -r 1 my_frame_%05d.jpg
  • -i my_input_video.flv specifies the input file
  • -y overwrite output files
  • -an disables audio (we're transcoding a video to a series of jpegs, we don't need audio)
  • -sameq - use same quality as source
  • -f image2 sets the output format to image2 (an image sequence)
  • The -r parameter is the frames per second, so the above command will produce one jpeg per second.

Once you have your collection of jpegs, you can use ImageMagick montage command to build a montage image.

Paul Dixon
A: 

Media Player Classic can make a collection (it's called save as thumbnail; with matrix i.e. 4x4), but only from a single file.

Peter
+1  A: 

Use mplayer:

mplayer -vo jpeg -frames 1 your_file

Will extract the first frame.

MatthieuP
+1  A: 

You could use MTN. It can scan whole directories and create thumbnails for every video found.

Sven Lilienthal
A: 

helped much. thanks to ffmpeg

I actually used MTN http://stackoverflow.com/questions/460779/what-can-i-use-to-automate-video-snapshots/460805#460805
acidzombie24