WebRTC
WebRTC copied to clipboard
Imou Ranger 2 4Mp Not Showing 4K stream
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
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.
You may ask Google, Firefox and Opera to buy H265 license...
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.
Just read readme about supported audio codecs
Yes, I already did and set in accordance with it. Anyways, one camera is working fine, second one not broadcast audio.
Check my new project. Maybe it can handle 2-way audio for your camera https://github.com/AlexxIT/go2rtc
Thank you, I will check! Jirka
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....)
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.
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
EDIT: I have go2rtc installed as docker and configured on HA, but I did not put anything in the config file
H265 for MSE supported from v3
Should be fixed in v3