Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix URL as direct camera source #522

Closed
cbroissa-github opened this issue Jul 11, 2023 · 15 comments
Closed

Fix URL as direct camera source #522

cbroissa-github opened this issue Jul 11, 2023 · 15 comments
Labels
bug Something isn't working

Comments

@cbroissa-github
Copy link

Hello,
With the new version 3.2.0 on Home Assistant, my cam doesn't work with the error WebRTC/Offer stream not found.
Any idea ?
Thank you.

@uowis
Copy link

uowis commented Jul 11, 2023

Same error, nothing in log.

Home Assistant 2023.5.4
Supervisor 2023.07.1
Operating System 10.3
Interface utilisateur : 20230503.3 - lates

@AlexxIT AlexxIT added the question Further information is requested label Jul 11, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Jul 11, 2023

You need to provide all the details of how your streams are set up.

@uowis
Copy link

uowis commented Jul 11, 2023

type: custom:webrtc-camera
url: rtsp:https://192.xxxx.xxxx.xx:8080/h264_ulaw.sdp

Android ip web cam
RTSP work

debug :

2023-07-11 14:03:55.782 DEBUG (webrtc) [custom_components.webrtc.utils] �[90m14:03:55.782�[0m �[32mINF�[0m go2rtc version 1.6.0 linux/arm64
2023-07-11 14:03:55.786 DEBUG (webrtc) [custom_components.webrtc.utils] �[90m14:03:55.784�[0m �[32mINF�[0m [api] listen �[36maddr=�[0m:1984
2023-07-11 14:03:55.787 DEBUG (webrtc) [custom_components.webrtc.utils] �[90m14:03:55.786�[0m �[32mINF�[0m [rtsp] listen �[36maddr=�[0m:8554
2023-07-11 14:03:55.788 DEBUG (webrtc) [custom_components.webrtc.utils] �[90m14:03:55.787�[0m �[32mINF�[0m [webrtc] listen �[36maddr=�[0m:8555/tcp
2023-07-11 14:03:55.802 DEBUG (webrtc) [custom_components.webrtc.utils] �[90m14:03:55.800�[0m �[32mINF�[0m [srtp] listen �[36maddr=�[0m:8443
2023-07-11 14:04:17.643 DEBUG (MainThread) [custom_components.webrtc] New client: {'authSig': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI5N2M2NDQ2MDVjYzY0YjE3OTRkODY2MDY0Yzg4NGMxYSIsInBhdGgiOiIvYXBpL3dlYnJ0Yy93cyIsInBhcmFtcyI6W10sImlhdCI6MTY4OTA3NzA1NiwiZXhwIjoxNjg5MDc3MDg2fQ.63-Up8rLua9elbyIlSeZAaK2ng7R97Xg7zFhTUd5INA', 'url': 'rtsp:https://xxxxxxx:xxxx/h264_ulaw.sdp'}
2023-07-11 14:09:38.465 DEBUG (webrtc) [custom_components.webrtc.utils] �[90m14:09:38.460�[0m �[31mWRN�[0m �[1mgithub.com/AlexxIT/go2rtc/internal/hass/hass.go:54�[0m�[36m >�[0m �[36merror=�[0m�[31m"hass: wrong type: auth_invalid"�[0m
2023-07-11 14:10:26.662 DEBUG (webrtc) [custom_components.webrtc.utils] �[90m14:10:26.661�[0m �[31mWRN�[0m [streams] json locked
2023-07-11 14:10:27.517 DEBUG (webrtc) [custom_components.webrtc.utils] �[90m14:10:27.515�[0m �[1m�[31mERR�[0m�[0m �[1mgithub.com/AlexxIT/go2rtc/internal/mjpeg/init.go:178�[0m�[36m >�[0m �[36merror=�[0m�[31m"dial tcp 192.168.xxx.xxx:554: connect: no route to host"�[0m

@cbroissa-github
Copy link
Author

type: custom:webrtc-camera
url: rtsp:https://192.xx.xx.xx/ch0_0.h264
ui: true

@andonevris
Copy link

andonevris commented Jul 11, 2023

Same issue here, for me it is because of go2rtc 1.6.0, reverting to go2rtc 1.5.0 brings the streams back.

As a temporary workaround I used a crude hack, in the Home Assistant config folder I replaced go2rtc 1.6.0 with 1.5.0 but that will get overwritten so you need to rename the 1.5.0 to 1.6.0 as a spoof, luckily it looks like the integration only checks the name so it falls for the spoof.

My setup is using basic webrtc camera setup on home assistant installed via HACS connecting to Unifi Protect cameras

type: custom:webrtc-camera
url: rtspx:https://IP ADDRESS/random string provided by camera UI
muted: true
background: true

@dsimop
Copy link

dsimop commented Jul 11, 2023

Same here, exactly the same problem.

@uowis
Copy link

uowis commented Jul 11, 2023

i have delete go2rc and reboot it's ok for me now

@AlexxIT
Copy link
Owner

AlexxIT commented Jul 11, 2023

Bad idea to use the new version of the integration with the old go2rtc. There may be confusing errors.

@AlexxIT AlexxIT added bug Something isn't working and removed question Further information is requested labels Jul 11, 2023
@bkbartk
Copy link

bkbartk commented Jul 11, 2023

I have a similar issue (only is says "mse" instead of webrtc/offer)
image
reverting to v 3.1.1 helped.
I noticed the correct version of gotortw (1.5.0 or 1.6.0) is automatically downloaded.

@AlexxIT AlexxIT changed the title WebRTC/Offer stream not found Fix URL as direct camera source Jul 11, 2023
AlexxIT added a commit that referenced this issue Jul 11, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Jul 11, 2023

https://github.com/AlexxIT/WebRTC/releases/tag/v3.2.1

@AlexxIT AlexxIT closed this as completed Jul 11, 2023
@andonevris
Copy link

Bad idea to use the new version of the integration with the old go2rtc. There may be confusing errors.

Yeah for sure, like I said just a crude hack to get the streams back for now

@pxFIN
Copy link

pxFIN commented Jul 11, 2023

Verified, after installing v3.2.1 + HA restart camera is working again

@Shivy011
Copy link

Same issue here, for me it is because of go2rtc 1.6.0, reverting to go2rtc 1.5.0 brings the streams back.

As a temporary workaround I used a crude hack, in the Home Assistant config folder I replaced go2rtc 1.6.0 with 1.5.0 but that will get overwritten so you need to rename the 1.5.0 to 1.6.0 as a spoof, luckily it looks like the integration only checks the name so it falls for the spoof.

My setup is using basic webrtc camera setup on home assistant installed via HACS connecting to Unifi Protect cameras

type: custom:webrtc-camera url: rtspx:https://IP ADDRESS/random string provided by camera UI muted: true background: true

Hi could you advise how to do this?
I cannot find the go2rtc file in cofig

@andonevris
Copy link

Same issue here, for me it is because of go2rtc 1.6.0, reverting to go2rtc 1.5.0 brings the streams back.
As a temporary workaround I used a crude hack, in the Home Assistant config folder I replaced go2rtc 1.6.0 with 1.5.0 but that will get overwritten so you need to rename the 1.5.0 to 1.6.0 as a spoof, luckily it looks like the integration only checks the name so it falls for the spoof.
My setup is using basic webrtc camera setup on home assistant installed via HACS connecting to Unifi Protect cameras
type: custom:webrtc-camera url: rtspx:https://IP ADDRESS/random string provided by camera UI muted: true background: true

Hi could you advise how to do this? I cannot find the go2rtc file in cofig

No need to do this anymore, the issue is resolved.

I deleted the web rtc camera integration and the hacs install then re-installed from scratch and all working now.

@Shivy011
Copy link

Same issue here, for me it is because of go2rtc 1.6.0, reverting to go2rtc 1.5.0 brings the streams back.
As a temporary workaround I used a crude hack, in the Home Assistant config folder I replaced go2rtc 1.6.0 with 1.5.0 but that will get overwritten so you need to rename the 1.5.0 to 1.6.0 as a spoof, luckily it looks like the integration only checks the name so it falls for the spoof.
My setup is using basic webrtc camera setup on home assistant installed via HACS connecting to Unifi Protect cameras
type: custom:webrtc-camera url: rtspx:https://IP ADDRESS/random string provided by camera UI muted: true background: true

Hi could you advise how to do this? I cannot find the go2rtc file in cofig

No need to do this anymore, the issue is resolved.

I deleted the web rtc camera integration and the hacs install then re-installed from scratch and all working now.

Brilliant thanks, I had not bothered to check if there was an update for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants