Drop Frame in Rtsp Stream

Hi
I have a problem with h264 decoding of rtsp video stream. it seems issue related to drop frame. you can see log & pipeline topology

Error Image

Log

WARN             h264decoder gsth264decoder.c:939:gst_h264_decoder_handle_frame_num_gap:<d3d11h264dec1> Invalid frame num 17, maybe frame drop
WARN             h264decoder gsth264picture.c:439:gst_h264_dpb_get_short_ref_by_pic_num: No short term reference picture for 16
WARN             h264decoder gsth264picture.c:1046:gst_h264_dpb_perform_memory_management_control_operation: Invalid picNumX 16 for operation type 1
WARN             h264decoder gsth264decoder.c:1926:gst_h264_decoder_handle_memory_management_opt:<d3d11h264dec1> memory management operation type 1 failed
WARN             h264decoder gsth264decoder.c:939:gst_h264_decoder_handle_frame_num_gap:<d3d11h264dec1> Invalid frame num 25, maybe frame drop
WARN             h264decoder gsth264picture.c:439:gst_h264_dpb_get_short_ref_by_pic_num: No short term reference picture for 24
WARN             h264decoder gsth264picture.c:1046:gst_h264_dpb_perform_memory_management_control_operation: Invalid picNumX 24 for operation type 1
WARN             h264decoder gsth264decoder.c:1926:gst_h264_decoder_handle_memory_management_opt:<d3d11h264dec1> memory management operation type 1 failed
WARN             h264decoder gsth264decoder.c:939:gst_h264_decoder_handle_frame_num_gap:<d3d11h264dec1> Invalid frame num 18, maybe frame drop
WARN             h264decoder gsth264picture.c:439:gst_h264_dpb_get_short_ref_by_pic_num: No short term reference picture for 17
WARN             h264decoder gsth264picture.c:1046:gst_h264_dpb_perform_memory_management_control_operation: Invalid picNumX 17 for operation type 1
WARN             h264decoder gsth264decoder.c:1926:gst_h264_decoder_handle_memory_management_opt:<d3d11h264dec1> memory management operation type 1 failed

Pipeline topology
topology.dot
you can see topology using Graphviz Online

How can i reduce drop frame ? is it a good way to change protocol to tcp only ?
Thanks

Packet lost can happen with UDP streaming. You should see these from the RTP stats. If you strictly need no loss, force TCP protocol, we have special scheme for this: rtspt://. Be before going there, check that your server is doing smooth (not bursty) streaming. You could check for enabling retransmission, or error correction if your server / camera supports that.

1 Like