Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev

Streaming Audio In MythMusic

 

 

MythTV dev RSS feed   Index | Next | Previous | View Threaded


micahgalizia at gmail

Dec 10, 2009, 6:13 PM

Post #1 of 18 (4180 views)
Permalink
Streaming Audio In MythMusic

Greetings,

I've created a patch to add a UI for streaming audio in MythMusic. Its
not ready for production, but it does work so I was hoping to get some
feedback.

Audio streams can be added from Utilities/Setup->Music Tools->Manage
Online Streams. This screen is very plain, but contains the basic UI for
managing streams. There is a button to add streams with and a list of
streams that can be modified by clicking on them.

The database box has been updated to add a node for online streams,
which are played in the music player.

For some example streams you can use
http://vorbis.nm.cbc.ca:80/cbcr1-toronto.ogg or
http://vorbis.nm.cbc.ca:80/cbcr2-toronto.ogg

A few other things to note are:

- This patch will update the music DB version from 1017 to 1018, so
backup if you care (it can be reverted in mysql with `update settings
set data="1017" where value="MusicDBSchemaVer";`).

- The max length of a stream URI is 512 characters. Just an arbitrary
number.

- Playlist based streams (m3u/asx) do not work yet. Primarily that is my
fault due to how streams are verified when they are added. I'll be
fixing this if there is any interest in adding this feature.

- When I updated my mythplugins, a few files wouldn't compile due to
QMutexLocker problems. This patch has the fix, but it has nothing to do
with the feature itself.

So, thanks for having a look! I'll be watching my email and will try to
appear on IRC in the near future (mfg2).

Cheers!
--
Micah F. Galizia
micahgalizia [at] gmail

"The mark of an immature man is that he wants to die nobly for a cause,
while the mark of the mature man is that he wants to live humbly for
one." --W. Stekel
Attachments: radio.patch (23.6 KB)


warpme at o2

Dec 11, 2009, 9:53 AM

Post #2 of 18 (4073 views)
Permalink
Re: Streaming Audio In MythMusic [In reply to]

Micah,

Really nice idea and job.

I patched my 0.22-fixes 22957, compiled.
So far:

-compiles OK
-I'm able to add streams (but only those having file-like end of URL. If
stream is http://<IP>:<port> - after pressing OK in add dialog, stream
not appears in list)
-Added stream can be edited
-Launching mythmusic shows "All My Music", "All My Playlists" but no
"All My Streams". (maybe I'm misusing mythmusic streams extension (?) or
it is issue of theme - I'm using blue-abstract-wide. Your hint is needed
here)
-Going into playlists edit shows "All Internet Streams" list entry.
Choosing it unfortunately causes segfault.
Log shows following:

2009-12-11 18:39:13.990 XMLParse: LoadTheme using
'/usr/share/mythtv/themes/blue-graphite/music-ui.xml'
2009-12-11 18:39:14.223 MSqlQuery::exec() "SELECT data FROM settings
WHERE value = 'AutoLookupCD' AND hostname = 'FE-Test' ;"
terminate called after throwing an instance of 'std::out_of_range'
what(): vector::_M_range_check

Thx for Your effort extending mythmusic.
I'm ready to test improved patch.
Attachments: warpme.vcf (83 B)


micahgalizia at gmail

Dec 12, 2009, 12:07 PM

Post #3 of 18 (4049 views)
Permalink
Re: Streaming Audio In MythMusic [In reply to]

On 09-12-11 12:53 PM, Warpme wrote:
> Micah,
>
> Really nice idea and job.
>
> I patched my 0.22-fixes 22957, compiled.
> So far:
>
> -compiles OK
> -I'm able to add streams (but only those having file-like end of URL. If
> stream is http://<IP>:<port> - after pressing OK in add dialog, stream
> not appears in list)

Yes. I need to add a popup when adding the stream fails because the
decoder cannot open it. However, the way I currently test streams with a
decoder is wrong, so this will change in a future patch.

