Hello,
I am using FFmpeg h264_nvv4l2decoder for decoding in Jetson(NVIDIA Jetson AGX Xavier, Jetpack 4.4 [L4T 32.4.3]), There is the code below:
first, find h264_nvv4l2decoder
second, send packet and receive frame
then, i found the first fifteen frames return -11 from avcodec_receive_frame even if the first frame is I frame and there is no b frame in rtsp stream, after that, avcodec_receive_frame starts produce frames from beginning, which make delay happens, I think there is a buffer in decoder, how can i remove or reduce the size to make the decoding procedure more realtime, I edit the code in nvv4l3_dec.c to set V4L2_CID_MPEG_VIDEO_DISABLE_DPB=1 or change the V4L2_CID_MIN_BUFFERS_FOR_CAPTURE which is 9 initially, but none of these working.
Seek for help~ thank you