Crash when trying to stop pipeline containing encodebin

Michael Guinzbourg mguinzbourg at gmail.com
Sat Jun 4 17:32:49 UTC 2016


after some more investigation I finally got the error from the element at
fault: avenc_mpeg2video error invalid pts (40) <= last (50)
this error is produced immediately when pipeline receives EOS. After this
error avenc_mpeg2video plugin is not operational.
the exact trace is below:

0:00:05.358383054  6440 0000000003A53F80 ERROR                  libav
gstavvidenc.c:706:gst_ffmpegvidenc_handle_frame:<customMpeg2videoPreset>
avenc_mpeg2video:
 failed to encode buffer.

Any idea from you is highly appreciated.

On 12 May 2016 at 06:47, Michael Guinzbourg <mguinzbourg at gmail.com> wrote:

> I'm on Windows 7, 64 bit, GST version 1.8.1,
> Thanks for helping me, backtrace is coming. I need to learn how to use gdb.
>
> Sent from my iPhone
>
> > On May 12, 2016, at 2:13 AM, Sebastian Dröge <sebastian at centricular.com>
> wrote:
> >
> >> On Mi, 2016-05-11 at 21:21 -0400, Michael Guinzbourg wrote:
> >> I've made for you very simple application which you can use to
> >> reproduce the problem. It takes the video stream as a source, decodes
> >> it, encodes it into mpeg2, mux it into mpegts container, saves it to
> >> file. you can use any video file as a source. As the file reaches the
> >> end pipeline receives EOS event, at the event I try to set pipeline
> >> to GST_STATE_READY, it causes a crash. Here's complete code below. I
> >> will try to give you backtrace with gdb later.
> >
> > Your code was missing includes. Please provide *complete* code in the
> > future :)
> >
> > It does not crash on Linux here with GStreamer 1.8.1. Which version are
> > you running, and this is on Windows? 32 bit or 64 bit?
> >
> > Maybe the gdb backtrace will show something useful.
> >
> > --
> > Sebastian Dröge, Centricular Ltd · http://www.centricular.com
> >
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160604/ae75fa0f/attachment.html>


More information about the gstreamer-devel mailing list