<div dir="ltr"><div><span style="color:rgb(80,0,80);font-size:12.8px">I have this errors (below) and therefore no output only if I use </span><span style="color:rgb(80,0,80);font-size:12.8px">avenc_mpeg2video   encoder (mpeg2 encoder from libav library)</span></div><span style="color:rgb(80,0,80);font-size:12.8px"><div><span style="color:rgb(80,0,80);font-size:12.8px"><br></span></div>0:00:05.380162265  6452 00000000038D2F80 ERROR                  libav</span><span style="color:rgb(80,0,80);font-size:12.8px">:0:: Invalid pts (72) <= last (77) </span><div><span style="color:rgb(80,0,80);font-size:12.8px">0:00:05.380587743  6452 00000000038D2F80 ERROR                  libav      </span><span style="color:rgb(80,0,80);font-size:12.8px">gstavvidenc.c:706:gst_</span><span style="color:rgb(80,0,80);font-size:12.8px">ffmpegvidenc_handle_frame:<</span><span style="color:rgb(80,0,80);font-size:12.8px">customMpeg2videoPres</span><span style="color:rgb(80,0,80);font-size:12.8px">et> avenc_mpeg2video:  failed to encode buffer</span><br></div><div><span style="color:rgb(80,0,80);font-size:12.8px"><br></span></div><div><span style="color:rgb(80,0,80);font-size:12.8px">If I use exact same pipeline but use h264 encoder instead of mpeg2 - it doesn't complain and produce perfect quality output.</span></div><div><span style="color:rgb(80,0,80);font-size:12.8px">I've tried to see if I can find any specific encoder settings which could fix my problem but couldn't find anything. No matter what I try in </span><span style="color:rgb(80,0,80);font-size:12.8px">avenc_mpeg2video settings give me the same error (posted above).</span></div><div><span style="color:rgb(80,0,80);font-size:12.8px"><br></span></div><div><span style="color:rgb(80,0,80);font-size:12.8px">Answering your last message - what's the best way to check PTS and running times of the buffers in my video-sink?</span></div><div><span style="color:rgb(80,0,80);font-size:12.8px">Thanks,</span></div><div><span style="color:rgb(80,0,80);font-size:12.8px">MG</span></div><div><span style="color:rgb(80,0,80);font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 13 June 2016 at 03:24, 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 Fr, 2016-06-10 at 15:32 -0400, Michael Guinzbourg wrote:<br>
> Thanks a lot for the ideas. I will definitely look into GES. From the<br>
> first 10 min reading I couldn't find how GES pipeline can stream the<br>
> resulted stream to the network. My application is reading live stream<br>
> from the network, making some manipulation and stream the output to<br>
> the network. I've seen GES sink has audio and video sinks for the<br>
> preview but I'm looking into muxing into mpegts container and<br>
> streaming it to UDP.<br>
<br>
</span>Instead of rendering to a file, it should also be possible to render to<br>
an MPEG-TS container and send over UDP. But your live requirements<br>
might make GES not an ideal choice, you would have to try.<br>
<br>
In any case you would have to implement similar mechanisms for the time<br>
offsetting, maybe simpler. However as you use playbin's gapless<br>
mechanism, it should already do that for you.<br>
<span class=""><br>
> Talking about time adjustment, my current pipeline is using playbin<br>
> and convert live web stream (which are items in m3u8 playlist) into<br>
> the continuous stream. And the reason for this design is the abilty<br>
> of the playbin to connect playlist items together using 'about-to-<br>
> finish' signal into endless stream. The pipeline doesn't hit EOS, it<br>
> just plays it gaplessly. If I use playbin's default video sink the<br>
> quality of stream is perfect, no gaps. I thought that if I connect<br>
> videosink to my custom bin which contains encoder, etc, then I will<br>
> have perfect solution. Instead, encoder complains about pts not<br>
> coming in order.<br>
<br>
</span>This should actually work, it might be that the encoder is looking at<br>
the actual PTS (and complains about it jumping backwards) instead of<br>
looking at the running time (which should be monotonically increasing).<br>
<br>
Please check the PTS and running times of the buffers that you get in<br>
your custom video-sink :)<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>