elsampsa / valkka-onvif

libValkka Onvif Dependencies
MIT License
6 stars 2 forks source link

Issue#01.while executing valkka camsearch command.The cue being "Looking for H264 profiles with max image width of 1920" #1

Closed ramesh-xinthe closed 9 months ago

ramesh-xinthe commented 11 months ago

Environment: CoolerMaster-I7-RTX

Description: Hi @elsampsa

we are facing the following issue while executing valkka camsearch command.

There is an Imou Ranger-2 [1] ONVIF camera with PTZ which has the following RTSP URLs provided by Imou documentation - 1) rtsp://admin:L244E3F7@192.168.30.158/cam/realmonitor?channel=1&subtype=0 (1920p @ 25FPS - H.265) 2) rtsp://admin:L244E3F7@192.168.30.158/cam/realmonitor?channel=1&subtype=1 (480p @ 15FPS - H.264) Bluecherry [2] discovers the streams successfully as - 1) rtsp://admin:L244E3F7@192.168.30.158/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif 2) rtsp://admin:L244E3F7@192.168.30.158/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif

So I ran '$valkka-camsearch --user admin --passwd L244E3F7' and got the following.

The Imou was detected as an ONVIF camera. The connection with the username:password on the console was also a success. Then there was an error. One thing I can think of for the error is that the 1920p stream is H.265 if valkka-onvif got the tail correctly and valkka-core is the one that wanted to connect but failed. The cue being "Looking for H264 profiles with max image width of 1920". If we try looking for H264 profiles with 480p, maybe it will succeed. Hope it helps.

That being said, my suggestion would be to see if there is a proper way to get all the streams/tails and their properties (like Bluecherry does already and it might be worth poring its C++ module) because not all cameras with 3K or 4K or 8K resolutions will have 1920 streams and/or H.264. In general, every camera, not just ONVIF have 2 or more streams and organizations in the real world being cheapskates use the lowest resolution stream as a rule, not an exception.

Note: The Imou camera Ip is 192.168.30.158

[1] https://www.imoulife.com/product/detail/ranger2

[2] https://www.bluecherrydvr.com/ "... supports ONVIF, and issues GPU for motion detection ..."

Please find the attached screenshot for your reference

Issue1-1 Issue1-2

elsampsa commented 11 months ago

pls try again with updated master branch