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