Error in qtmux

• Hardware Platform ( GPU): A30X
• DeepStream Version: 6.1.1
• TensorRT Version: 8.4.1.5
• NVIDIA GPU Driver Version: 515.65.01
• Issue Type: questions

I started the DeepStream docker container (nvcr.io/nvidia/deepstream: 6.1.1 -devel),
Received an h264 stream on nvdsudpsrc with Rivermax and tried to save it to mp4.
I executed the following pipeline.

gst-launch-1.0 -e nvdsudpsrc address=192.168.x.x local-iface-ip=192.168.x.x port=8500 !
application/x-rtp,media=video,encoding-name=H264 !
queue !
rtph264depay !
h264parse !
qtmux ! filesink location=./out2.mp4

However, I could not save the mp4 file correctly because of repeated errors like the following:

Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:

Do you know how to solve this problem?

The sender pipeline is:
gst-launch-1.0 -e videotestsrc !
x264enc !
rtph264pay name=pay0 pt=96 !
udpsink host=192.168.x.x port=8500 sync=false

The environment is:
Hardware Platform(GPU):A30X
docker image:nvcr.io/nvidia/deepstream:6.1.1-devel
OS:ubuntu20.04
cuda:11.7.1
GPU Driver:515.65.01
TensorRT Version:8.4.1.5
Rivermax version:1.11.11

You can add -v in the pipeline to get more debug info.

I tried same command with -v option, then I got following messages.
According to these log, could you find out the cause of qtmux error?

