Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turn a video into a sequence of images using GStreamer (not ffmpeg)

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.

like image 717
Amandasaurus Avatar asked Jun 26 '10 22:06

Amandasaurus


1 Answers

try multifilesink:

gst-launch filesrc location=video.ogv ! decodebin ! pngenc ! multifilesink location=img%d.png
like image 156
elmarco Avatar answered Nov 02 '22 23:11

elmarco