petro-kushchak / homebridge-homepod-radio

MIT License
39 stars 2 forks source link

BBC Radio 4 broken URL gives "ffmpeg pipe error: Error: write EPIPE Error" #20

Closed robscousins closed 1 year ago

robscousins commented 2 years ago

Getting when I start any radio station: ffmpeg pipe error: Error: write EPIPE

[7/19/2022, 4:44:07 PM] [HomepodRadioPlatform] [BBC Radio 4] state: null [7/19/2022, 4:44:07 PM] [HomepodRadioPlatform] [BBC Radio 4] Triggered GET CurrentMediaState: 2 [7/19/2022, 4:44:07 PM] [HomepodRadioPlatform] [BBC Radio 4] Triggered GET getVolume [7/19/2022, 4:44:09 PM] [HomepodRadioPlatform] [BBC Radio 4] Current volume 33 [7/19/2022, 4:44:28 PM] [HomepodRadioPlatform] [BBC Radio 4] Triggered GET CurrentMediaState: 2 [7/19/2022, 4:44:28 PM] [HomepodRadioPlatform] [BBC Radio 4] Triggered GET CurrentMediaState: 2 [7/19/2022, 4:44:28 PM] [HomepodRadioPlatform] [BBC Radio 4] Triggered SET TargetMediaState: 0 [7/19/2022, 4:44:28 PM] [HomepodRadioPlatform] [BBC Radio 4] Started hearbeat 573 [7/19/2022, 4:44:28 PM] [HomepodRadioPlatform] [BBC Radio 4] Started streaming http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_radio_fourfm.m3u8 [7/19/2022, 4:44:28 PM] [HomepodRadioPlatform] [BBC Radio 4] Setting volume to 25 [BBC Radio 4 8421@Target Media State] The write handler for the characteristic 'Target Media State' on the accessory 'BBC Radio 4 8421' was slow to respond! [7/19/2022, 4:44:32 PM] [HomepodRadioPlatform] [BBC Radio 4] ffmpeg pipe error: Error: write EPIPE [7/19/2022, 4:44:38 PM] [HomepodRadioPlatform] [BBC Radio 4] Triggered SET TargetMediaState: 1

Homebridge 1.5.0 is running on a RPI4 on docker using recommended image on your page.

Config is:

{ "bridge": { "name": "Homebridge 8E59", "username": "0E:0B:D5:AC:8E:59", "port": 53326, "pin": "031-45-154" }, "accessories": [], "platforms": [ { "name": "Config", "port": 8581, "platform": "config" }, { "homepodId": "CC:D2:81:81:94:CF", "serialNumber": "CCD2818194CF", "mediaPath": "/media/homepod", "httpPort": 7654, "verboseModel": true, "volumeControl": false, "radios": [ { "name": "BBC Radio 4", "radioUrl": "http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_radio_fourfm.m3u8", "volume": 25, "autoResume": true } ], "platform": "HomepodRadioPlatform" } ] }

Appreciate any pointers

robscousins commented 2 years ago

Additionally: If I click on the m3u8 url in Homebridge UI it opens another browser tab and plays just fine directly to the HomePod (obviously this is outside of Homebridge itself), However I get the above error is tap on the tile in Home app

robscousins commented 2 years ago

Oh these are the details if the HomePod: Name: AppleTV 4K 1 Office Model/SW: Apple TV 4K, tvOS 15.5.1 Address: 192.168.86.25 MAC: CC:D2:81:81:94:CF Deep Sleep: False Identifiers:

petro-kushchak commented 2 years ago

Hi, looks like that radio URL is not working properly with HomePod... When I tried to open

"radioUrl": "http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_radio_fourfm.m3u8", in Safari, it redirected me to some not working page with this URL:

http://as-hls-uk-live.akamaized.net/pool_904/live/uk/bbc_radio_fourfm/bbc_radio_fourfm.isml/bbc_radio_fourfm-audio%3d320000.norewind.m3u8

For BBC Radio 4 I googled this one: http://stream.live.vc.bbcmedia.co.uk/bbc_radio_fourfm should work fine

robscousins commented 2 years ago

thanks for there response much appreciated. however I didn't encounter the error with the URL that you reported and the others I tried also worked just fine in a browser tab. However I did make the change as you've suggested and it still not playing (although different error message):

[7/20/2022, 5:54:43 PM] [HomepodRadioPlatform] [BBC Radio 4] state: null [7/20/2022, 5:54:43 PM] [HomepodRadioPlatform] [BBC Radio 4] Triggered GET CurrentMediaState: 2 [7/20/2022, 5:54:56 PM] [HomepodRadioPlatform] [BBC Radio 4] Triggered GET CurrentMediaState: 2 [7/20/2022, 5:55:02 PM] [HomepodRadioPlatform] [BBC Radio 4] Triggered GET CurrentMediaState: 2 [7/20/2022, 5:55:03 PM] [HomepodRadioPlatform] [BBC Radio 4] Triggered GET CurrentMediaState: 2 [7/20/2022, 5:55:53 PM] [HomepodRadioPlatform] [BBC Radio 4] Triggered GET CurrentMediaState: 2 [7/20/2022, 5:55:55 PM] [HomepodRadioPlatform] [BBC Radio 4] Triggered SET TargetMediaState: 0 [7/20/2022, 5:55:55 PM] [HomepodRadioPlatform] [BBC Radio 4] Started hearbeat 2150 [7/20/2022, 5:55:55 PM] [HomepodRadioPlatform] [BBC Radio 4] Started streaming http://stream.live.vc.bbcmedia.co.uk/bbc_radio_fourfm [7/20/2022, 5:55:55 PM] [HomepodRadioPlatform] [BBC Radio 4] Setting volume to 35 [BBC Radio 4 8421@Target Media State] The write handler for the characteristic 'Target Media State' on the accessory 'BBC Radio 4 8421' was slow to respond! [7/20/2022, 5:56:04 PM] [HomepodRadioPlatform] [BBC Radio 4] Restarting playback... total attempts: 0 [7/20/2022, 5:56:04 PM] [HomepodRadioPlatform] [BBC Radio 4] Cleared hearbeat 2150 - previous timer [7/20/2022, 5:56:04 PM] [HomepodRadioPlatform] [BBC Radio 4] Started hearbeat 2285 [7/20/2022, 5:56:04 PM] [HomepodRadioPlatform] [BBC Radio 4] Started streaming http://stream.live.vc.bbcmedia.co.uk/bbc_radio_fourfm [7/20/2022, 5:56:04 PM] [HomepodRadioPlatform] [BBC Radio 4] Setting volume to 35 [7/20/2022, 5:56:11 PM] [HomepodRadioPlatform] [BBC Radio 4] Restarting playback... total attempts: 0 [7/20/2022, 5:56:11 PM] [HomepodRadioPlatform] [BBC Radio 4] Cleared hearbeat 2285 - previous timer [7/20/2022, 5:56:11 PM] [HomepodRadioPlatform] [BBC Radio 4] Started hearbeat 2371

best regards rob

robscousins commented 2 years ago

Quick update. I have selected another HomePod and I can confirm I now have it working! thanks Very much!