[gst-devel] Converting a videostream to individual frames and vice versa

Sjoerd Simons sjoerd at spring.luon.net
Mon May 15 03:31:46 CEST 2006


On Sun, May 14, 2006 at 10:47:48PM +0200, Lutz Müller wrote:
> On Sun, 2006-05-14 at 22:11 +0200, Jaap Haitsma wrote:
> > Is it possible to make a pipeline that converts for example an mpeg2
> > file to one jpeg file for every frame? And vice versa?
> > To clarify even more I'd like to convert video.mpg which contains 250
> > frames to:
> > video.001.jpg
> > video.002.jpg
> > video.003.jpg
> > .
> > .
> > .
> > video.250.jpg

I recently did something like that by using the handoff signal of fakesink.
Just connect a fakesink after jpegenc, set the signal-handoffs property to true,
connect a handler to the handoff signal and add some code to write the passed
GstBuffer to a file (Each buffer will contain one jpeg).

  Sjoerd
-- 
Measure with a micrometer.  Mark with chalk.  Cut with an axe.




More information about the gstreamer-devel mailing list