Thanks for your reply. Here is the log when I export GST_DEBUG=v4l2videodec:7:
Debug info: gstnvinferserver_impl.cpp(242): validatePluginConfig (): /GstPipeline:pipeline/GstBin:secondary_gie_bin/GstNvInferServer:secondary_gie_0
WARNING from primary_gie: Configuration file batch-size reset to: 1
Debug info: gstnvinferserver_impl.cpp(242): validatePluginConfig (): /GstPipeline:pipeline/GstBin:primary_gie_bin/GstNvInferServer:primary_gie
0:00:32.665385102 9535 0x557cdca84e80 DEBUG v4l2videodec gstv4l2videodec.c:555:gst_v4l2_video_dec_open: Opening
0:00:32.666227741 9535 0x557cdca84e80 DEBUG v4l2videodec gstv4l2videodec.c:1728:gst_v4l2_video_dec_sink_getcaps: Returning sink caps video/x-h264, width=(int)1280, height=(int)7
20, framerate=(fraction)10/1, stream-format=(string)byte-stream, alignment=(string)au, parsed=(boolean)true, level=(string)3.1, profile=(string)high-4:2:2, interlace-mode=(string)progressive, chroma-forma
t=(string)4:2:2, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8
0:00:32.666295360 9535 0x557cdca84e80 DEBUG v4l2videodec gstv4l2videodec.c:1704:gst_v4l2_video_dec_src_query: Returning src caps video/x-raw, format=(string)NV12, width=(int)[ 1
, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ], pixel-aspect-ratio=(fraction)1/1
0:00:32.666366982 9535 0x557cdca84e80 DEBUG v4l2videodec gstv4l2videodec.c:637:gst_v4l2_video_dec_start: Starting
0:00:32.666574010 9535 0x557cdca84e80 DEBUG v4l2videodec gstv4l2videodec.c:1728:gst_v4l2_video_dec_sink_getcaps: Returning sink caps video/x-h264, width=(int)1280, height=(int)7
20, framerate=(fraction)10/1, stream-format=(string)byte-stream, alignment=(string)au, parsed=(boolean)true, level=(string)3.1, profile=(string)high-4:2:2, interlace-mode=(string)progressive, chroma-forma
t=(string)4:2:2, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8
0:00:32.666674102 9535 0x557cdca84e80 DEBUG v4l2videodec gstv4l2videodec.c:694:gst_v4l2_video_dec_set_format: Setting format: video/x-h264, stream-format=(string)byte-stream, al
ignment=(string)au, level=(string)3.1, profile=(string)high-4:2:2, width=(int)1280, height=(int)720, framerate=(fraction)10/1, interlace-mode=(string)progressive, chroma-format=(string)4:2:2, bit-depth-lu
ma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true
0:00:32.668155218 9535 0x557cdca84e80 DEBUG v4l2videodec gstv4l2videodec.c:1704:gst_v4l2_video_dec_src_query: Returning src caps video/x-raw, format=(string)NV12, width=(int)[ 1
, 32768 ], height=(int)[ 1, 32768 ], framerate=(fraction)[ 0/1, 2147483647/1 ], pixel-aspect-ratio=(fraction)1/1
0:00:32.668332728 9535 0x557cdca84e80 DEBUG v4l2videodec gstv4l2videodec.c:1728:gst_v4l2_video_dec_sink_getcaps: Returning sink caps video/x-h264, width=(int)1280, height=(int)7
20, framerate=(fraction)10/1, stream-format=(string)byte-stream, alignment=(string)au, parsed=(boolean)true, level=(string)3.1, profile=(string)high-4:2:2, interlace-mode=(string)progressive, chroma-forma
t=(string)4:2:2, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8
0:00:32.668756573 9535 0x557cdca84e80 DEBUG v4l2videodec gstv4l2videodec.c:1728:gst_v4l2_video_dec_sink_getcaps: Returning sink caps video/x-h264, width=(int)1280, height=(int)7
20, framerate=(fraction)10/1, stream-format=(string)byte-stream, alignment=(string)au, parsed=(boolean)true, level=(string)3.1, profile=(string)high-4:2:2, interlace-mode=(string)progressive, chroma-forma
t=(string)4:2:2, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8
0:00:32.668831550 9535 0x557cdca84e80 DEBUG v4l2videodec gstv4l2videodec.c:1337:gst_v4l2_video_dec_handle_frame: Handling frame 0
0:00:32.668852632 9535 0x557cdca84e80 DEBUG v4l2videodec gstv4l2videodec.c:1377:gst_v4l2_video_dec_handle_frame: Sending header
**PERF: 0.00 (0.00)
**PERF: 0.00 (0.00)
**PERF: 0.00 (0.00)
**PERF: 0.00 (0.00)
**PERF: 0.00 (0.00)
**PERF: 0.00 (0.00)
**PERF: 0.00 (0.00)
**PERF: 0.00 (0.00)
**PERF: 0.00 (0.00)
**PERF: 0.00 (0.00)