TODDBLOG/ posts/ generating video thumbnails

Here is today's contribution to the global pool. This data is a little hard to find.

As far as I know there are two FLOSS ways to make video thumbnails. Using mencoder:

mencoder /tmp/tmpMPbaKN/35dffc402a4b439978e6e05170d401c76b3c8cf0 -ovc lavc
-nosound -lavcopts vcodec=mjpeg:vqscale=2 vf scale=100 -of lavf -lavfopts
i_certify_that_my_video_stream_does_not_use_b_frames:format=image2pipe -ss
1.0 -frames 1 -o out.jpg

...and using ffmpeg:

ffmpeg -i /tmp/tmpMPbaKN/35dffc402a4b439978e6e05170d401c76b3c8cf0 -f mjpeg -t 0.01 -y out.jpg

Neither one works particularly well with incomplete video files.