[gst-devel] Gstbuffers and types of images

Stefan Kost ensonic at hora-obscura.de
Mon Jun 21 17:07:36 CEST 2010


On 15.06.2010 15:26, Alexis Berlemont wrote:
> Hi,
>
> I noticed that the plugin mpegvideoparse is able to find out the
> images types (I, P, B) which flow through it in Gstbuffers.
>
> And, if the image type is not "I", mpegvideoparse sets the flag
> GST_BUFFER_FLAG_DELTA_UNIT (which means that the image cannot be
> decoded independently). That allows me to differentiate intra from
> inter images. Unfortunately, I am unable to differentiate inter images
> (P or B).
>
> If I have to write a little plugin which re-reads the picture header,
> what would be the correct Gstreamer way to send this info to the next
> Gstreamer element (tag ?, ...) ?
>   
Another flag, but we're out of spare flags. This might be another
use-case for GstBuffer2:
http://cgit.freedesktop.org/gstreamer/gstreamer/tree/docs/design/draft-buffer2.txt

Stefan

> Many thanks in advance.
>
> Alexis.
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate 
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
> lucky parental unit.  See the prize list and enter to win: 
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>   





More information about the gstreamer-devel mailing list