tensorrt_demos icon indicating copy to clipboard operation
tensorrt_demos copied to clipboard

WARNING:root:Camera: starting while cap is not opened!

Open starlord263 opened this issue 3 years ago • 1 comments

Hi, Good evening i am facing following error while passing --rtsp stream:

WARNING:root:Camera: starting while cap is not opened!

ERROR: failed to open camera!

I've tried all available solutions in github issues but still unable to resolve.

i am passing python3 trt_mtcnn.py --rtsp rtsp://root:[email protected]/axis-media/media.amp/ rtsp://root:[email protected]/axis-media/media.amp/

I also tried using this command gst-launch-1.0 -e rtspsrc location="rtsp://root:[email protected]/axis-media/media.amp" ! rtph264depay ! h264parse ! omxh264dec ! nveglglessink and it is working fine i am able to see output.

But i don't know why can not pass it as argument.

starlord263 avatar Jul 22 '22 12:07 starlord263

As a quick check, could you try to see if setting --rtsp_latency 2000 (command-line option) fixes the problem for you?

jkjung-avt avatar Jul 22 '22 15:07 jkjung-avt

Closing due to no further response.

jkjung-avt avatar Aug 19 '22 01:08 jkjung-avt