> -Added stream can be edited
> -Launching mythmusic shows "All My Music", "All My Playlists" but no
> "All My Streams". (maybe I'm misusing mythmusic streams extension (?) or
> it is issue of theme - I'm using blue-abstract-wide. Your hint is needed
> here)
> -Going into playlists edit shows "All Internet Streams" list entry.
> Choosing it unfortunately causes segfault.
> Log shows following:
>
> 2009-12-11 18:39:13.990 XMLParse: LoadTheme using
> '/usr/share/mythtv/themes/blue-graphite/music-ui.xml'
> 2009-12-11 18:39:14.223 MSqlQuery::exec() "SELECT data FROM settings
> WHERE value = 'AutoLookupCD' AND hostname = 'FE-Test' ;"
> terminate called after throwing an instance of 'std::out_of_range'
> what(): vector::_M_range_check

When I use that theme I get the same problem, but not just with stream
selection. Even with normal music a crash occurs when you try to view
the leaf nodes -- in the case of "All My Music", this would be the song
titles. I have no idea why this is happening, but even without my
change applied this crash occurs. You or I should probably file a bug
with this issue.

If you want to hear the radio stream with the blue-abstract-wide theme,
you can just check the "All Internet Streams" item, which will add the
streams to your active playlist so you can play them.
--
Micah F. Galizia
micahgalizia [at] gmail

"The mark of an immature man is that he wants to die nobly for a cause,
while the mark of the mature man is that he wants to live humbly for
one." --W. Stekel
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


micahgalizia at gmail

Dec 12, 2009, 1:14 PM

Post #4 of 18 (4048 views)
Permalink
Re: Streaming Audio In MythMusic [In reply to]

On 09-12-11 12:53 PM, Warpme wrote:
> Micah,
>
> Really nice idea and job.
>
> I patched my 0.22-fixes 22957, compiled.
> So far:
>
> -compiles OK
> -I'm able to add streams (but only those having file-like end of URL. If
> stream is http://<IP>:<port> - after pressing OK in add dialog, stream
> not appears in list)
> -Added stream can be edited
> -Launching mythmusic shows "All My Music", "All My Playlists" but no
> "All My Streams". (maybe I'm misusing mythmusic streams extension (?) or
> it is issue of theme - I'm using blue-abstract-wide. Your hint is needed
> here)
> -Going into playlists edit shows "All Internet Streams" list entry.
> Choosing it unfortunately causes segfault.
> Log shows following:
>
> 2009-12-11 18:39:13.990 XMLParse: LoadTheme using
> '/usr/share/mythtv/themes/blue-graphite/music-ui.xml'
> 2009-12-11 18:39:14.223 MSqlQuery::exec() "SELECT data FROM settings
> WHERE value = 'AutoLookupCD' AND hostname = 'FE-Test' ;"
> terminate called after throwing an instance of 'std::out_of_range'
> what(): vector::_M_range_check

OK, the problem here is that the theme doesn't define all of the text
areas that myth music is expecting. If you want to fix the theme, open
up music-ui.xml for blue-abstract-wide, and locate the info container in
the music_select window. Add the following to the container:

<textarea name="line4" draworder="1">
<font>text</font>
<area>45,149,1190,40</area>
<cutdown>yes</cutdown>
</textarea>
<textarea name="line5" draworder="1">
<font>text</font>
<area>45,192,1190,40</area>
<cutdown>yes</cutdown>
</textarea>
<textarea name="line6" draworder="1">
<font>text</font>
<area>45,235,1190,40</area>
<cutdown>yes</cutdown>
</textarea>

The text will not be displayed, but the crash goes away.

--
Micah F. Galizia
micahgalizia [at] gmail

"The mark of an immature man is that he wants to die nobly for a cause,
while the mark of the mature man is that he wants to live humbly for
one." --W. Stekel
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


warpme at o2

Dec 13, 2009, 12:54 PM

Post #5 of 18 (4010 views)
Permalink
Re: Streaming Audio In MythMusic [In reply to]

Micah,

