Trouble streaming a PLS file that works in a browser

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
jlatz
Newcomer
Posts: 8
Joined: Thu Aug 09, 2018 4:48 am
United States of America

Trouble streaming a PLS file that works in a browser

Post 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...
User avatar
paulh
Developer
Posts: 909
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

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

Post 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
User avatar
pvr4me
Senior
Posts: 763
Joined: Fri Feb 07, 2014 7:25 pm
Location: near Toronto, Canada
Contact:
Canada

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

Post by pvr4me »

Hi Paul:

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

Thanks,

Craig
Formerly the MacPorts guy.
User avatar
paulh
Developer
Posts: 909
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

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

Post 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.
User avatar
paulh
Developer
Posts: 909
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

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

Post 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.
User avatar
pvr4me
Senior
Posts: 763
Joined: Fri Feb 07, 2014 7:25 pm
Location: near Toronto, Canada
Contact:
Canada

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

Post 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
Formerly the MacPorts guy.
User avatar
paulh
Developer
Posts: 909
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

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

Post 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.
jlatz
Newcomer
Posts: 8
Joined: Thu Aug 09, 2018 4:48 am
United States of America

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

Post 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
Post Reply