dynamically adding element and setting clock time to zero

vanderhoffer vanderhoffer at gmail.com
Tue Jan 17 19:24:10 UTC 2017


Hi Nicolas,

the main pipeline looks like this (shortened)
filesrc : jpeg -> videomixer (sink_0) -> rtmpsink
@45seconds dynamically add
rtmpsrc : mp4 vod file [start time = 45, should be 0] ->  videomixer
(sink_1) -> rtmpsink

The issue is when I add the rtmpsrc, what ever the current timestamp is from
the main pipeline, ie 45secods, that is the requested start time offset of
the rtmpsrc vod file. 

I would like to set the start offset time to zero or a custom value.

Does that make more sense?

I have tried the following,
1. set rtmpsrc src pad to push with -> *gst_element_set_state (myrtmpsrc,
GST_STATE_PLAYING);*
2. set rtmpsrc src pad -> *gst_element_set_start_time (myrtmpsrc,0);*
2a. confirm with  
    * printf("start time value: %" G_GUINT64_FORMAT
"\n",gst_element_get_start_time(myrtmpsrc));* // returns /start time value:
0/
3. set rtmpsrc src pad ->  *gst_pad_set_offset (myrtmpsrc_srcPad, 0);*

But none of these seem to effect the vod start offset. The clock time I add
the element at is the offset value requested. 


thx
Art




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/dynamically-adding-element-and-setting-clock-time-to-zero-tp4681501p4681512.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list