[mythtv-users] Streaming internet radio
Nick Rout
nick.rout at gmail.com
Sat Jan 16 00:25:47 UTC 2010
On Sat, Jan 16, 2010 at 9:33 AM, Brent Bolin <brent.bolin at gmail.com> wrote:
> I would like to stream somethings like this -
>
> mplayer -ao alsa:device=spdif -quiet http://radio.hbr1.com:19800/trance.ogg
> mplayer -ao alsa:device=spdif -quiet http://radio.hbr1.com:19800/tronic.ogg
> mplayer -ao alsa:device=spdif -quiet http://radio.hbr1.com:19800/ambient.ogg
>
> I found this link to make some Mythtv menu edits -
>
> http://www.mythtvtalk.com/forum/general/2817-webradio-webtv.html
>
>
>
> Would this be the best option? Or are there other areas in Myth .22
> that can be tweaked for this. Or old plugins(mythfm) to accomplish
> this?
>
kind of counter intuitive to use mythvideo for this, but you could set
up a custom filetype in mythvideo, with a custom playback program. So
in more detail:
1. make a directory in your videos directory to keep it all in the same place.
2. populate the directory with a number of text files called, eg,
ambient.webradio, trance.webradio. Each file contains one line, the
url of the web radio station.
3. set .webradio as a filetype in mythvideo settings and set the
custom player to something like mplayer (your options) $(%s)
Also you can put your commonly used mplayer options in
~/.mplayer/config. Yours would contain:
ao=alsa:device=spdif
quiet
as I say, counterintuiitive to go into mythvideo to play audio, but
the power of custom filetypes in mythvideo is quite useful at times.
More information about the mythtv-users
mailing list