AlexxIT / WebRTC

Home Assistant custom component for real-time viewing of almost any camera stream using WebRTC and other technologies.
https://github.com/AlexxIT/Blog
MIT License
1.44k stars 169 forks source link

Dashcast webrtc using a RTSP url does not work anymore! #567

Open atv2016 opened 1 year ago

atv2016 commented 1 year ago

I feel this is something of the last 2 days maybe, seems to coincide with either webrtc or homeassistant update, but a regular webrtc dash cast using a rtsp to a chromecast v1 just shows as Dashcast, you can see it loading the url like normal, then a black screen.

I restarted HA, frigate (i use re-streamed urls), but nothing.

I can connect to the RTSP urls using VLC no problem.

atv2016 commented 1 year ago

Logger: libav.rtsp Source: components/stream/worker.py:616 First occurred: 15:50:58 (1 occurrences) Last logged: 15:50:58

Too short data for FU-A H.264 RTP packet

Gadund commented 1 year ago

I had the same. Something changed to the YAML Code (HA Update). Re-add the DashCast to your automation and it will work again Old YAML: image New Working YAML with Service: image

atv2016 commented 1 year ago

Nice! I'll try that out. It will be a lot of automations i have to check..

Was this announced as a breaking change that you know off? Wish they wouldn't keep breaking stuff.


From: Gadund @.> Sent: 09 September 2023 19:35 To: AlexxIT/WebRTC @.> Cc: atv2016 @.>; Author @.> Subject: Re: [AlexxIT/WebRTC] Dashcast webrtc using a RTSP url does not work anymore! (Issue #567)

I had the same. Something changed to the YAML Code (HA Update). Re-add the DashCast to your automation and it will work again Old YAML: [image]https://user-images.githubusercontent.com/1338436/266797335-cfb76076-240c-4f02-84b5-134a049dad7f.png New Working YAML with Service: [image]https://user-images.githubusercontent.com/1338436/266797384-743d988b-c64c-4cc0-ba29-ae302b2bf5df.png

— Reply to this email directly, view it on GitHubhttps://github.com/AlexxIT/WebRTC/issues/567#issuecomment-1712573853, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEBCFU6ZVY65W4TYWAUDYSDXZSZHDANCNFSM6AAAAAA4QIASDY. You are receiving this because you authored the thread.Message ID: @.***>

atv2016 commented 1 year ago

I'll try it but i had that service command in there already it seems. The only difference is i dont use MSE.


From: Gadund @.> Sent: 09 September 2023 19:35 To: AlexxIT/WebRTC @.> Cc: atv2016 @.>; Author @.> Subject: Re: [AlexxIT/WebRTC] Dashcast webrtc using a RTSP url does not work anymore! (Issue #567)

I had the same. Something changed to the YAML Code (HA Update). Re-add the DashCast to your automation and it will work again Old YAML: [image]https://user-images.githubusercontent.com/1338436/266797335-cfb76076-240c-4f02-84b5-134a049dad7f.png New Working YAML with Service: [image]https://user-images.githubusercontent.com/1338436/266797384-743d988b-c64c-4cc0-ba29-ae302b2bf5df.png

— Reply to this email directly, view it on GitHubhttps://github.com/AlexxIT/WebRTC/issues/567#issuecomment-1712573853, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEBCFU6ZVY65W4TYWAUDYSDXZSZHDANCNFSM6AAAAAA4QIASDY. You are receiving this because you authored the thread.Message ID: @.***>

atv2016 commented 1 year ago

I'm having some success use the force:true option actually. Things seem to cast normally now.

@@.***> What does this do ?


From: Alef Veld @.> Sent: 09 September 2023 21:05 To: AlexxIT/WebRTC @.>; AlexxIT/WebRTC @.> Cc: Author @.> Subject: Re: [AlexxIT/WebRTC] Dashcast webrtc using a RTSP url does not work anymore! (Issue #567)

I'll try it but i had that service command in there already it seems. The only difference is i dont use MSE.


From: Gadund @.> Sent: 09 September 2023 19:35 To: AlexxIT/WebRTC @.> Cc: atv2016 @.>; Author @.> Subject: Re: [AlexxIT/WebRTC] Dashcast webrtc using a RTSP url does not work anymore! (Issue #567)

I had the same. Something changed to the YAML Code (HA Update). Re-add the DashCast to your automation and it will work again Old YAML: [image]https://user-images.githubusercontent.com/1338436/266797335-cfb76076-240c-4f02-84b5-134a049dad7f.png New Working YAML with Service: [image]https://user-images.githubusercontent.com/1338436/266797384-743d988b-c64c-4cc0-ba29-ae302b2bf5df.png

— Reply to this email directly, view it on GitHubhttps://github.com/AlexxIT/WebRTC/issues/567#issuecomment-1712573853, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEBCFU6ZVY65W4TYWAUDYSDXZSZHDANCNFSM6AAAAAA4QIASDY. You are receiving this because you authored the thread.Message ID: @.***>

iddiek commented 1 year ago

i've to force too to cast cameras on my android TV and nest hub device. Have to stop cast manually too, otherwise it will not accept new cast (i.e. to change camera source) i'm using entity added as generic_cam, not rtsp url

service: webrtc.dash_cast
data:
  entity_id: media_player.cucina
  entity: camera.box_cam
  force: true
iddiek commented 11 months ago

i've to force too to cast cameras on my android TV and nest hub device. Have to stop cast manually too, otherwise it will not accept new cast (i.e. to change camera source)

Any news about this workaround?

TheStigh commented 10 months ago

I had the same. Something changed to the YAML Code (HA Update). Re-add the DashCast to your automation and it will work again Old YAML: image New Working YAML with Service: image

It is true that the entity_id now should be part of data. The indent is wrong for extra: but then again, I can't get it to work anymore either. Something is broken somewhere.

Do casting to a chromecast device work for you now?

atoulmin commented 9 months ago

i've to force too to cast cameras on my android TV and nest hub device. Have to stop cast manually too, otherwise it will not accept new cast (i.e. to change camera source)

Any news about this workaround?

I managed to get around this, after a set time i just play a 2 second mp3 file to the chromecast. It then finishes on it's own and will accept another cast.

TheStigh commented 9 months ago

i've to force too to cast cameras on my android TV and nest hub device. Have to stop cast manually too, otherwise it will not accept new cast (i.e. to change camera source)

Any news about this workaround?

I managed to get around this, after a set time i just play a 2 second mp3 file to the chromecast. It then finishes on it's own and will accept another cast.

Can you please share your configuration ?