iFrame identification in encoded stream

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

iFrame identification in encoded stream

rohitratri@gmail.com
Hi Guys,

Is there a way to tell if an encoded frame returned by a demuxer(say qtdemux) is an inter-Frame (iFrame) or not?
Right now, I've written a routine to do this by parsing the initial few bits but that becomes difficult with increase in number of formats to support. Is there a GstBuffer property I can check to see if its an iFrame?

Thanks
Rohit

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: iFrame identification in encoded stream

Edward Hervey
Administrator
On Mon, 2011-01-10 at 22:27 +0530, Rohit Atri wrote:

> Hi Guys,
>
>
> Is there a way to tell if an encoded frame returned by a demuxer(say
> qtdemux) is an inter-Frame (iFrame) or not?
> Right now, I've written a routine to do this by parsing the initial
> few bits but that becomes difficult with increase in number of formats
> to support. Is there a GstBuffer property I can check to see if its an
> iFrame?
>

  Check if the GST_BUFFER_FLAG_DELTA_UNIT flag is set or not. If it's
not set... it's a keyframe.

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstBuffer.html#GstBufferFlag

>
> Thanks
> Rohit
> ------------------------------------------------------------------------------
> Gaining the trust of online customers is vital for the success of any company
> that requires sensitive data to be transmitted over the Web.   Learn how to
> best implement a security strategy that keeps consumers' information secure
> and instills the confidence they need to proceed with transactions.
> http://p.sf.net/sfu/oracle-sfdevnl 
> _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel