Tim,
<br/><br/>Your alternative suggestion looks like it might nicely fit my needs. I
<br/>am already supporting playback to a local window in conjunction with
<br/>the udpSink just in 2 independent pipelines. I assume that if I want
<br/>to modify my existing pipeline that plays to a local window to also
<br/>support the intervideosink then I will have to tee the pipleline.
<br/><br/>I will give this coupling approach a try.
<br/><br/>Thanks a lot,
<br/>Doug
<br/><br/>On Tue, Sep 27, 2016 at 5:37 PM, Tim Müller [via GStreamer-devel]
<br/><<a href="/user/SendEmail.jtp?type=node&node=4679843&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:
<div class='shrinkable-quote'><br/>> On Tue, 2016-09-27 at 12:54 -0700, doubledw wrote:
<br/>>
<br/>> Hi,
<br/>>
<br/>> At first glance it looks like the encoder not handling seeks / flushing
<br/>> properly.
<br/>>
<br/>> I have something else for you to try which might work better for you:
<br/>>
<br/>> Create two separate pipelines in the same application - one that
<br/>> encodes/streams and one that decodes/seeks/etc.
<br/>>
<br/>> In the playback pipeline you use intervideosink as video sink, and in
<br/>> the encoding pipeline you use intervideosrc as source element.
<br/>>
<br/>> The video data from the intervideosink will be sent to the
<br/>> intervideosrc, but both are decoupled, so if you pause the playback
<br/>> pipeline, the streaming pipeline will just keep repeating and streaming
<br/>> the last frame (or go black after a while, depending what you set the
<br/>> timeout to). If you seek on the playback pipeline the streaming part
<br/>> will repeat the last frame until the seek is complete and then output
<br/>> frames from the new position (but with monotonically increasing
<br/>> timestamps, so the encoder will never know there was a discontinuity).
<br/>> If you play back at half speed or double speed, the streaming part will
<br/>> encode that at the playback speed and stream it out normally.
<br/>>
<br/>> For the decoding pipeline you can just use a playbin element and set
<br/>> the "video-sink" property to an intervideosink (GstElement *).
<br/>>
<br/>> On the streaming pipeline you want something like:
<br/>>
<br/>> intervideosrc ! video/x-raw,framerate=25/1 ! videoconvert
<br/>> ! avenc_mpeg2video ! mpegtsmux ! udpsink
<br/>>
<br/>> If you want audio as well, there's also interaudiosink/src which work
<br/>> the same way.
<br/>>
<br/>> Good luck!
<br/>>
<br/>> Cheers
<br/>> -Tim
<br/>>
<br/>> --
<br/>> Tim Müller, Centricular Ltd - <a href="http://www.centricular.com" target="_top" rel="nofollow" link="external">http://www.centricular.com</a><br/>>
<br/>> Join us at the GStreamer Conference!
<br/>> 10-11 October 2016 in Berlin,
<br/>> Germany
<br/>> <a href="http://gstreamer.freedesktop.org/conference/" target="_top" rel="nofollow" link="external">http://gstreamer.freedesktop.org/conference/</a><br/>>
<br/>> _______________________________________________
<br/>> gstreamer-devel mailing list
<br/>> [hidden email]
<br/>> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_top" rel="nofollow" link="external">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br/>>
<br/>>
<br/>> ________________________________
<br/>> If you reply to this email, your message will be added to the discussion
<br/>> below:
<br/>> <a href="http://gstreamer-devel.966125.n4.nabble.com/Seeking-when-streaming-to-udpSink-tp4678702p4679823.html" target="_top" rel="nofollow" link="external">http://gstreamer-devel.966125.n4.nabble.com/Seeking-when-streaming-to-udpSink-tp4678702p4679823.html</a><br/>> To unsubscribe from Seeking when streaming to udpSink, click here.
<br/>> NAML
</div><br/><br/><br/>--
<br/>Doug Wood | Principal Software Engineer
<br/>VT MÄK | 150 Cambridge Park Drive, Third Floor, Cambridge, MA 02140
<br/>T: +1.407.359.2725 / +1.617.876.8085
<br/><a href="/user/SendEmail.jtp?type=node&node=4679843&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> | www.mak.com
<br/>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Seeking-when-streaming-to-udpSink-tp4678702p4679843.html">Re: Seeking when streaming to udpSink</a><br/>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>