WebRTC icon indicating copy to clipboard operation
WebRTC copied to clipboard

Imou Ranger 2 4Mp Not Showing 4K stream

Open Betacart opened this issue 1 year ago • 7 comments

I tried Imou Ranger 2 Full HD - video has been perfectly loaded and PTZ controls was visible and operable. I switched to 4K version of that camera and since then, I see only black screen with "Loading video" icon at right top part of screen. PTZ controls are visible and camera can be operated. When load second, low quality stream, picture from camera is also visible. So, I assume only 4K video has problem. I checked logs and found only following:

.......

  • Stream Try Connect rtsp://xxx:[email protected]:554/cam/realmonitor?channel=1&subtype=1&unicast=true&proto=Onvif
  • WebRTC Ignore Audio Track codec not supported WebRTC support only PCM_ALAW or PCM_MULAW
  • muxerWebRTC.WritePacket WebRTC Client Offline
  • muxerWebRTC.WritePacket WebRTC Codec Not Supported
  • websocket.JSON.Receive EOF
  • Stream Exit On Demand No Viewer .......

Am I doing something wrong or is that 4K issue? Jirka

Betacart avatar Jul 29 '22 05:07 Betacart

After change to H.264 using Dahua's Config Tool, I can see picture. So, H.265 support will be nice to add. Anyway, I have problem with sound, even the output is set to PCMA, one camera can handle it, but second one not.

Betacart avatar Aug 03 '22 05:08 Betacart

You may ask Google, Firefox and Opera to buy H265 license...

AlexxIT avatar Aug 03 '22 10:08 AlexxIT

Ah, thank you for reply. I didn't know that. As I solved problem with video, can you check, why sound is not working? If needed, I can make any test on Ranger 2 4K - as I checked, you not have it as supported, but it work as well as PT commands from ONVIF.

Thanks for help.

Betacart avatar Aug 03 '22 10:08 Betacart

Just read readme about supported audio codecs

AlexxIT avatar Aug 04 '22 03:08 AlexxIT

Yes, I already did and set in accordance with it. Anyways, one camera is working fine, second one not broadcast audio.

Betacart avatar Aug 04 '22 05:08 Betacart

Check my new project. Maybe it can handle 2-way audio for your camera https://github.com/AlexxIT/go2rtc

AlexxIT avatar Aug 21 '22 11:08 AlexxIT

Thank you, I will check! Jirka

Betacart avatar Aug 21 '22 12:08 Betacart

You may ask Google, Firefox and Opera to buy H265 license...

Hello @AlexxIT

I dont want a open a new issue, but now, that chrome will support HEVC in the near future, possible to add the h265 support to the webrtc integration?

I use chrome based browser (Thorium) that support h265/HEVC

webrtc say that not supported codec, but nomal picture card is able to show it (but a high latency....)

Képernyőkép_Terület kiválasztása_20221028130704

vampywiz17 avatar Oct 28 '22 11:10 vampywiz17

You can also check project go2rtc. HEVC supported there. But we talking about MSE technology, not WebRTC technology. Because Chrome doesn't support and probably won't support HEVC for WebRTC.

AlexxIT avatar Oct 28 '22 12:10 AlexxIT

Ah, thank you for reply. I didn't know that. As I solved problem with video, can you check, why sound is not working? If needed, I can make any test on Ranger 2 4K - as I checked, you not have it as supported, but it work as well as PT commands from ONVIF.

Thanks for help.

Hello, I got a Ranger 2C and a Tapo cam, both with the same config, but unfortunatly the Ranger 2C PTZ does not works, could you who me your config plz ? here is mine :

type: custom:webrtc-camera
mse: false
entity: camera.lc_profile000
ptz:
  service: onvif.ptz
  data_left:
    entity_id: camera.lc_profile000
    pan: LEFT
  data_right:
    entity_id: camera.lc_profile000
    pan: RIGHT
  data_up:
    entity_id: camera.lc_profile000
    tilt: UP
  data_down:
    entity_id: camera.lc_profile000
    tilt: DOWN

DzzD avatar Dec 25 '22 22:12 DzzD

EDIT: I have go2rtc installed as docker and configured on HA, but I did not put anything in the config file

DzzD avatar Dec 25 '22 22:12 DzzD

H265 for MSE supported from v3

AlexxIT avatar Jan 02 '23 11:01 AlexxIT

Should be fixed in v3

AlexxIT avatar Jan 20 '23 16:01 AlexxIT