gst-launch-1.0 -e -v nvdsudpsrc address=192.168.0.2 local-iface-ip=192.168.0.2 port=8500 ! application/x-rtp,media=video,encoding-name=H264 ! queue ! rtph264depay ! h264parse ! qtmux ! filesink location=./out2.mp4
Setting pipeline to PAUSED …
Writing log to default location: /tmp/rivermax_0920_073849_95.log
Created log file: /tmp/rivermax_0920_073849_95.log
[22-09-20 07:38:49.994121] Tid: 000095 info [InitLogger:92] Logger started
[22-09-20 07:38:49.994131] Tid: 000095 info [rmax_init_version:463] starting Rivermax version 13.3.12.11
[22-09-20 07:38:49.994135] Tid: 000095 debug [Clock:31]
[22-09-20 07:38:49.994137] Tid: 000095 debug [SysClock:41]
[22-09-20 07:38:49.994139] Tid: 000095 debug [rivermax_get_user_env:146] parsed env RIVERMAX_DISABLE_VIDEO_GROUPING to the value true
[22-09-20 07:38:49.994142] Tid: 000095 debug [rivermax_get_user_env:146] parsed env RIVERMAX_VIDEO_PACE_INTERVAL to the value 1000000
[22-09-20 07:38:49.994152] Tid: 000095 debug [rivermax_get_user_env:146] parsed env RIVERMAX_OUT_STREAM_SIZE_IN_PKTS to the value 32768
[22-09-20 07:38:49.994156] Tid: 000095 debug [rivermax_get_user_env:146] parsed env RIVERMAX_HEADER_STRIDE_SIZE to the value 64
[22-09-20 07:38:49.994158] Tid: 000095 debug [rivermax_get_user_env:146] parsed env RIVERMAX_DISABLE_FLOW_ID to the value false
[22-09-20 07:38:49.994160] Tid: 000095 debug [rivermax_get_user_env:146] parsed env RIVERMAX_REDUCE_VMA_MEMORY_CONSUMPTION to the value true
[22-09-20 07:38:49.994164] Tid: 000095 debug [rivermax_get_user_env:146] parsed env RIVERMAX_SDP_PARSER_ENABLE_LOGGING to the value false
[22-09-20 07:38:49.994168] Tid: 000095 debug [rivermax_get_user_env:146] parsed env RIVERMAX_ENABLE_CUDA to the value false
[22-09-20 07:38:49.994169] Tid: 000095 debug [rivermax_get_user_env:146] parsed env RIVERMAX_ENABLE_STATISTICS to the value false
[22-09-20 07:38:49.994173] Tid: 000095 debug [SignalHandler:90] Successfully registered for signal 2
[22-09-20 07:38:49.994177] Tid: 000095 debug [SignalHandler:90] Successfully registered for signal 15
[22-09-20 07:38:49.994179] Tid: 000095 debug [SignalHandler:90] Successfully registered for signal 15
[22-09-20 07:38:49.994182] Tid: 000095 debug [rivermax_get_user_env:146] parsed env RIVERMAX_SESSION_MAP_SIZE to the value 2000
[22-09-20 07:38:49.994197] Tid: 000095 debug [rivermax_get_user_env:146] parsed env RIVERMAX_SESSION_MAP_SIZE to the value 2000
[22-09-20 07:38:49.994312] Tid: 000095 debug [EventHandlerManager:125]
[22-09-20 07:38:49.994317] Tid: 000095 info [EventHandlerManager:132] will wakeup before frame begin event in 2000000 ns
[22-09-20 07:38:49.994319] Tid: 000095 debug [EventHandlerManagerHigh:259]
[22-09-20 07:38:49.994321] Tid: 000095 debug [start_thread:341] Starting internal thread
[22-09-20 07:38:49.994369] Tid: 000095 debug [rivermax_set_thread_priority:700] set priority successfully to 99
[22-09-20 07:38:49.994374] Tid: 000095 debug [start_thread:344] Started event handler thread
[22-09-20 07:38:49.994376] Tid: 000095 debug [init_globals:228] Time now is 1663659529994376347
[22-09-20 07:38:49.994401] Tid: 000097 info [print_thread_info:117] High priority internal thread: PID = 95, thread ID = 97
VMA ERROR: utils:424:priv_read_file() ERROR while opening file /proc/sys/net/core/rmem_max (errno 2 No such file or directory)
VMA WARNING: utils:443:read_file_to_int() ERROR while getting int from from file /proc/sys/net/core/rmem_max, we’ll use default 229376
VMA ERROR: utils:424:priv_read_file() ERROR while opening file /proc/sys/net/core/wmem_max (errno 2 No such file or directory)
VMA WARNING: utils:443:read_file_to_int() ERROR while getting int from from file /proc/sys/net/core/wmem_max, we’ll use default 229376
VMA INFO: ---------------------------------------------------------------------------
VMA INFO: VMA_VERSION: 9.6.4-1 Release built on Jul 14 2022 14:45:59
VMA INFO: Cmd Line: gst-launch-1.0 -e -v nvdsudpsrc address=192.168.0.2 local-iface-ip=192.168.0.2 port=8500 ! application/x-rtp,media=video,encoding-name=H264 ! queue ! rtph264depay ! h264parse ! qtmux ! filesink location=./out2.mp4
VMA INFO: OFED Version: MLNX_OFED_LINUX-5.7-1.0.2.0:
VMA INFO: ---------------------------------------------------------------------------
VMA INFO: Log Level INFO [VMA_TRACELEVEL]
VMA INFO: Tx Mem Segs TCP 4 [VMA_TX_SEGS_TCP]
VMA INFO: Tx Mem Bufs 256 [VMA_TX_BUFS]
VMA INFO: Tx QP WRE 128 [VMA_TX_WRE]
VMA INFO: Tx Prefetch Bytes 32 [VMA_TX_PREFETCH_BYTES]
VMA INFO: Rx Mem Bufs 256 [VMA_RX_BUFS]
VMA INFO: Rx QP WRE 128 [VMA_RX_WRE]
VMA INFO: Rx Prefetch Bytes 32 [VMA_RX_PREFETCH_BYTES]
VMA INFO: Force Flowtag for MC Enabled [VMA_MC_FORCE_FLOWTAG]
VMA INFO: CQ AIM Max Count 64 [VMA_CQ_AIM_MAX_COUNT]
VMA INFO: ---------------------------------------------------------------------------
[22-09-20 07:38:50.035054] Tid: 000095 debug [os_init_library_post_globals_init:394] using libvma.so libary
[22-09-20 07:38:50.250901] Tid: 000095 debug [os_init_library_post_globals_init:417] got 4 DPCP devices
[22-09-20 07:38:50.251240] Tid: 000095 info [is_supported_device:161] Device lo is not supported
[22-09-20 07:38:50.251388] Tid: 000095 debug [os_map_dpcp_devices:254] examining 192.168.0.2, of eth0 → mlx5_2 (eth0)
[22-09-20 07:38:50.251415] Tid: 000095 debug [init:246] Reserved MKey created lkey=0x700 addr=0x55a4f3beff40
[22-09-20 07:38:50.251420] Tid: 000095 debug [init:255] Adapter frequency (khz) 1000000
[22-09-20 07:38:50.251422] Tid: 000095 debug [init:258] DPP supported is enabled
[22-09-20 07:38:50.251454] Tid: 000095 debug [os_map_dpcp_devices:286] added new device mlx5_2 with ip 192.168.0.2 mac 0x22a036157f73
[22-09-20 07:38:50.300022] Tid: 000095 info [license_validate_v4:440] Licensed to: ********* (N/A), evaluation period expires in 41 days
[22-09-20 07:38:50.300032] Tid: 000095 info [info_product:462] Rivermax license version: 4.1
[22-09-20 07:38:50.300034] Tid: 000095 info [license_validate:512] Rivermax license id c3544401-d0c0-f6b6-62b0-0e040698bccc, revision 1
[22-09-20 07:38:50.300037] Tid: 000095 info [rmax_init_version:502] Statistics disabled
[22-09-20 07:38:50.300072] Tid: 000095 debug [calc_buffer_size:166] requested-> 10000 elements, payload_sz min/max 1500/1500, hdr_sz min/max 12/12
[22-09-20 07:38:50.300208] Tid: 000095 debug [get_vlan_by_ip:593] vlan not detected
[22-09-20 07:38:50.300216] Tid: 000095 debug [calc_buffer_size:226] calculated-> stride size: 1500, data buffer size: 24576000 bytes, header buffer size: 196608 bytes
[22-09-20 07:38:50.300219] Tid: 000095 debug [calc_buffer_size:263] configured-> 0 elements, tot_wqes: 4, strides num: 4096, data stride size 1500, hdr stride size: 12 [net_len = 42], *payload_size_out = 24576000 *hdr_size_out = 196608
[22-09-20 07:38:50.300222] Tid: 000095 debug [calc_buffer_size:417] user needs to allocate 24576000 bytes of payload, header size 196608
[22-09-20 07:38:50.541813] Tid: 000095 debug [mmapHugetlbAlloc:83] allocated 4194304 for 2097152 memory at 0x7fb685400000 with mmap
[22-09-20 07:38:50.541857] Tid: 000095 info [license_assert_device:715] Validating Rivermax license for device with local ip 192.168.0.2
[22-09-20 07:38:50.541862] Tid: 000095 info [is_sn_matched:143] No serial number restriction
[22-09-20 07:38:50.541865] Tid: 000095 debug [init_session:162] buffer attribute - requested payload pointer: 0x7fb658000040, header pointer: 0x55a4f41bd080
[22-09-20 07:38:50.542132] Tid: 000095 debug [get_vlan_by_ip:593] vlan not detected
[22-09-20 07:38:50.542190] Tid: 000095 debug [get_vlan_by_ip:593] vlan not detected
[22-09-20 07:38:50.542206] Tid: 000095 debug [init_ring:130] net header len 42 stride_sz 2048 hdr_stride_sz 12 payload_stride_sz 1500
[22-09-20 07:38:50.542212] Tid: 000095 debug [allocate_memory:310] rx_type 1, local addr 192.168.0.2, local port 0 buffer_attr: num_of_elems 16384
[22-09-20 07:38:50.542214] Tid: 000095 debug [allocate_memory:313] data_sz min/max 1500/1500, hdr_sz min/max 12/12, timestamp 1 in_flags 1
[22-09-20 07:38:50.542216] Tid: 000095 debug [calc_buffer_size:166] requested-> 16384 elements, payload_sz min/max 1500/1500, hdr_sz min/max 12/12
[22-09-20 07:38:50.542219] Tid: 000095 debug [calc_buffer_size:226] calculated-> stride size: 1500, data buffer size: 24576000 bytes, header buffer size: 196608 bytes
[22-09-20 07:38:50.542221] Tid: 000095 debug [calc_buffer_size:263] configured-> 0 elements, tot_wqes: 4, strides num: 4096, data stride size 1500, hdr stride size: 12 [net_len = 42], *payload_size_out = 24576000 *hdr_size_out = 196608
[22-09-20 07:38:50.543852] Tid: 000095 debug [create_direct_mkey:352] map sz = 2 lkey 0x51264
[22-09-20 07:38:50.543858] Tid: 000095 debug [allocate_memory:365] registered addr 0x55a4f41bd080 size 196608 with lkey 0x51264
[22-09-20 07:38:50.546021] Tid: 000095 debug [create_direct_mkey:352] map sz = 3 lkey 0x51365
[22-09-20 07:38:50.546025] Tid: 000095 debug [allocate_memory:365] registered addr 0x7fb658000040 size 24576000 with lkey 0x51365
[22-09-20 07:38:50.546028] Tid: 000095 debug [create_memory_layout:266] using KLM
[22-09-20 07:38:50.546031] Tid: 000095 debug [create_umr_layout:241] mems[0] key 0x700 stride_size 42 byte_count 42
[22-09-20 07:38:50.546033] Tid: 000095 debug [create_umr_layout:241] mems[1] key 0x51264 stride_size 12 byte_count 12
[22-09-20 07:38:50.546035] Tid: 000095 debug [create_umr_layout:241] mems[2] key 0x51365 stride_size 1500 byte_count 1500
[22-09-20 07:38:50.546037] Tid: 000095 debug [create_umr_layout:241] mems[3] key 0x700 stride_size 494 byte_count 494
[22-09-20 07:38:50.547157] Tid: 000095 debug [create_pattern_mkey:411] pattern mkey lkey 0x40000000
[22-09-20 07:38:50.547161] Tid: 000095 debug [create_umr_layout:252] m_memory[0] key 0x51264 len 196608 addr 0x55a4f41bd080
[22-09-20 07:38:50.547163] Tid: 000095 debug [create_umr_layout:252] m_memory[1] key 0x51365 len 24576000 addr 0x7fb658000040
[22-09-20 07:38:50.547165] Tid: 000095 debug [create_umr_layout:252] m_memory[2] key 0x40000000 len 33554432 addr 0x55a4f41bd080
[22-09-20 07:38:50.547167] Tid: 000095 debug [create_umr_layout:252] m_memory[3] key 0x0 len 0 addr 0x0
[22-09-20 07:38:50.547174] Tid: 000095 debug [memAlignAlloc:65] allocated 270336 memory at 0x55a4f41ef000
[22-09-20 07:38:50.547261] Tid: 000095 debug [PacketInfoFiller:47] strides 16384 net_len 42 hdr_len12
[22-09-20 07:38:50.547266] Tid: 000095 debug [init_session:209] created ring successfully net len 42 strides 16384
[22-09-20 07:38:50.547269] Tid: 000095 debug [add_session:123] created new RX session with id 0
[22-09-20 07:38:50.553035] Tid: 000095 debug [create_striding_rq:625] created striding_rq 0x55a4f40e53b0 state RQ_RDY status 0 wqe 0x55a4f4234000 stride num/sz 4/512 rq 12588105
[22-09-20 07:38:50.553226] Tid: 000095 debug [RxHandler:34] got CQ parameters: buf 0x7fb685200000 cqe_size 64 cqn 0x150e, cq_size 0x4000, db 0x55a4f4232000
[22-09-20 07:38:50.553232] Tid: 000095 debug [RxHandler:36] got RQ parameters: buf 0x55a4f4234000 db 0x55a4f4236000, stride 32, wqe_cnt 4, m_wqe_idx 0, user wqes 4
[22-09-20 07:38:50.553244] Tid: 000095 debug [create_rx_dp:419] using 4096 strides with 4 wqes, each stride size is 2048 rx_dp 0x55a4f3bdc370
[22-09-20 07:38:50.553362] Tid: 000095 debug [attach_flow_rule:720] mac 22:a0:36:15:7f:73 ethertype 0x800, vlan 0x0 dst ip 0xc0a80002 src ip 0x0 dst port 0x2134 protocol 0x11
[22-09-20 07:38:50.554537] Tid: 000095 debug [attach_flow_rule:743] attached flow 0 to rq_num 12588105 and tir 43
[22-09-20 07:38:50.569589] Tid: 000095 debug [attach_flow_rule:764] created flow 0
[22-09-20 07:38:50.569599] Tid: 000095 debug [attach_flow:486] attached flow
[22-09-20 07:38:50.569605] Tid: 000095 debug [attach_flow:226] attached to local 192.168.0.2, port 8500 remote 0.0.0.0 port 0, flow 1 attached_num 1
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
New clock: GstSystemClock
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = application/x-rtp, media=(string)video, encoding-name=(string)H264, clock-rate=(int)90000
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = application/x-rtp, media=(string)video, encoding-name=(string)H264, clock-rate=(int)90000
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = application/x-rtp, media=(string)video, encoding-name=(string)H264, clock-rate=(int)90000
/GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:sink: caps = application/x-rtp, media=(string)video, encoding-name=(string)H264, clock-rate=(int)90000
/GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:src: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)01f4000dffe1001d67f4000d919b28283f602d41804150000003001000000303c8f142996001000668ebec448000, level=(string)1.3, profile=(string)high-4:4:4
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)01f4000dffe1001d67f4000d919b28283f602d41804150000003001000000303c8f142996001000668ebec448000, level=(string)1.3, profile=(string)high-4:4:4, pixel-aspect-ratio=(fraction)1/1, width=(int)320, height=(int)240, framerate=(fraction)30/1, interlace-mode=(string)progressive, chroma-format=(string)4:4:4, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true
/GstPipeline:pipeline0/GstQTMux:qtmux0.GstQTMuxPad:video_0: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)01f4000dffe1001d67f4000d919b28283f602d41804150000003001000000303c8f142996001000668ebec448000, level=(string)1.3, profile=(string)high-4:4:4, pixel-aspect-ratio=(fraction)1/1, width=(int)320, height=(int)240, framerate=(fraction)30/1, interlace-mode=(string)progressive, chroma-format=(string)4:4:4, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:sink: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)01f4000dffe1001d67f4000d919b28283f602d41804150000003001000000303c8f142996001000668ebec448000, level=(string)1.3, profile=(string)high-4:4:4
/GstPipeline:pipeline0/GstQTMux:qtmux0.GstPad:src: caps = video/quicktime, variant=(string)apple
/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = video/quicktime, variant=(string)apple
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
EOS on shutdown enabled – waiting for EOS after Error
Waiting for EOS…
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstQTMux:qtmux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(4832): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:qtmux0:
Buffer has no PTS.
^Chandling interrupt.
Interrupt: Stopping pipeline …
Interrupt while waiting for EOS - stopping pipeline…
Execution ended after 0:00:04.568884419
Setting pipeline to NULL …
[22-09-20 07:38:55.156583] Tid: 000095 debug [detach_flow:807] deleting tir[43]
[22-09-20 07:38:55.157198] Tid: 000095 debug [detach_flow:811] flow 0 was erased
[22-09-20 07:38:55.157230] Tid: 000095 debug [remove_session:140] remove RxSession 0 from map
[22-09-20 07:38:55.159428] Tid: 000095 debug [destroy_rq:658] RQn 0xc01449 state → RQ_RST
Cleanup called
[22-09-20 07:38:55.171154] Tid: 000095 debug [~EventHandlerManagerHigh:265]
[22-09-20 07:38:55.171161] Tid: 000095 debug [~EventHandlerManager:139]
[22-09-20 07:38:55.171164] Tid: 000095 debug [free_evh_resources:148]
[22-09-20 07:38:55.171222] Tid: 000095 debug [stop_thread:163] event handler thread stopped
[22-09-20 07:38:55.171227] Tid: 000095 debug [free_evh_resources:152] Thread stopped
[22-09-20 07:38:55.171300] Tid: 000095 debug [~SysClock:46]
[22-09-20 07:38:55.171305] Tid: 000095 debug [~Clock:36]
[22-09-20 07:38:55.171309] Tid: 000095 debug [~DeviceCollection:27] ~DeviceCollection()
[22-09-20 07:38:55.303396] Tid: 000095 info [~RiverLogger:105] logger closing
Freeing pipeline …

Seems the log is not enough, you need to dump h264parse srcpad gstbuffer timestamps, try to raise the debug level to 6, --gst-debug-level=6.

I raised the debug level to 6 and ran the same command. Upload the output log.
According to these log, could you find out the cause of qtmux error?
20220922_00.log (9.2 MB)

udpsrc did not generate PTS timestamp, it’s a pure gstreamer issue, suggest you ask the question in gstreamer community.

Thank you for your response.

Using udpsink and udpsrc worked fine.
Does this mean that data sent by udpsink cannot be received by nvdsudpsrc?

Does the sender have to be nvdsudpsink to receive with nvdsudpsrc?

I have been facing a very similar issue recently.
Based on my observation this happened when there is a network congestion. (Can be unrelated to your issue)
A very quick fix is to change your muxer to matroskamux.

But note this is not a solution and just a workaround. Matroskamux can help interpolate the PTS thus avoid crashing the pipeline. You may observe some grey frames in your video when the Buffer has no PTS situation happens. But your pipeline will not crash.

Or I think if you can somehow modify the PTS in the GstBuffer before it reaches the qtmux, it would work. But you’ll need to write the code instead of using the gst-launch-1.0 command.