[gst-devel] ffdec_mpeg4 mpeg4 packet duration

Edward Hervey bilboed at gmail.com
Wed Jun 13 07:41:23 CEST 2007


Hi,

  If the stream is properly packetized (the mpeg4 was in a container
format), then each mpeg4 packet is an individual GstBuffer. You can
get the timestamp and duration of those buffers by using
GST_BUFFER_TIMESTAMP(thatbuffer) and GST_BUFFER_DURATION(thatbuffer).
The unit used is the nanosecond.

   Edward

On 6/11/07, Riccardo Corona <coronariccardo at gmail.com> wrote:
> Hi,
> is it possible to get the duration of an mpeg4 packet received from the
> ffdec_mpeg4 plugin?
> I've noted that, when I launch my gst-app with GST_DEBUG, the ffdec_mpeg4
> plugin write int the output some info like:
>
>
> 0:00:08.734375000 [333m  380 [00m 01622C38 [37mLOG  [00m [00;04m
> default :0::<mpeg4-decoder> [00m Received new data of size 14815,
> ts:0:02:08.371833333, dur:0:00:00.493833333
>
> 0:00: 08.734375000 [333m  380 [00m 01622C38 [37mLOG  [00m [00;04m
>  default :0::<mpeg4-decoder> [00m data:01D0BFD0, size:14815,
> ts:0:02:08.371833333, dur:0:00:00.493833333
>
> 0:00:08.734375000 [333m  380 [00m 01622C38 [36mDEBUG [00m [00;04m
>  default :0::<mpeg4-decoder> [00m QOS: qostime 0:02: 08.371833333, earliest
> 0:00:06.200000000
>
> How could I get this information with gst api?I've searched with
> gst-inspector for ffdec_mpeg4 but I did'nt find anything.
>
> Thank's to all of you.
> --
> Riccardo Corona
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>


-- 
Edward Hervey
Multimedia editing developer / Fluendo S.A.
http://www.pitivi.org/




More information about the gstreamer-devel mailing list