I've had a shot at this once before, probably a year or two ago and I was somewhat successful. One key thing that I could not crack was the -ss flag in ffmpeg which allows you to seek to a position. Whenever I used that flag the jpg extraction/conversion wouldn't work, instead it returned something like 'unknown option -ss'.
But recently a user in my forum suggested to give this another try. I grabbed the ffmpeg executable from Riva Encoder and tried again - this time it worked, probably due to a newer version of ffmpeg.
For reference the syntax I used is below. This will produce an output file with the name of 1.jpg. It's also possible to add other text to the filename but ffmpeg insists to have a numbering system in there.
ffmpeg -i video.flv -an -ss 00:00:03 -an -r 1 -vframes 1 -y %d.jpg
the options are as follow: -i input file -an Disable audio recording -ss seek to (in this case second 3 to avoid black frame at start) -vframes no idea what this does, could be framerate? Anyone know? -y overwrite output file
Note: I am not sure if this will work reliably or at all with VP6 encoded files. Please post a comment if you know if it does or not.
My version of ffmpeg can be downloaded here.


(just tried it and got nothing but a lot of "unsupported video codec" errors.. )
Simply using "-r 1" usually works too but sometimes this records two frames so it's a good idea to set both -r and -vframes to 1.
-i pathToStream.flv -vcodec png -vframes 1 -an -f rawvideo -s 106x106 pathToImage.png
//Pim
ffmpeg.exe -i stream_1146848749371.flv -y -f singlejpeg -ss 0.001 -vframes 1 -an test.jpg
//Pim
It looks like it is possible to use ON2 VP6 to encode FLV files :
http://sh0dan.blogspot.com/2006/09/command-line-fl...
The question is can it be done to encode all formats (qt, wmv, mpeg4, ...)
Pod
nice though.
BTW, here is another interesting thread :
http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2...
The commercial aspect needs to be investated further.
Pod.
I realize this thread is quite old, but, I thought I'd ask any ways. Is there an easy technique to grab the middle frame or atleast figure out at what time the middle of the video occurs at?
Thanks,
Matt
http://gallery.menalto.com/node/34767
[flv @ 0040F954]Unsupported video codec (4)
[flv @ 0040F954]Unsupported video codec (4)
[flv @ 0040F954]Unsupported video codec (4)
[flv @ 0040F954]Unsupported video codec (4)
test.flv: could not find codec parameters
I typed in the following:
C:\ffmpeg>ffmpeg.exe -i test.flv -y -f singlejpeg -ss 0.001 -vframes 1 -an test.
jpg
Does anyone know what I am doing wrong?
- download ffmpeg source
- download 'all' codec from mplayer site
- install codec in /usr/lib/codecs
- compile ffmpeg
You should now have an VP6 support
With the latest release (ffmpeg.rev12665.7z) I'm successfully producing PNG's from FLV's that use the VP6F codec.
Thank you to Julien and Stefan, as without either of you I'd have never found this solution.