Gstbuffers and types of images

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Gstbuffers and types of images

Alexis Berlemont
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 ?, ...) ?

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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gstbuffers and types of images

Stefan Sauer
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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>  


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel