Thank you for your attention.
Since the tracker engine in my real application is currently developed on DS 6.0, there is currently no plan to upgrade to DS7.0.
But I have tested the demo code before on DS 7.0 (with the image deepstream:7.0-gc-triton-devel). The error is gone but new source is continuously created and deleted.
frame_num: 359
frame_num: 360
decodebin new pad video/x-raw
frame_num: 361
Decodebin linked to pipeline
** Message: 08:28:13.672: get message from element decodebin2 : missing-plugin
WARNING from element source-bin-00: No decoder available for type ‘audio/mpeg, mpegversion=(int)4, framed=(boolean)true, stream-format=(string)raw, level=(string)2, base-profile=(string)lc, profile=(string)lc, codec_data=(buffer)119056e500, rate=(int)48000, channels=(int)2’.
Warning: No decoder available for type ‘audio/mpeg, mpegversion=(int)4, framed=(boolean)true, stream-format=(string)raw, level=(string)2, base-profile=(string)lc, profile=(string)lc, codec_data=(buffer)119056e500, rate=(int)48000, channels=(int)2’.
** Message: 08:28:14.419: get message from element stream-muxer : stream-eos
Got EOS from stream 1
STATE CHANGE SUCCESS
STATE CHANGE SUCCESS 0x7fbfd4005020
Calling Start 1
creating uridecodebin for [file:///workspace/runtime_source_add_delete/sample_1080p_h265.mp4]
decodebin child added source
decodebin child added decodebin3
STATE CHANGE ASYNC
decodebin child added qtdemux3
decodebin child added multiqueue3
decodebin child added h265parse1
decodebin child added capsfilter3
decodebin child added nvv4l2decoder3
decodebin new pad video/x-raw
Decodebin linked to pipeline
** Message: 08:28:14.540: get message from element decodebin3 : missing-plugin
WARNING from element source-bin-01: No decoder available for type ‘audio/mpeg, mpegversion=(int)4, framed=(boolean)true, stream-format=(string)raw, level=(string)2, base-profile=(string)lc, profile=(string)lc, codec_data=(buffer)119056e500, rate=(int)48000, channels=(int)2’.
Warning: No decoder available for type ‘audio/mpeg, mpegversion=(int)4, framed=(boolean)true, stream-format=(string)raw, level=(string)2, base-profile=(string)lc, profile=(string)lc, codec_data=(buffer)119056e500, rate=(int)48000, channels=(int)2’.
** Message: 08:28:15.297: get message from element stream-muxer : stream-eos
Got EOS from stream 1
STATE CHANGE SUCCESS
STATE CHANGE SUCCESS 0x7fbfd4431160
Calling Start 1
creating uridecodebin for [file:///workspace/runtime_source_add_delete/sample_1080p_h265.mp4]
decodebin child added source
decodebin child added decodebin4
STATE CHANGE ASYNC
decodebin child added qtdemux4
decodebin child added multiqueue4
decodebin child added h265parse2
decodebin child added capsfilter4
decodebin child added nvv4l2decoder4
decodebin new pad video/x-raw
Decodebin linked to pipeline
** Message: 08:28:15.420: get message from element decodebin4 : missing-plugin
WARNING from element source-bin-01: No decoder available for type ‘audio/mpeg, mpegversion=(int)4, framed=(boolean)true, stream-format=(string)raw, level=(string)2, base-profile=(string)lc, profile=(string)lc, codec_data=(buffer)119056e500, rate=(int)48000, channels=(int)2’.
Warning: No decoder available for type ‘audio/mpeg, mpegversion=(int)4, framed=(boolean)true, stream-format=(string)raw, level=(string)2, base-profile=(string)lc, profile=(string)lc, codec_data=(buffer)119056e500, rate=(int)48000, channels=(int)2’.
** Message: 08:28:16.179: get message from element stream-muxer : stream-eos
Got EOS from stream 1
STATE CHANGE SUCCESS