Hello everyone!I have encountered a confusing problem on my jetson-TX2.
First,I tested “gst-launch-1.0 rtspsrc location=“rtsp://192.168.0.10:554/user=admin_password=tlJwpbo6_channel=1_stream=0.sdp?real_stream” latency=0 ! decodebin ! nvvidconv ! videoconvert ! xvimagesink sync=false” in command window and I got real-time video of my IP camera.
However,when I want to use gstreamer in the project to do opencv displaying.I tested the follow code which always show a still picture.Could someone help me?Best wishes to you all!
If opencv has no gstreamer support, I would expect the videoCapture open to fail.
On TX2 (I’m running L4T 27.0.1), the only way for me to get it working from onboard camera into an opencv-3.2.0/C++ application was with planar (I420) format, as suggested in https://devtalk.nvidia.com/default/topic/1001696/jetson-tx1/failed-to-open-tx1-on-board-camera/post/5117370/#5117370.
This example, although not optimal, shows how to get frames in opencv. This might be useful for checking correct frame reading, autosize window allocation. Be aware that imshow needs some time for drawing. If you don’t provide a preallocated window, it has to create one for each frame and this may take some time.
If not yet done, I’d also suggest to boost clocks with