Indeed theme mod resolve issue with crash.
Now I'm able to play streams.
All this looks very promising.
According to Your dev plans - is it possible to add artist/song info
during play.
I frequently listen Chronix Metal radio (http://205.188.215.225:8010) in
MythStream.
Launching it in mythmusic gives:

2009-12-13 21:51:08.308 MusicPlayer: Failed to create decoder for playback

br
Attachments: warpme.vcf (83 B)


micahgalizia at gmail

Dec 14, 2009, 5:29 PM

Post #6 of 18 (3957 views)
Permalink
Re: Streaming Audio In MythMusic [In reply to]

On 09-12-13 03:54 PM, Warpme wrote:
> Micah,
>
> Indeed theme mod resolve issue with crash.
> Now I'm able to play streams.
> All this looks very promising.
> According to Your dev plans - is it possible to add artist/song info
> during play.
> I frequently listen Chronix Metal radio (http://205.188.215.225:8010) in
> MythStream.
> Launching it in mythmusic gives:

Greetings,

This version plays streams that do not have a file extension. I had to
update the avfdecoder so that it actually tries to initialize the stream
instead of just checking the the file extension to determine if the
stream is supported. This doesn't seem to affect playback performance on
local files.

Features still outstanding:
- M3U/ASF playlist support
- Getting metadata from the stream (where streams support it). The
stream mentioned above played with mplayer has station and song information.

Cheers!

PS: if anyone has any suggestions or comments, I'd love to hear back!
--
Micah F. Galizia
micahgalizia [at] gmail

"The mark of an immature man is that he wants to die nobly for a cause,
while the mark of the mature man is that he wants to live humbly for
one." --W. Stekel
Attachments: radio.patch (25.6 KB)


adeffs.mythtv at gmail

Dec 14, 2009, 9:07 PM

Post #7 of 18 (3947 views)
Permalink
Re: Streaming Audio In MythMusic [In reply to]

2009/12/14 Micah F. Galizia <micahgalizia [at] gmail>:
> On 09-12-13 03:54 PM, Warpme wrote:
>>
>> Micah,
>>
>> Indeed theme mod resolve issue with crash.
>> Now I'm able to play streams.
>> All this looks very promising.
>> According to Your dev plans - is it possible to add artist/song info
>> during play.
>> I frequently listen Chronix Metal radio (http://205.188.215.225:8010) in
>> MythStream.
>> Launching it in mythmusic gives:
>
> Greetings,
>
> This version plays streams that do not have a file extension.  I had to
> update the avfdecoder so that it actually tries to initialize the stream
> instead of just checking the the file extension to determine if the stream
> is supported. This doesn't seem to affect playback performance on local
> files.
>
> Features still outstanding:
> - M3U/ASF playlist support
> - Getting metadata from the stream (where streams support it).  The stream
> mentioned above played with mplayer has station and song information.
>
> Cheers!
>
> PS: if anyone has any suggestions or comments, I'd love to hear back!

hrmm, now I have to figure out how to roll this into a custom build of
JYA's mythmusic package...


--
Steve
http://www.mythtv.org/wiki/User:Steveadeff
Before you ask, read the FAQ!
http://www.mythtv.org/wiki/index.php/Frequently_Asked_Questions
then search the Wiki, and this list,
http://www.gossamer-threads.com/lists/mythtv/
Mailinglist etiquette -
http://www.mythtv.org/wiki/index.php/Mailing_List_etiquette
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


beebof at gmx

Dec 20, 2009, 5:15 AM

Post #8 of 18 (3732 views)
Permalink
Re: Streaming Audio In MythMusic [In reply to]

Micah F. Galizia schrieb:
> This version plays streams that do not have a file extension. I had to
> update the avfdecoder so that it actually tries to initialize the stream
> instead of just checking the the file extension to determine if the
> stream is supported. This doesn't seem to affect playback performance on
> local files.
>
> Features still outstanding:
> - M3U/ASF playlist support
> - Getting metadata from the stream (where streams support it). The
> stream mentioned above played with mplayer has station and song
> information.
>
> Cheers!
>
> PS: if anyone has any suggestions or comments, I'd love to hear back!

Hi,

I just tried your patch and it compiles fine.
But I'm not able to play my Internet stream, tested with:
http://gffstream.ic.llnwd.net/stream/gffstream_stream_wdr_einslive_a

When I try to add it to my playlist, it will add one mp3 song of my
music which has actually the same song_id than my stream. Maybe the
tables got mixed up?

Cheers,
Frank
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


micahgalizia at gmail

Dec 23, 2009, 11:30 AM

Post #9 of 18 (3606 views)
Permalink
Re: Streaming Audio In MythMusic [In reply to]

On 09-12-20 08:15 AM, Frank Muenchow wrote:
> Micah F. Galizia schrieb:
>> This version plays streams that do not have a file extension. I had to
>> update the avfdecoder so that it actually tries to initialize the
>> stream instead of just checking the the file extension to determine if
>> the stream is supported. This doesn't seem to affect playback
>> performance on local files.
>>
>> Features still outstanding:
>> - M3U/ASF playlist support
>> - Getting metadata from the stream (where streams support it). The
>> stream mentioned above played with mplayer has station and song
>> information.
>>
>> Cheers!
>>
>> PS: if anyone has any suggestions or comments, I'd love to hear back!
>
> Hi,
>
> I just tried your patch and it compiles fine.
> But I'm not able to play my Internet stream, tested with:
> http://gffstream.ic.llnwd.net/stream/gffstream_stream_wdr_einslive_a
>
> When I try to add it to my playlist, it will add one mp3 song of my
> music which has actually the same song_id than my stream. Maybe the
> tables got mixed up?

Attached is an updated version of the previous patch that prevents song
IDs from overlapping with stream IDs. A special thanks to Frank
Muenchow, who was able to test and verify the fix on his end!

I am working on playlist (m3u/asx/pls) support right now, but to help
with testing, if anyone knows any multi-stream lists that start with a
brief advertisement (or that sort of thing) and then move onto the main
stream, please send me an email off the list with the link.

TIA!
--
Micah F. Galizia
micahgalizia [at] gmail

"The mark of an immature man is that he wants to die nobly for a cause,
while the mark of the mature man is that he wants to live humbly for
one." --W. Stekel
Attachments: radio3.patch (25.6 KB)


micahgalizia at gmail

Dec 28, 2009, 10:50 AM

Post #10 of 18 (3448 views)
Permalink
Re: Streaming Audio In MythMusic [In reply to]

On 09-12-14 08:29 PM, Micah F. Galizia wrote:
> On 09-12-13 03:54 PM, Warpme wrote:
>> Micah,
>>
>> Indeed theme mod resolve issue with crash.
>> Now I'm able to play streams.
>> All this looks very promising.
>> According to Your dev plans - is it possible to add artist/song info
>> during play.
>> I frequently listen Chronix Metal radio (http://205.188.215.225:8010) in
>> MythStream.
>> Launching it in mythmusic gives:
>
> Greetings,
>
> This version plays streams that do not have a file extension. I had to
> update the avfdecoder so that it actually tries to initialize the stream
> instead of just checking the the file extension to determine if the
> stream is supported. This doesn't seem to affect playback performance on
> local files.
>
> Features still outstanding:
> - M3U/ASF playlist support
> - Getting metadata from the stream (where streams support it). The
> stream mentioned above played with mplayer has station and song
> information.

This version has very simple support for PLS, ASX and M3U playlists. I
still haven't been able to find any playlist style streams that start
with an advertisement, so to keep things simple, I have made the
assumption that the first stream we connect to in the playlist is going
to be the radio stream, and all of the other entries are no longer
needed. If anyone can produce a counter-example, I'd be glad to change
this assumption.

Here are some decent streams to test with:

- http://asx.abacast.com/cbc-r1toronto-96.pls
- http://radio3.cbc.ca/nmcradio/webradio.m3u
- http://top100station.de/switch/r3472.asx

Just a heads up that Chronix radio ASX files are not valid XML, so they
wont work. I've already contacted them about it.

Support for stream metadata is my next objective!

Cheers, and TIA. As always, I'm looking for testing or general feedback!
--
Micah F. Galizia
micahgalizia [at] gmail

"The mark of an immature man is that he wants to die nobly for a cause,
while the mark of the mature man is that he wants to live humbly for
one." --W. Stekel
Attachments: radio4.patch (33.9 KB)


danielk at cuymedia

Dec 28, 2009, 11:26 AM

Post #11 of 18 (3461 views)
Permalink
Re: Streaming Audio In MythMusic [In reply to]

On Mon, 2009-12-28 at 13:50 -0500, Micah F. Galizia wrote:
> This version has very simple support for PLS, ASX and M3U playlists. I
> still haven't been able to find any playlist style streams that start
> with an advertisement, so to keep things simple, I have made the
> assumption that the first stream we connect to in the playlist is going
> to be the radio stream, and all of the other entries are no longer
> needed. If anyone can produce a counter-example, I'd be glad to change
> this assumption.

I don't if they use playlists for it, but the NPR channels in NYC
have two or three ads before they the stream starts.
http://www.wnyc.com
It would be unfortunate if MythMusic only played the ads. :)

-- Daniel

_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


micahgalizia at gmail

Dec 28, 2009, 11:36 AM

Post #12 of 18 (3444 views)
Permalink
Re: Streaming Audio In MythMusic [In reply to]

On 09-12-28 02:26 PM, Daniel Kristjansson wrote:
> On Mon, 2009-12-28 at 13:50 -0500, Micah F. Galizia wrote:
>> This version has very simple support for PLS, ASX and M3U playlists. I
>> still haven't been able to find any playlist style streams that start
>> with an advertisement, so to keep things simple, I have made the
>> assumption that the first stream we connect to in the playlist is going
>> to be the radio stream, and all of the other entries are no longer
>> needed. If anyone can produce a counter-example, I'd be glad to change
>> this assumption.
>
> I don't if they use playlists for it, but the NPR channels in NYC
> have two or three ads before they the stream starts.
> http://www.wnyc.com
> It would be unfortunate if MythMusic only played the ads. :)

I agree. I was trying to find stations that did this, and FM 93.9's asx
file is exactly what I needed.

TIA
--
Micah F. Galizia
micahgalizia [at] gmail

"The mark of an immature man is that he wants to die nobly for a cause,
while the mark of the mature man is that he wants to live humbly for
one." --W. Stekel
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


micahgalizia at gmail

Dec 28, 2009, 12:17 PM

Post #13 of 18 (3444 views)
Permalink
Re: Streaming Audio In MythMusic [In reply to]

On 09-12-28 02:36 PM, Micah F. Galizia wrote:
> On 09-12-28 02:26 PM, Daniel Kristjansson wrote:
>> On Mon, 2009-12-28 at 13:50 -0500, Micah F. Galizia wrote:
>>> This version has very simple support for PLS, ASX and M3U playlists. I
>>> still haven't been able to find any playlist style streams that start
>>> with an advertisement, so to keep things simple, I have made the
>>> assumption that the first stream we connect to in the playlist is going
>>> to be the radio stream, and all of the other entries are no longer
>>> needed. If anyone can produce a counter-example, I'd be glad to change
>>> this assumption.
>>
>> I don't if they use playlists for it, but the NPR channels in NYC
>> have two or three ads before they the stream starts.
>> http://www.wnyc.com
>> It would be unfortunate if MythMusic only played the ads. :)
>
> I agree. I was trying to find stations that did this, and FM 93.9's asx
> file is exactly what I needed.

On closer inspection, the ASX file does not work. It references an
advertisement at http://wnycwm.streamguys.com/bumpers/bumper.wma. The
problem is that what we get back from bumper.wma (you can see the result
using wget) is a redirection to another URI, which ffmpeg
(av_open_input_file) is unable to handle. However, this did expose a bug
to me, so its still a good test case.

As a side note, your particular public radio station plays just fine
using the PLS/MP3 stream. Regardless, I would still like to see a
workable playlist with advertisements as separate streams if anyone else
knows one (if not, I'm going to move on to metadata support).

TIA
--
Micah F. Galizia
micahgalizia [at] gmail

"The mark of an immature man is that he wants to die nobly for a cause,
while the mark of the mature man is that he wants to live humbly for
one." --W. Stekel
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


adeffs.mythtv at gmail

Dec 28, 2009, 1:47 PM

Post #14 of 18 (3445 views)
Permalink
Re: Streaming Audio In MythMusic [In reply to]

2009/12/28 Micah F. Galizia <micahgalizia [at] gmail>:
> This version has very simple support for PLS, ASX and M3U playlists. I still
> haven't been able to find any playlist style streams that start with an
> advertisement, so to keep things simple, I have made the assumption that the
> first stream we connect to in the playlist is going to be the radio stream,
> and all of the other entries are no longer needed. If anyone can produce a
> counter-example, I'd be glad to change this assumption.
>
> Here are some decent streams to test with:
>
> - http://asx.abacast.com/cbc-r1toronto-96.pls
> - http://radio3.cbc.ca/nmcradio/webradio.m3u
> - http://top100station.de/switch/r3472.asx
>
> Just a heads up that Chronix radio ASX files are not valid XML, so they wont
> work.  I've already contacted them about it.
>
> Support for stream metadata is my next objective!
>
> Cheers, and TIA. As always, I'm looking for testing or general feedback!


www.kexp.org has an "advertisement" at the beginning of their stream,
at least for the mp3 one, not sure about their other stream formats.

thanks for all the work your putting in to this!
--
Steve
http://www.mythtv.org/wiki/User:Steveadeff
Before you ask, read the FAQ!
http://www.mythtv.org/wiki/index.php/Frequently_Asked_Questions
then search the Wiki, and this list,
http://www.gossamer-threads.com/lists/mythtv/
Mailinglist etiquette -
http://www.mythtv.org/wiki/index.php/Mailing_List_etiquette
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


b.taber at comcast

Dec 29, 2009, 7:44 AM

Post #15 of 18 (3399 views)
Permalink
Re: Streaming Audio In MythMusic [In reply to]

On 12/28/2009 01:50 PM, Micah F. Galizia wrote:
>
> Support for stream metadata is my next objective!
>
> Cheers, and TIA. As always, I'm looking for testing or general feedback!
>
>
>
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev [at] mythtv
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
Hi Micah,

Here is some more feedback:

I like the way it is more tightly integrated than having a separate
stream plugin.

It went right in aside from me having to figure out which xml files to
modify. I think that was actually mentioned in some form in a previous
message. The system is running:

Please include all output in bug reports.
MythTV Version : 23016
MythTV Branch : trunk
Network Protocol : 55
Library API : 0.23.20091228-1
QT Version : 4.5.3
Options compiled in:
linux release using_oss using_alsa using_pulse using_pulseoutput
using_backend using_dvb using_frontend using_hdhomerun using_hdpvr
using_iptv using_ivtv using_libfftw3 using_lirc using_mheg
using_opengl_video using_opengl_vsync using_qtwebkit using_v4l using_x11
using_xrandr using_xv using_xvmc using_xvmc_vld using_xvmcw
using_bindings_perl using_bindings_python using_opengl using_vdpau
using_ffmpeg_threads using_live using_mheg

Keep up the great work and thanks for putting the time into it. My main
stream is coming from a local slave icecast server relaying various
streams. That was setup to save on Internet connection bandwidth with
multiple local systems connecting to the slave server. I'll try and do
some testing on various streams.

Regards,

Bruce
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


micahgalizia at gmail

Dec 30, 2009, 11:19 AM

Post #16 of 18 (3340 views)
Permalink
Re: Streaming Audio In MythMusic [In reply to]

On 09-12-28 02:26 PM, Daniel Kristjansson wrote:
> On Mon, 2009-12-28 at 13:50 -0500, Micah F. Galizia wrote:
>> This version has very simple support for PLS, ASX and M3U playlists. I
>> still haven't been able to find any playlist style streams that start
>> with an advertisement, so to keep things simple, I have made the
>> assumption that the first stream we connect to in the playlist is going
>> to be the radio stream, and all of the other entries are no longer
>> needed. If anyone can produce a counter-example, I'd be glad to change
>> this assumption.
>
> I don't if they use playlists for it, but the NPR channels in NYC
> have two or three ads before they the stream starts.
> http://www.wnyc.com
> It would be unfortunate if MythMusic only played the ads. :)

Greetings,

I was never actually able to find an online stream that doesn't have wma
files redirecting or used a supported stream format, so I created one I
could test with locally (attached). Its plays the KEXP addvertisment
and then plays a Chronix radio stream. I added
file:///home/you/test.asx support for adding streams.

I had to do some monkeying around with the avfdecoder to get it to
switch between streams, so I'd love some feedback on that, but as
always, general testing or other feedback is always welcome.

Stream metadata is my next task :)

