[gst-devel] gst buffer to image

Mailing List SVR lists at svrinformatica.it
Sat Dec 5 19:39:31 CET 2009


Hi all,

I'm using a simple playbin pipeline, I can get the last frame with something 
like this:

In [124]: frame=player.get_property("frame")

In [125]: frame
Out[125]: <gst.Buffer 0x1fed6f0 of size 115200 and data 0x49484445>

now I can access frame.data that would be the raw frame data, but how to 
convert this frame to a jpg or png image? I tried to save the frame to a file 
and to convert with jpegenc and pngenc with no success, any suggestions?

thanks
Nicola




More information about the gstreamer-devel mailing list