Jetson Orin Nano hangs on recording RTSP to video file

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU): Jetson Orin Nano (8GB) dev kit
• DeepStream Version 6.3
• JetPack Version (valid for Jetson only) 5.1.2
• TensorRT Version: 8.5.2
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs) Bug
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)

  • Pull docker:
    docker pull nvcr.io/nvidia/deepstream:6.3-triton-multiarch

  • Run docker container:

docker run -it \
   --runtime nvidia \
   --gpus all \
   nvcr.io/nvidia/deepstream:6.3-triton-multiarch \
   bash
  • Install packages after running docker container:
    bash /opt/nvidia/deepstream/deepstream/user_additional_install.sh

  • Run Gstreamer pipeline:

mkdir -p outs

gst-launch-1.0 rtspsrc location=rtsp://admin:SQRQIW@192.168.1.22:554 \
    ! decodebin \
    ! nvvideoconvert \
    ! "video/x-raw, format=I420" \
    ! queue \
    ! x264enc \
    ! avimux \
    ! filesink location=outs/record_video.mp4
  • After that, it shows message as in the log.txt file:
    log.txt (1.2 KB)

  • After a while (1 minute), I stop the Gstreamer by Ctrl+C, and check the output video file, but it size is only 0KB

root@1ed96bf64ce7:/opt/nvidia/deepstream/deepstream-6.3# ll outs
total 8
drwxr-xr-x 2 root root 4096 Oct 12 07:35 ./
drwxr-xr-x 1 root root 4096 Oct 12 07:35 ../
-rw-r--r-- 1 root root    0 Oct 12 07:35 record_video.mp4

• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)
How to fix it?

Could you chang your pipeline from avimux to qtmux?

@yuweiw Thanks for your reply!

I changed from avimux to qtmux.
Unfortunately, the result is still the same!

log.txt (1.9 KB)

I run the command below on my platform.

gst-launch-1.0 rtspsrc location=rtsp://xxx ! rtph264depay ! h264parse  ! decodebin     ! nvvideoconvert  ! "video/x-raw, format=I420"     ! queue     ! x264enc     ! qtmux     ! filesink location=record_video.mp4

You can try that.

Sorry, it still has error!
log.txt (1.2 KB)

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

It may be that Gstreamer does not support your rtsp source very well. Could you try to build a rtsp server by refferring the link below: Build rtsp server and try that?

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