dynamically adding element and setting clock time to zero

Nicolas Dufresne nicolas at ndufresne.ca
Tue Jan 17 19:05:04 UTC 2017


Le mardi 17 janvier 2017 à 10:43 -0800, vanderhoffer a écrit :
> I am adding a rtmpsink element that is pulling a vod file from a
> media
> server.
> I note that when I add it to the pipeline this element is requesting
> the
> start time of the file as the current run time of the pipeline clock.
> 
> pipeline clock = 45 secs
> -> add rtmpsink -> set location ->   gst_pad_activate_mode ( pad,
> GST_PAD_MODE_PUSH, TRUE);
> -> file plays from 45 secs
> 
> pipeline clock = 70 secs
> -> add rtmpsink -> set location ->   gst_pad_activate_mode ( pad,
> GST_PAD_MODE_PUSH, TRUE);
> -> file plays from 70 secs
> 
> *What is the clock or g_object parameter to request a custom start
> time,
> such as 10 seconds *
> pipeline clock = 30 secs
> -> add rtmpsink -> set location ->   gst_pad_activate_mode ( pad,
> GST_PAD_MODE_PUSH, TRUE);

I am not sure if I can understand your question. Can you clarify what
pipeline, and what you are adding removing.

Nicolas

p.s. for time adjustment, there is gst_pad_set_offset() which may or
may not be what you are looking for,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170117/e0101cd3/attachment-0001.sig>


More information about the gstreamer-devel mailing list