[gst-devel] video frame type identification

sudarshan bisht bisht.sudarshan at gmail.com
Tue Jan 11 22:34:45 CET 2011


I think this has been already asked by you in previous mail, and you got the
answer also :)


> 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

On Wed, Dec 15, 2010 at 9:31 PM, rohitratri at gmail.com
<rohitratri at gmail.com>wrote:

>
> Hi,
>
> Is there a way to identify the type of video frame within an encoded packet
> returned by qtdemux? May be some caps I can check on the GstBuffer return
> by
> qtdemux?
>
> Note - I use appsink to pull buffers out of the pipeline and process them -
> need to know the type of frame for processing the encoded packet
>
> Thanks
> Rohit
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/video-frame-type-identification-tp3089291p3089291.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> 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
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



-- 
Regards,

Sudarshan Bisht
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110112/4fc54ce4/attachment.htm>


More information about the gstreamer-devel mailing list