<div dir="ltr">sorry for the incomplete trace, here it is:<div><br></div><div><div>0:00:05.380162265  6452 00000000038D2F80 ERROR                  libav :0:: Invalid pts (72) <= last (77)</div><div>0:00:05.380587743  6452 00000000038D2F80 ERROR                  libav gstavvidenc.c:706:gst_ffmpegvidenc_handle_frame:<customMpeg2videoPreset> avenc_mpeg2video:  failed to encode buffer</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 4 June 2016 at 13:32, Michael Guinzbourg <span dir="ltr"><<a href="mailto:mguinzbourg@gmail.com" target="_blank">mguinzbourg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">after some more investigation I finally got the error from the element at fault: avenc_mpeg2video error invalid pts (40) <= last (50)<div>this error is produced immediately when pipeline receives EOS. After this error avenc_mpeg2video plugin is not operational.</div><div>the exact trace is below:</div><div><br></div><div><div>0:00:05.358383054  6440 0000000003A53F80 ERROR                  libav gstavvidenc.c:706:gst_ffmpegvidenc_handle_frame:<customMpeg2videoPreset> avenc_mpeg2video:</div><div> failed to encode buffer.</div></div><div><br></div><div>Any idea from you is highly appreciated.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 12 May 2016 at 06:47, Michael Guinzbourg <span dir="ltr"><<a href="mailto:mguinzbourg@gmail.com" target="_blank">mguinzbourg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm on Windows 7, 64 bit, GST version 1.8.1,<br>
Thanks for helping me, backtrace is coming. I need to learn how to use gdb.<br>
<br>
Sent from my iPhone<br>
<div><div><br>
> On May 12, 2016, at 2:13 AM, Sebastian Dröge <<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>> wrote:<br>
><br>
>> On Mi, 2016-05-11 at 21:21 -0400, Michael Guinzbourg wrote:<br>
>> I've made for you very simple application which you can use to<br>
>> reproduce the problem. It takes the video stream as a source, decodes<br>
>> it, encodes it into mpeg2, mux it into mpegts container, saves it to<br>
>> file. you can use any video file as a source. As the file reaches the<br>
>> end pipeline receives EOS event, at the event I try to set pipeline<br>
>> to GST_STATE_READY, it causes a crash. Here's complete code below. I<br>
>> will try to give you backtrace with gdb later.<br>
><br>
> Your code was missing includes. Please provide *complete* code in the<br>
> future :)<br>
><br>
> It does not crash on Linux here with GStreamer 1.8.1. Which version are<br>
> you running, and this is on Windows? 32 bit or 64 bit?<br>
><br>
> Maybe the gdb backtrace will show something useful.<br>
><br>
> --<br>
> Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com" rel="noreferrer" target="_blank">http://www.centricular.com</a><br>
><br>
</div></div><div><div>> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">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>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>