Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson nano)
• DeepStream Version 6.0
• JetPack Version (4.6.0)
producer:
gst-launch-1.0 -v rtspsrc location=“rtspt://192.168.0.12:8554/test2” protocols=4 ! rtph264depay ! rtph264pay config-interval=-1 ! udpsink buffer-size=819200 port=5400
consumer:
gst-launch-1.0 nvstreammux name=mux batch_size=1 width=1920 height=1080 live-source=true batched-push-timeout=0 ! nvinfer config-file-path=/home/testmachine/aiconsumer/build/yolov5s_config.txt
! queue ! videorate ! video/x-raw(memory:NVMM), framerate=(fraction)30/1 ! nvstreamdemux name=demux
udpsrc port=5400 buffer-size=819200 caps=“application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96” ! rtph264depay !
h264parse ! nvv4l2decoder ! queue ! mux.sink_0
demux.src_0 ! queue ! nvvideoconvert ! nvdsosd ! nvvideoconvert ! capsfilter caps="video/x-raw(memory:NVMM), format="NV12""
! nvv4l2h264enc profile=0 iframeinterval=30 bitrate=4000000 insert-sps-pps=1 preset-level=1 bufapi-version=1 maxperf-enable=1 ! h264parse ! rtph264pay ! udpsink sync=false port=5420
rtsp-server:
./Server “( udpsrc name=pay0 port=5420 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" )”
When the consumer is 1fps, the encoder doesn’t work, but if you change it to x264enc, it works. I want to use nvv4l2h264enc How to do it?
consumer(1fps fail):
gst-launch-1.0 nvstreammux name=mux batch_size=1 width=1920 height=1080 live-source=true batched-push-timeout=0 ! nvinfer config-file-path=.yolov5s_config.txt
! queue ! videorate ! video/x-raw(memory:NVMM), framerate=(fraction)1/1 ! nvstreamdemux name=demux
udpsrc port=5400 buffer-size=819200 caps=“application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96” ! rtph264depay !
h264parse ! nvv4l2decoder ! queue ! mux.sink_0
demux.src_0 ! queue ! nvvideoconvert ! nvdsosd ! nvvideoconvert ! capsfilter caps="video/x-raw(memory:NVMM), format="NV12""
! nvv4l2h264enc profile=0 iframeinterval=1bitrate=4000000 insert-sps-pps=1 preset-level=1 bufapi-version=1 maxperf-enable=1 ! h264parse ! rtph264pay ! udpsink sync=false port=5420