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
0:00:00.136148096 [332m16315[00m 0x148260 [32;01mFIXME [00m [00;04m default gstutils.c:3766:gst_pad_create_stream_id_internal:<videotestsrc1:src>[00m Creating random stream-id, consider implementing a deterministic way of creating a stream-id 0:00:00.139406472 [332m16315[00m 0x1482c0 [33;01mWARN [00m [00m waylandsink wlvideoformat.c:102:gst_wl_shm_format_to_video_format:[00m gst video format not found 0:00:00.139491059 [332m16315[00m 0x1482c0 [33;01mWARN [00m [00m waylandsink wlvideoformat.c:102:gst_wl_shm_format_to_video_format:[00m gst video format not found 0:00:00.139913016 [332m16315[00m 0x1482c0 [33;01mWARN [00m [00m waylandsink wlvideoformat.c:102:gst_wl_shm_format_to_video_format:[00m gst video format not found 0:00:00.139958237 [332m16315[00m 0x1482c0 [33;01mWARN [00m [00m waylandsink wlvideoformat.c:102:gst_wl_shm_format_to_video_format:[00m gst video format not found 0:00:00.140206467 [332m16315[00m 0x1482c0 [33;01mWARN [00m [00m waylandsink wlvideoformat.c:102:gst_wl_shm_format_to_video_format:[00m gst video format not found 0:00:00.140247133 [332m16315[00m 0x1482c0 [33;01mWARN [00m [00m waylandsink wlvideoformat.c:102:gst_wl_shm_format_to_video_format:[00m gst video format not found 0:00:00.140510328 [332m16315[00m 0x1482c0 [33;01mWARN [00m [00m ducati gstducatih264dec.c:410:gst_ducati_h264dec_set_sink_caps:<decoder>[00m Using 0 frames for reordering 0:00:00.140692840 [332m16315[00m 0x148490 [33;01mWARN [00m [00m waylandsink wlvideoformat.c:102:gst_wl_shm_format_to_video_format:[00m gst video format not found 0:00:00.140748635 [332m16315[00m 0x148490 [33;01mWARN [00m [00m waylandsink wlvideoformat.c:102:gst_wl_shm_format_to_video_format:[00m gst video format not found 0:00:00.149479280 [332m16315[00m 0x148230 [32;01mFIXME [00m [00;04m default gstutils.c:3766:gst_pad_create_stream_id_internal:<videotestsrc0:src>[00m Creating random stream-id, consider implementing a deterministic way of creating a stream-id 0:00:00.150712131 [332m16315[00m 0x148260 [31;01mERROR [00m [00m ducati gstducatividenc.c:383:gst_ducati_videnc_configure:<ducatih264enc1>[00m XDM_SETPARAMS err=-1, extendedError=0018c000 0:00:00.150776709 [332m16315[00m 0x148260 [31;01mERROR [00m [00m ducati gstducati.c:61:gst_ducati_log_extended_error_info:[00m Bit 14 (00004000): unsupported param 0:00:00.150819003 [332m16315[00m 0x148260 [31;01mERROR [00m [00m ducati gstducati.c:61:gst_ducati_log_extended_error_info:[00m Bit 15 (00008000): fatal 0:00:00.150855277 [332m16315[00m 0x148260 [31;01mERROR [00m [00m ducati gstducati.c:61:gst_ducati_log_extended_error_info:[00m Bit 19 (00080000): unknown 0:00:00.150890088 [332m16315[00m 0x148260 [31;01mERROR [00m [00m ducati gstducati.c:61:gst_ducati_log_extended_error_info:[00m Bit 20 (00100000): unknown 0:00:00.151083987 [332m16315[00m 0x148260 [33;01mWARN [00m [00m basesrc gstbasesrc.c:2948:gst_base_src_loop:<videotestsrc1>[00m error: Internal data flow error. 0:00:00.151125467 [332m16315[00m 0x148260 [33;01mWARN [00m [00m basesrc gstbasesrc.c:2948:gst_base_src_loop:<videotestsrc1>[00m 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 [332m16315[00m 0x148400 [33;01mWARN [00m [00m ducati gstducatih264dec.c:410:gst_ducati_h264dec_set_sink_caps:<decoder>[00m 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&