# Problems with RTSP video in Python

**URL:** <https://forums.developer.nvidia.com/t/problems-with-rtsp-video-in-python/326689>\
**Category:** Jetson AGX Orin\
**Tags:** rtsp, camera, python\
**Created:** [March 11, 2025, 6:47am UTC](https://forums.developer.nvidia.com/t/problems-with-rtsp-video-in-python/326689 "2025-03-11T06:47:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![osy0784](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@osy0784](https://forums.developer.nvidia.com/u/osy0784)\
**Post date:** [March 11, 2025, 6:47am UTC](https://forums.developer.nvidia.com/t/problems-with-rtsp-video-in-python/326689/1 "2025-03-11T06:47:31Z")

</div>

hello. I’m implementing a function to read and output rtsp video using python’s cv2.videocapture().

The implementation is accessing 4 different cameras and displaying each one on a single screen.

However, I’m not getting any video output. I think this has more to do with jetson than camera issues. Here’s the rationale.  
(Currently using: jetpack 6, cuda 12.2, cudnn8.6.2, opencv 4.9.0 with cuda)

1. in a Window environment, I get the screen output (using the same source and no password).
2. when I run this source on Linux, only 2 videos are output.
3. it worked fine with jetpack 5 (cuda 11). (Maybe something changed with the jetpack update?)
4. locally connected camera outputs the same 4 videos at once without any problem.
5. when I output the same video from an external camera, it only outputs 3 videos and not one.

---

<div class="post-metadata">

**Author:** ![carolyuu](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/carolyuu/32/14043_2.png) [@carolyuu](https://forums.developer.nvidia.com/u/carolyuu)\
**Post date:** [March 11, 2025, 7:00am UTC](https://forums.developer.nvidia.com/t/problems-with-rtsp-video-in-python/326689/2 "2025-03-11T07:00:18Z")

</div>

Hi,

For the camera basic functionality first needs to check the device and driver configuration.  
You can reference to below program guide for the detailed information of device tree and driver implementation.

> **[Sensor Software Driver Programming — NVIDIA Jetson Linux Developer Guide 1...](https://docs.nvidia.com/jetson/archives/r36.3/DeveloperGuide/SD/CameraDevelopment/SensorSoftwareDriverProgramming.html?highlight=programing#sensor-software-driver-programming)**

Please refer to Applications Using V4L2 IOCTL Directly by using V4L2 IOCTL to verify basic camera functionality.

> **[Sensor Software Driver Programming — NVIDIA Jetson Linux Developer Guide 1...](https://docs.nvidia.com/jetson/archives/r36.3/DeveloperGuide/SD/CameraDevelopment/SensorSoftwareDriverProgramming.html?highlight=programing#to-run-a-v4l2-ctl-test)**

Once confirm the configure and still failed below link help to get log and some information and some tips for debug.

> **[Jetson/l4t/Camera BringUp - eLinux.org](https://elinux.org/Jetson/l4t/Camera_BringUp#Steps_to_enable_more_debug_messages)**

Thanks!

---

<div class="post-metadata">

**Author:** ![osy0784](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@osy0784](https://forums.developer.nvidia.com/u/osy0784)\
**Post date:** [March 11, 2025, 7:11am UTC](https://forums.developer.nvidia.com/t/problems-with-rtsp-video-in-python/326689/3 "2025-03-11T07:11:15Z")

</div>

Thank you for your response.

This answer appears to be for a directly connected camera, so I’m going to use the

Do you need to check the rtsp camera V4L2 first?

---

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [March 12, 2025, 2:57am UTC](https://forums.developer.nvidia.com/t/problems-with-rtsp-video-in-python/326689/6 "2025-03-12T02:57:42Z")

</div>

Hi,  
There is no sample for launching multiple RTSP sources. You may try

1. Try the sample and see if each source can be launched successfully:  
[Doesn't work nvv4l2decoder for decoding RTSP in gstreamer + opencv - #3 by DaneLLL](https://forums.developer.nvidia.com/t/doesnt-work-nvv4l2decoder-for-decoding-rtsp-in-gstreamer-opencv/140321/3)
2. Apply the pipeline to the sample and see if two RTPS sources(cap and cap1) works:  
[Issue with multi-camera gstreamer capture using OpenCV - #6 by DaneLLL](https://forums.developer.nvidia.com/t/issue-with-multi-camera-gstreamer-capture-using-opencv/175001/6)
3. Add cap2 and cap3 for launching 4 sources

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [April 9, 2025, 3:24am UTC](https://forums.developer.nvidia.com/t/problems-with-rtsp-video-in-python/326689/8 "2025-04-09T03:24:11Z")

</div>

Closed on April 9, 2025, 3:24am UTC

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