<div dir="ltr">Thanks a lot for the ideas. I will definitely look into GES. From the first 10 min reading I couldn't find how GES pipeline can stream the resulted stream to the network. My application is reading live stream from the network, making some manipulation and stream the output to the network. I've seen GES sink has audio and video sinks for the preview but I'm looking into muxing into mpegts container and streaming it to UDP.<div>Talking about time adjustment, my current pipeline is using playbin and convert live web stream (which are items in m3u8 playlist) into the continuous stream. And the reason for this design is the abilty of the playbin to connect playlist items together using 'about-to-finish' signal into endless stream. The pipeline doesn't hit EOS, it just plays it gaplessly. If I use playbin's default video sink the quality of stream is perfect, no gaps. I thought that if I connect videosink to my custom bin which contains encoder, etc, then I will have perfect solution. Instead, encoder complains about pts not coming in order. I've searched devel discussions and found similar questions but I couldn't find any resolutions. I really appreciate if anybody can come up with the reasonable solution. Thanks a lot again for the help!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 10 June 2016 at 03:26, Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Do, 2016-06-09 at 10:17 -0400, Michael Guinzbourg wrote:<br>
> Sebastian, thank you so much for your great support and patience. I<br>
> think I figured out the root cause of the problem here.<br>
> The errors are due to the fact that I'm trying to encode a stream<br>
> which is taken as an output from the playbin (I have custom videosink<br>
> connected to playbin). The source video is a playlist which plays<br>
> live feed from web cam. The problem is that the source plays the same<br>
> stream several times before it shifts to the next available time. The<br>
> encoder reads same stream several times and expect that we move<br>
> forward in time but we keep playing same chunk of data many times.<br>
> There's perfect output from the playbin for this stream but if I<br>
> direct it to the encodeer it complains with the errors like pts is<br>
> less then it should be. Could you please advice me how I can handle<br>
> this problem? So somehow I need to tell encoder - please ignore pts<br>
> and treat all incoming data as sequential. I couldn't find how I can<br>
> do it but you may have some idea for me.<br>
<br>
</span>You will have to offset (gst_pad_set_offset() for example) the running<br>
time by the amount of time that was played after every track, or<br>
alternatively use the gapless feature of playbin (the about-to-finish<br>
signal), which also does that. If switching from one track to another<br>
involves going back to the READY state, or flushing seeks, you will<br>
have to solve that so the encoder sees a continuous timeline.<br>
<br>
Maybe for your use case it would be best to use GES, which allows you<br>
to set up a timeline of clips in some way and then render that to a<br>
file or to the display.<br>
<a href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-editing-services/html/" rel="noreferrer" target="_blank">https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-editing-services/html/</a><br>
<br>
It should make what you're doing here almost trivial :)<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com" rel="noreferrer" target="_blank">http://www.centricular.com</a></div></div><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>