6
votes

I have an ogg vorbis video. It plays fine in totem and mplayer. I want to covert it to a sequnces of images, one image per frame. I can do this on ffmpeg with the following command:

ffmpeg -i video.ogv -f image 2 video-frames-%08png

However that doesn't work for this video. Each frame is all grey as if there has been loads of decoding problems. Since it works in totem, I suspect that gstreamer is better able to decode the video than ffmpeg. Is there a gstreamer command that will take in a ogg vorbis video and then create a pile of images, one for each frame?

I'm using stock Ubuntu Lucid desktop.

1
Actually, the correct command line for ffmpeg seems to be ffmpeg -i video.ogv -an -f image2 "video-frames-%08d.png"sdaau

1 Answers

8
votes

try multifilesink:

gst-launch filesrc location=video.ogv ! decodebin ! pngenc ! multifilesink location=img%d.png