I have established an SRT Stream from a Raspberry Pi to my PC. Everything works fine. I am also able to watch the stream with VLC. Now I want to capture the stream in Python.
With RTMP and HTTP the command
cap = cv2.VideoCapture("srt://IP:PORT")
frame = cap.read()
worked without any problem.
But with SRT, OpenCV does not even try to capture the stream.
What could I do?
Edit:
Some more information about my project: I have a USB Camera connected with my Raspberry Pi and stream this live video over SRT. I installed SRT from Haivision and created the stream with the following command:
./srt-live-transmit udp://:1234 srt://:4201 -v
The UDP path is the input of the USB camera. To watch the stream locally on the Raspberry Pi over ffplay works. As I said before, to consume the Video on my PC also worked. With OBS, until now, I was not able to start the stream.