Timestamp problem...

Eric Trousset etrousset at awox.com
Mon Nov 25 09:00:03 PST 2013



> -----Original Message-----
> From: Edward Hervey [mailto:bilboed at bilboed.com]
> Sent: lundi 25 novembre 2013 17:47
> To: Discussion of the development of and with GStreamer
> Subject: Re: Timestamp problem...
> 
> On Mon, 2013-11-25 at 17:16 +0100, Eric Trousset wrote:
> > Hi,
> >
> >
> >
> > In my effort to write a src element, and to mix the outgoing buffers
> > with a video stream(at the moment, I just have 1 stream, I’ll had the
> > media later on), I need to timestamp those buffers.
> >
> >
> >
> > So I tried two things:
> >
> > -          First I tried calling gst_base_src_do_timestamp, but it
> > seems to have no effect. My outgoing buffers are still not
> > timestamped. I tried to give a clock to the source element using the
> > gst_system_clock_obtain, or getting one from the pipeline with no
> > chance…
> 
>   I think you also need to specify you work in time (gst_base_src_set_format
> iirc)
> 
>     Edward

Yes, I did this already, must be missing something else...

> 
> >
> > -          Secondly I tried timestamping the outgoing buffer myself.
> > Wath I did is in the start, call set_clock with the system clock, and
> > call set_base_time with time from the same clock. The in the create
> > function I set PTSand DTS to current_time – base_time. This is not far
> > from work, but still it seem the video sink drops a lot of frame and
> > the display is not updated very often.
> >
> >
> >
> > Any advice on how to properly set my time stamps (videomixer seems to
> > need those).
> >
> > Also, when I query the position to my pipeline, it changes only when
> > the video sink drop frames and display a new buffer.
> >
> >
> >
> > Regards,
> >
> > Eric T.
> >
> >
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 
> --
> Edward Hervey
> bilboed at bilboed.com
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list