TIA
--
Micah F. Galizia
micahgalizia [at] gmail

"The mark of an immature man is that he wants to die nobly for a cause,
while the mark of the mature man is that he wants to live humbly for
one." --W. Stekel
Attachments: test.asx (0.60 KB)
  radio5.patch (36.5 KB)


micahgalizia at gmail

Jan 1, 2010, 12:49 PM

Post #17 of 18 (3236 views)
Permalink
Re: Streaming Audio In MythMusic [In reply to]

On 09-12-30 02:19 PM, Micah F. Galizia wrote:
> On 09-12-28 02:26 PM, Daniel Kristjansson wrote:
>> On Mon, 2009-12-28 at 13:50 -0500, Micah F. Galizia wrote:
>>> This version has very simple support for PLS, ASX and M3U playlists. I
>>> still haven't been able to find any playlist style streams that start
>>> with an advertisement, so to keep things simple, I have made the
>>> assumption that the first stream we connect to in the playlist is going
>>> to be the radio stream, and all of the other entries are no longer
>>> needed. If anyone can produce a counter-example, I'd be glad to change
>>> this assumption.
>>
>> I don't if they use playlists for it, but the NPR channels in NYC
>> have two or three ads before they the stream starts.
>> http://www.wnyc.com
>> It would be unfortunate if MythMusic only played the ads. :)
>
> Greetings,
>
> I was never actually able to find an online stream that doesn't have wma
> files redirecting or used a supported stream format, so I created one I
> could test with locally (attached). Its plays the KEXP addvertisment and
> then plays a Chronix radio stream. I added file:///home/you/test.asx
> support for adding streams.
>
> I had to do some monkeying around with the avfdecoder to get it to
> switch between streams, so I'd love some feedback on that, but as
> always, general testing or other feedback is always welcome.
>
> Stream metadata is my next task :)

