method SETUP failed: 459 Client error

asked 2020-01-13 06:24:46 -0600

Hello, I am trying to capture a stream from a device in my local network using RTSP and python-opencv. When opening the stream in VLC, everything is working good. However, when I run the following script I get the 459 Client Error.

import cv2
import numpy as np
import os
os.environ["OPENCV_FFMPEG_CAPTURE_OPTIONS"] = "rtsp_transport;udp"
vcap = cv2.VideoCapture("rtsp://devscopejetnano-desktop:5050/stream", cv2.CAP_FFMPEG)
print(vcap.isOpened())  
while(1):
    ret, frame = vcap.read()
    if ret == False:
        print("Frame is empty")
        break
    else:
        cv2.imshow('VIDEO', frame)
        cv2.waitKey(1)

I did not find information regarding this error.

Any idea what is going wrong?

Thank you

edit retag flag offensive close merge delete

Comments

Sorry. Apologised I don't used Jetson Nano Developer Kit. I used Raspberry pi 3/4

supra56 gravatar imagesupra56 ( 2020-01-13 08:22:51 -0600 )edit

I don't think the problem is the JetNano itself but the setup/configuration I have. Did you manage to put a RTSP connection to work with OpenCV?

verance gravatar imageverance ( 2020-01-13 08:37:34 -0600 )edit

I used IP address instead of devscopejetnano-desktop.

supra56 gravatar imagesupra56 ( 2020-01-13 20:23:19 -0600 )edit