<div dir="ltr"><br><font>The actual problem occured in own C code but can be boiled down to the following gst-launch pipelines.</font><br><font>Are "channels=(int)1, channel-mask=(bitmask)0x0000000000000000" valid caps for mono audio?</font><br>
<font>Depending on the answer to that that question either </font><b><font>avdec_g722</font></b><font> or </font><b><font>audioconvert</font></b><font> needs to be fixed IMHO.</font><br><font>Can anybody confirm this ?</font><br>
<br><font>1) Good pipeline</font><br><br><font>root@ipac:~# </font><b><font>GST_DEBUG=3 gst-launch-1.0 audiotestsrc ! avenc_g722 ! avdec_g722 ! audioconvert ! audio/x-raw, channels=1 ! fakesink</font></b><br><font>Setting pipeline to PAUSED ...</font><br>
<font>Pipeline is PREROLLING ...</font><br><font>0:00:00.182954856
694 0xf0120 FIXME default
gstutils.c:3622:gst_pad_create_stream_id_printf_valist:<audiotestsrc0:src>
Creating random stream-id, consider implementing a deterministic way of
creating a stream-id</font><br><font>Pipeline is PREROLLED ...</font><br><font>Setting pipeline to PLAYING ...</font><br><font>New clock: GstSystemClock</font><br><font>^CCaught interrupt -- handling interrupt.</font><br>
<font>Interrupt: Stopping pipeline ...</font><br><font>Execution ended after 5513031006 ns.</font><br><font>Setting pipeline to PAUSED ...</font><br><font>Setting pipeline to READY ...</font><br><font>Setting pipeline to NULL ...</font><br>
<font>Freeing pipeline ...</font><br><br><font>1) Bad pipeline</font><br><br><font>root@ipac:~# </font><b><font>GST_DEBUG=3 gst-launch-1.0 audiotestsrc ! avenc_g722 ! avdec_g722 ! audioconvert ! audio/x-raw, channels=2 ! fakesink</font></b><br>
<font>Setting pipeline to PAUSED ...</font><br><font>Pipeline is PREROLLING ...</font><br><font>0:00:00.182148390
696 0xf0120 FIXME default
gstutils.c:3622:gst_pad_create_stream_id_printf_valist:<audiotestsrc0:src>
Creating random stream-id, consider implementing a deterministic way of
creating a stream-id</font><br><font>0:00:00.192402311 696
0xf0120 WARN basetransform
gstbasetransform.c:1348:gst_base_transform_setcaps:<audioconvert0>
transform could not transform audio/x-raw, rate=(int)16000,
channels=(int)1, channel-mask=(bitmask)0x0000000000000000,
format=(string)S16LE, layout=(string)interleaved in anything we support</font><br><font>0:00:00.194904758
696 0xf0120 WARN basetransform
gstbasetransform.c:1348:gst_base_transform_setcaps:<audioconvert0>
transform could not transform audio/x-raw, rate=(int)16000,
channels=(int)1, channel-mask=(bitmask)0x0000000000000000,
format=(string)S16LE, layout=(string)interleaved in anything we support</font><br><font>0:00:00.196186498
696 0xf0120 WARN basesrc
gstbasesrc.c:2812:gst_base_src_loop:<audiotestsrc0> error:
Internal data flow error.</font><br><font>0:00:00.196949439
696 0xf0120 WARN basesrc
gstbasesrc.c:2812:gst_base_src_loop:<audiotestsrc0> error:
streaming task paused, reason not-negotiated (-4)</font><br><font>ERROR: from element /GstPipeline:pipeline0/GstAudioTestSrc:audiotestsrc0: Internal data flow error.</font><br><font>Additional debug info:</font><br><font>gstbasesrc.c(2812): gst_base_src_loop (): /GstPipeline:pipeline0/GstAudioTestSrc:audiotestsrc0:</font><br>
<font>streaming task paused, reason not-negotiated (-4)</font><br><font>ERROR: pipeline doesn't want to preroll.</font><br><font>Setting pipeline to NULL ...</font><br><font>Freeing pipeline ...</font><br><font>root@ipac:~# </font></div>