I have been trying to get my AGX Orin to capture a webcam stream and then turn it around and sent it out as a RTSP stream. But I keep getting and error that the cv2.VideoWriter is not open. No matter what kind of configuration I use the Videowriter will not open.
I have compiled Open CV with Gstreamer on.
I know that the cv2.Videowriter works because I can write to a file.
Thanks for the response.
I gave it a try and am still getting
"Writer failed"
I also believe that the issue has to do with the “gst_out” string.
I have seen other post in this forum where they seem to get the RTSP stream to be sent out with versions of the “gst_out” string
I have tried many iterations of the “gst_out” string to no avail.
I starting to think it may have to do with my OpenCV build.
Is there a recomended OpenCV build that is for the jetson products.?
Might and give that a try
It says its gstreamer is OFF
What’s odd is When I ran that command
import cv2
print(cv2.getBuildInformation())
after compiling OpenCV with Gstreamer=ON it said gstreamer was ON .
But now its off.
I am going to try removing OPencv and reinstall.
Got any suggestions for the best route to install OpenCV on AGX Orin?
There are many scripts that would be ok I think, such as
although you may have to remove v4l2ucp at line 40 of install_opencv4.6.0_Jetson.sh if running JP5.
Be aware that, AFAIK, the opencv install step would only install python2 OR python3. So be sure about the one you want to install opencv in, and configure your opencv build accordingly. (the link above configures for python3)
In python, pip may also install dependencies that might result in other opencv versions to be installed.