<div dir="ltr">Sebastian, thank you so much for your great support and patience. I think I figured out the root cause of the problem here.<div>The errors are due to the fact that I'm trying to encode a stream which is taken as an output from the playbin (I have custom videosink connected to playbin). The source video is a playlist which plays live feed from web cam. The problem is that the source plays the same stream several times before it shifts to the next available time. The encoder reads same stream several times and expect that we move forward in time but we keep playing same chunk of data many times. There's perfect output from the playbin for this stream but if I direct it to the encodeer it complains with the errors like pts is less then it should be. Could you please advice me how I can handle this problem? So somehow I need to tell encoder - please ignore pts and treat all incoming data as sequential. I couldn't find how I can do it but you may have some idea for me.</div><div>Thanks,</div><div>MG</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 6 June 2016 at 03:21, 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 Sa, 2016-06-04 at 13:36 -0400, Michael Guinzbourg wrote:<br>
> sorry for the incomplete trace, here it is:<br>
><br>
> 0:00:05.380162265  6452 00000000038D2F80 ERROR                  libav<br>
> :0:: Invalid pts (72) <= last (77)<br>
> 0:00:05.380587743  6452 00000000038D2F80 ERROR                  libav<br>
> gstavvidenc.c:706:gst_ffmpegvidenc_handle_frame:<customMpeg2videoPres<br>
> et> avenc_mpeg2video:  failed to encode buffer<br>
<br>
</span>This still is very incomplete with only two lines.<br>
<br>
Please try to provide an as simple as possible testcase (with as few<br>
elements as needed, which as little dynamic behaviour as possible) to<br>
reproduce this problem.<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>