Page 1 of 1

Trouble streaming a PLS file that works in a browser

Posted: Mon Mar 30, 2020 1:43 am
by jlatz
I am trying to get MythTV to stream the Pasadena Public Radio Station KPCC

Their website contains a link to their streaming service: https://playerservices.streamtheworld.c ... PCC_FM.pls

which (at least tonight) lists three servers:
File1=https://18683.live.streamtheworld.com:443/KPCC_FM_SC
File2=https://17793.live.streamtheworld.com:443/KPCC_FM_SC
File3=https://17963.live.streamtheworld.com:443/KPCC_FM_SC

Inputting the first URL (to the pls file) seems to work in as much that the failure notice is that the referred file (File1) gives a Decoder Error - Could Not Open URL...

Substituting that specific URL into the database results in precisely the same error.

Opening the PLS link in VLC results in three streams - each one corresponding to the three listed servers, and the stream appears to be an mp3 stream - which MythTV should be able to decode.

Any clue? Where I live, terrestrial radio is not an option (too many hills in the way); I rely upon MythTV for radio, and up until now it has worked great. KPCC is changing their streaming servers next week - so unless I can get this in the can, I'm out one of my news sources...

Re: Trouble streaming a PLS file that works in a browser

Posted: Mon Mar 30, 2020 10:47 am
by paulh
Try this one. There is a warning message about needing to update the app but it works for now :)

http://kpcclive1.publicradio.org/listen.pls

The feeds in MythMusic's stream database are outdated since I haven't updated the DB from upstream in a long while. You can find the latest feeds for that station here:-
http://www.radiosure.com/rsdbms/details.php?id=28694

Re: Trouble streaming a PLS file that works in a browser

Posted: Mon Mar 30, 2020 11:42 am
by pvr4me
Hi Paul:

Can I access the search page for that radiosure.com site? Where?

Thanks,

Craig

Re: Trouble streaming a PLS file that works in a browser

Posted: Mon Mar 30, 2020 11:52 am
by paulh
There is an search edit on this page you can use to search the database.
http://www.radiosure.com/stations/

Now we all have some time on our hands I think now would be a good time to update the MythMusic stream DB.

Re: Trouble streaming a PLS file that works in a browser

Posted: Mon Mar 30, 2020 6:41 pm
by paulh
I've done some debugging to see why MythMusic is failing to play the new streams properly for example https://18683.live.streamtheworld.com:443/KPCC_FM_SC and it is because the new streams use the https protocol and our version of ffmpeg is currently compiled without support for it.

It requires some changes to how we configure our copy of ffmpeg so support for the https protocol is included. I have it working here with a slightly hacked version of our configure to pass the --enable-gnutls parameter to ffmpeg's configure but a proper fix will likely require more work to only enable it if it's available/installed.

The link to the new pls file for KPCC looks like it should be https://playerservices.streamtheworld.c ... PCC_FM.pls by the way but like I say it's not working because it links to https feeds.

Re: Trouble streaming a PLS file that works in a browser

Posted: Tue Mar 31, 2020 12:49 pm
by pvr4me
@paulh Thanks for the link!

It has been so long since I've added new stations, I'd forgotten that quite a few were not playable. I thought it might be an OS X limitation so I never mentioned it. Are you going to open a bug to track the problem?

Craig

Re: Trouble streaming a PLS file that works in a browser

Posted: Tue Mar 31, 2020 11:55 pm
by paulh
I haven't bothered creating a ticket in trac.

I've already committed the fix in master and will let it stew for a week or so and will then cherry-pick it to fixes/31 if no problems are reported.

Re: Trouble streaming a PLS file that works in a browser

Posted: Wed Apr 01, 2020 1:42 am
by jlatz
I thought it might have something to do with https...

I've been using the http://live.scpr.org/kpcclive in the feeds link you point to - what prompted my question was (as you mention) the threat that this stream will disappear basically anytime now.

Thanks for looking into the issue, and I can appreciate that a robust fix is going to take a little time. I'll hang off the old link until then.

Thanks to you and the whole team,
jlatz