I want to run it at 1fps

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

please refer to this command:
gst-launch-1.0 filesrc location=/opt/nvidia/deepstream/deepstream/samples/streams//sample_720p.mp4 ! qtdemux ! h264parse ! nvv4l2decoder ! videorate ! “video/x-raw(memory:NVMM), framerate=(fraction)1/1” ! nvvideoconvert ! capsfilter caps="video/x-raw(memory:NVMM), format=“NV12"” ! nvv4l2h264enc bitrate=1000000 ! filesink location=a.h264

The pipeline you showed is no different from the pipeline I uploaded. And like the pipeline I uploaded, I want to receive it as udp and export it as udp. Is it possible with udp?

from my last command, nvv4l2h264enc can encode 1 fps raw data.
nvv4l2h264enc needs NV12 input, to narrow this issue , please check if can get NV12 data from udp first.

I checked and there is no problem with nvv4l2h264enc.
But rtsp-server was the problem.
rtsp-server works at 6fps, not 1-5fps.
Do you know why?

  1. please refer to this command to test fps before encoding.
    gst-launch-1.0 filesrc location=/opt/nvidia/deepstream/deepstream/samples/streams//sample_720p.mp4 ! qtdemux ! h264parse ! nvv4l2decoder ! videorate ! “video/x-raw(memory:NVMM), framerate=(fraction)1/1” ! nvvideoconvert ! fpsdisplaysink
  2. if nvv4l2h264enc outputs data to file, please check if fps is 1. if yes, the issue should be RTSP module.

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.