<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>I dont't know how fast linux distributions update the gstreamer libs, but does it make sense to backport this fix to gestreamer 1.6 branch?</div>

<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Mittwoch, 02. März 2016 um 20:50 Uhr<br/>
<b>Von:</b> "Vivia Nikolaidou" <n.vivia@gmail.com><br/>
<b>An:</b> "Discussion of the development of and with GStreamer" <gstreamer-devel@lists.freedesktop.org><br/>
<b>Betreff:</b> Re: Segmentation fault when using mpeg2enc plugin</div>

<div name="quoted-content">Hi,<br/>
<br/>
Thanks for reporting this crash. It is now fixed in latest git:<br/>
<a href="http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=c3d6635bbff70f9c1d5314ecb6d3d38cdccfd3ee" target="_blank">http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=c3d6635bbff70f9c1d5314ecb6d3d38cdccfd3ee</a><br/>
<br/>
Best regards,<br/>
<br/>
Vivia<br/>
<br/>
On 2 March 2016 at 21:37, <hammer.werfer@gmx.de> wrote:<br/>
> Hi,<br/>
><br/>
> i am using a pipeline to encode a video stream with the mpeg2enc plugin. The<br/>
> element is created with:<br/>
><br/>
> videoEnc = Gst.ElementFactory.make("mpeg2enc")<br/>
> videoEnc.set_property("format", 1)<br/>
> videoEnc.set_property("norm", "p")<br/>
><br/>
> the crash occured at the moment a queue is linked to this element:<br/>
><br/>
> queueVideo.link(videoEnc)<br/>
><br/>
> i installed debugging symbols for gstreamer and some plugins. gdb gives me<br/>
> the following traceback:<br/>
><br/>
> (gdb) backtrace<br/>
> #0 strlen () at ../sysdeps/x86_64/strlen.S:106<br/>
> #1 0x00007fc822a13323 in g_strdup () from<br/>
> /lib/x86_64-linux-gnu/libglib-2.0.so.0<br/>
> #2 0x00007fc822cf3efc in ?? () from<br/>
> /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0<br/>
> #3 0x00007fc812b94c90 in gst_structure_set_valist_internal<br/>
> (structure=<optimized out>, fieldname=<optimized out>,<br/>
> varargs=0x7fc832c00750) at gststructure.c:605<br/>
> #4 0x00007fc812b96ac5 in gst_structure_new_valist (name=<optimized out>,<br/>
> firstfield=0x7fc7f6828052 "format", varargs=varargs@entry=0x7fc832c00750) at<br/>
> gststructure.c:284<br/>
> #5 0x00007fc812b96b64 in gst_structure_new (name=name@entry=0x7fc7f682798e<br/>
> "video/x-raw", firstfield=firstfield@entry=0x7fc7f6828052 "format") at<br/>
> gststructure.c:253<br/>
> #6 0x00007fc7f682464b in gst_mpeg2enc_structure_from_norm<br/>
> (enc=enc@entry=0x20e77c0, horiz=352, pal_v=288, ntsc_v=240) at<br/>
> gstmpeg2enc.cc:258<br/>
> #7 0x00007fc7f682588f in gst_mpeg2enc_getcaps (pad=0x7fc82800d000,<br/>
> enc=0x20e77c0) at gstmpeg2enc.cc:311<br/>
> #8 gst_mpeg2enc_sink_query (pad=0x7fc82800d000, parent=0x20e77c0,<br/>
> query=0x7fc828054ad0) at gstmpeg2enc.cc:360<br/>
> #9 0x00007fc812b777f8 in gst_pad_query (pad=pad@entry=0x7fc82800d000,<br/>
> query=query@entry=0x7fc828054ad0) at gstpad.c:3831<br/>
> #10 0x00007fc812bac2a4 in gst_pad_query_caps (pad=pad@entry=0x7fc82800d000,<br/>
> filter=filter@entry=0x0) at gstutils.c:2841<br/>
> #11 0x00007fc812bace8a in gst_element_get_compatible_pad<br/>
> (element=element@entry=0x20e77c0, pad=pad@entry=0x7fc82800c4c0,<br/>
> caps=caps@entry=0x0) at gstutils.c:1053<br/>
> #12 0x00007fc812badf27 in gst_element_link_pads_full (src=0x7fc828014120,<br/>
> srcpadname=<optimized out>, dest=0x20e77c0, destpadname=<optimized out>,<br/>
> flags=GST_PAD_LINK_CHECK_DEFAULT) at gstutils.c:1691<br/>
> #13 0x00007fc81adb4d90 in ffi_call_unix64 () from<br/>
> /usr/lib/x86_64-linux-gnu/libffi.so.6<br/>
> #14 0x00007fc81adb47f8 in ffi_call () from<br/>
> /usr/lib/x86_64-linux-gnu/libffi.so.6<br/>
> #15 0x00007fc8131266f4 in ?? () from<br/>
> /usr/lib/python2.7/dist-packages/gi/_gi.so<br/>
> #16 0x00007fc813128148 in ?? () from<br/>
> /usr/lib/python2.7/dist-packages/gi/_gi.so<br/>
> #17 0x00007fc81311c4ee in ?? () from<br/>
> /usr/lib/python2.7/dist-packages/gi/_gi.so<br/>
> #18 0x00000000004bf3cc in PyObject_Call (kw=0x0, arg=(<__main__.GstMpeg2enc<br/>
> at remote 0x7fc80c512dc0>,), func=<gi.FunctionInfo at remote<br/>
> 0x7fc80e00b490>) at ../Objects/abstract.c:2529<br/>
> #19 do_call (nk=<optimized out>, na=<optimized out>,<br/>
> pp_stack=0x7fc832c00e10, func=<gi.FunctionInfo at remote 0x7fc80e00b490>) at<br/>
> ../Python/ceval.c:4574<br/>
> #20 call_function (oparg=<optimized out>, pp_stack=0x7fc832c00e10) at<br/>
> ../Python/ceval.c:4379<br/>
> #21 PyEval_EvalFrameEx () at ../Python/ceval.c:2993<br/>
> #22 0x00000000004bf10f in fast_function (nk=<optimized out>, na=<optimized<br/>
> out>, n=1, pp_stack=0x7fc832c00f30, func=<function at remote<br/>
> 0x7fc812a92320>) at ../Python/ceval.c:4442<br/>
> #23 call_function (oparg=<optimized out>, pp_stack=0x7fc832c00f30) at<br/>
> ../Python/ceval.c:4377<br/>
> #24 PyEval_EvalFrameEx () at ../Python/ceval.c:2993<br/>
><br/>
> Same crash occurs when using format 4 (videoEnc.set_property("format", 4))<br/>
> but NO CRASH for format 0. Format 0 starts encoding but gives another error<br/>
> (streaming task paused, reason not-negotiated (-4))<br/>
> but that is not related to the crash i guess.<br/>
> I am using gstreamer 1.6.0-1ubuntu1. The pipeline in principle works when i<br/>
> use another video/audio encoder and muxer.<br/>
><br/>
> Regards,<br/>
> Jens<br/>
><br/>
> _______________________________________________<br/>
> gstreamer-devel mailing list<br/>
> gstreamer-devel@lists.freedesktop.org<br/>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br/>
><br/>
_______________________________________________<br/>
gstreamer-devel mailing list<br/>
gstreamer-devel@lists.freedesktop.org<br/>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></div>
</div>
</div>
</div></div></body></html>