This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM5728: Multiple GStreamer pipelines issues

Part Number: AM5728

Tool/software: Linux

I had issue that I couldn't sometimes create gstreamer pipeline that I izolated to following issue:

Consider simple pipeline:

P="videotestsrc ! ducatih264enc ! h264parse ! queue ! ducatih264decvpe ! queue !   waylandsink"

When run it only once it works.

GST_DEBUG=3 gst-launch-1.0 $P

But when you run two pipelines in parallel like below sometimes you get following error message or it fails with attached error log 

e.txt
0:00:00.136148096 16315   0x148260 FIXME                default gstutils.c:3766:gst_pad_create_stream_id_internal:<videotestsrc1:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:00.139406472 16315   0x1482c0 WARN             waylandsink wlvideoformat.c:102:gst_wl_shm_format_to_video_format: gst video format not found
0:00:00.139491059 16315   0x1482c0 WARN             waylandsink wlvideoformat.c:102:gst_wl_shm_format_to_video_format: gst video format not found
0:00:00.139913016 16315   0x1482c0 WARN             waylandsink wlvideoformat.c:102:gst_wl_shm_format_to_video_format: gst video format not found
0:00:00.139958237 16315   0x1482c0 WARN             waylandsink wlvideoformat.c:102:gst_wl_shm_format_to_video_format: gst video format not found
0:00:00.140206467 16315   0x1482c0 WARN             waylandsink wlvideoformat.c:102:gst_wl_shm_format_to_video_format: gst video format not found
0:00:00.140247133 16315   0x1482c0 WARN             waylandsink wlvideoformat.c:102:gst_wl_shm_format_to_video_format: gst video format not found
0:00:00.140510328 16315   0x1482c0 WARN                  ducati gstducatih264dec.c:410:gst_ducati_h264dec_set_sink_caps:<decoder> Using 0 frames for reordering
0:00:00.140692840 16315   0x148490 WARN             waylandsink wlvideoformat.c:102:gst_wl_shm_format_to_video_format: gst video format not found
0:00:00.140748635 16315   0x148490 WARN             waylandsink wlvideoformat.c:102:gst_wl_shm_format_to_video_format: gst video format not found
0:00:00.149479280 16315   0x148230 FIXME                default gstutils.c:3766:gst_pad_create_stream_id_internal:<videotestsrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:00.150712131 16315   0x148260 ERROR                 ducati gstducatividenc.c:383:gst_ducati_videnc_configure:<ducatih264enc1> XDM_SETPARAMS err=-1, extendedError=0018c000
0:00:00.150776709 16315   0x148260 ERROR                 ducati gstducati.c:61:gst_ducati_log_extended_error_info: Bit 14 (00004000): unsupported param
0:00:00.150819003 16315   0x148260 ERROR                 ducati gstducati.c:61:gst_ducati_log_extended_error_info: Bit 15 (00008000): fatal
0:00:00.150855277 16315   0x148260 ERROR                 ducati gstducati.c:61:gst_ducati_log_extended_error_info: Bit 19 (00080000): unknown
0:00:00.150890088 16315   0x148260 ERROR                 ducati gstducati.c:61:gst_ducati_log_extended_error_info: Bit 20 (00100000): unknown
0:00:00.151083987 16315   0x148260 WARN                 basesrc gstbasesrc.c:2948:gst_base_src_loop:<videotestsrc1> error: Internal data flow error.
0:00:00.151125467 16315   0x148260 WARN                 basesrc gstbasesrc.c:2948:gst_base_src_loop:<videotestsrc1> error: streaming task paused, reason error (-5)
ERROR: from element /GstPipeline:pipeline0/GstDucatiH264Enc:ducatih264enc1: Could not encode stream.
Additional debug info:
gstducatividenc.c(752): gst_ducati_videnc_handle_frame (): /GstPipeline:pipeline0/GstDucatiH264Enc:ducatih264enc1
ERROR: pipeline doesn't want to preroll.
0:00:00.160625525 16315   0x148400 WARN                  ducati gstducatih264dec.c:410:gst_ducati_h264dec_set_sink_caps:<decoder> Using 0 frames for reordering
temp3: line 3: unexpected EOF while looking for matching `"'
temp3: line 4: syntax error: unexpected end of file

GST_DEBUG=3 gst-launch-1.0 $P $P

gstducatividdec.c:1642:gst_ducati_viddec_change_state:<decoder> Failed to create codec ivahd_h264dec, not supported

Problem still exist when you use independent processess, like by running script which contains:

GST_DEBUG=3 gst-launch-1.0 $P&
GST_DEBUG=3 gst-launch-1.0 $P&
GST_DEBUG=3 gst-launch-1.0 $P&