Unfortunately, stream metadata (SHOUTcast Icy-MetaData) will require
fixes in FFMPEG, so version five (radio5.patch) will be the last version
for a while. I would say at this point that it should be reviewed if it
were being considered for inclusion, since the ffmpeg fixes may take a
while. Also, I know mythmusic is getting a rewrite, so I understand if
its put on the back burner.

TIA
--
Micah F. Galizia
micahgalizia [at] gmail

"The mark of an immature man is that he wants to die nobly for a cause,
while the mark of the mature man is that he wants to live humbly for
one." --W. Stekel
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


adeffs.mythtv at gmail

Jan 1, 2010, 1:43 PM

Post #18 of 18 (3246 views)
Permalink
Re: Streaming Audio In MythMusic [In reply to]

On Fri, Jan 1, 2010 at 3:49 PM, Micah F. Galizia <micahgalizia [at] gmail> wrote:
> On 09-12-30 02:19 PM, Micah F. Galizia wrote:
>>
>> On 09-12-28 02:26 PM, Daniel Kristjansson wrote:
>>>
>>> On Mon, 2009-12-28 at 13:50 -0500, Micah F. Galizia wrote:
>>>>
>>>> This version has very simple support for PLS, ASX and M3U playlists. I
>>>> still haven't been able to find any playlist style streams that start
>>>> with an advertisement, so to keep things simple, I have made the
>>>> assumption that the first stream we connect to in the playlist is going
>>>> to be the radio stream, and all of the other entries are no longer
>>>> needed. If anyone can produce a counter-example, I'd be glad to change
>>>> this assumption.
>>>
>>> I don't if they use playlists for it, but the NPR channels in NYC
>>> have two or three ads before they the stream starts.
>>> http://www.wnyc.com
>>> It would be unfortunate if MythMusic only played the ads. :)
>>
>> Greetings,
>>
>> I was never actually able to find an online stream that doesn't have wma
>> files redirecting or used a supported stream format, so I created one I
>> could test with locally (attached). Its plays the KEXP addvertisment and
>> then plays a Chronix radio stream. I added file:///home/you/test.asx
>> support for adding streams.
>>
>> I had to do some monkeying around with the avfdecoder to get it to
>> switch between streams, so I'd love some feedback on that, but as
>> always, general testing or other feedback is always welcome.
>>
>> Stream metadata is my next task :)
>
> Unfortunately, stream metadata (SHOUTcast Icy-MetaData) will require fixes
> in FFMPEG, so version five (radio5.patch) will be the last version for a
> while.  I would say at this point that it should be reviewed if it were
> being considered for inclusion, since the ffmpeg fixes may take a while.
> Also, I know mythmusic is getting a rewrite, so I understand if its put on
> the back burner.
>
> TIA
> --
> Micah F. Galizia

again, Thanks for all this work Micah!

JYA, it would be awesome if you could look into including this in your packages.

--
Steve
http://www.mythtv.org/wiki/User:Steveadeff
Before you ask, read the FAQ!
http://www.mythtv.org/wiki/index.php/Frequently_Asked_Questions
then search the Wiki, and this list,
http://www.gossamer-threads.com/lists/mythtv/
Mailinglist etiquette -
http://www.mythtv.org/wiki/index.php/Mailing_List_etiquette
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.