View previous topic :: View next topic |
Author |
Message |
dl
Joined: 28 May 2009 Posts: 7
|
Posted: Tue Nov 02, 2010 9:25 pm Post subject: extracting metadata out of a icecast stream with as3 |
|
|
Hi,
is it meanwhile possible to extract song metadata
out of a icecast steam with actionscript ?
Until now I poll a server side script to return the data but that is quiet odd, since each listener is polling my server in a predefined intervall. |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Nov 02, 2010 9:45 pm Post subject: |
|
|
Yes, the polling approach is a really bad idea. The problem here is that you are asking the wrong people about this, you may find someone here who knows about actionscript specifics but it unlikely.
A quick search on google shows
http://www.adobe.com/devnet/flash/quickstart/metadata_cue_points.html
karl. |
|
Back to top |
|
|
dl
Joined: 28 May 2009 Posts: 7
|
Posted: Tue Nov 02, 2010 10:23 pm Post subject: |
|
|
So u suggest streaming a flv (aac) with icecast and read its metadata ?
Will they be sent with icecast (in contrast to mp3)?
The extraction process in as3 is less hard , even when using mp3, but icecast do not send proper mp3 tags thats why I ask here.
I tried streaming aac with icecast but the quality seems to be less good than mp3. I even played with different quality settings in oddcast. |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Nov 03, 2010 12:36 am Post subject: |
|
|
I'm not indicating one way or another, because I don't have the detailed knowledge to give a proper assessment of actionscript but all the links I've seen with actionscript are related to flash and FLV. With the FLV handling in the kh tree, the title (if available) is always part of the stream, but with normal mp3/aac streams you have to request the metadata inserts because those inserts break the framing specs.
The other language you could look at is haxe, but again I don't have experience of that to know if it will be suitable.
karl. |
|
Back to top |
|
|
dl
Joined: 28 May 2009 Posts: 7
|
Posted: Fri Nov 05, 2010 7:22 am Post subject: |
|
|
karlH wrote: |
but with normal mp3/aac streams you have to request the metadata inserts because those inserts break the framing specs.
|
And with FLV it keeps valid ?
Anyone else who got experience with AS3 can confirm that it is working, please ? |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Nov 05, 2010 2:02 pm Post subject: |
|
|
flv frames can either contain audio data or titles whereas straight mp3 is just audio. It's is just a wrapping around the audio stream, which is why it takes a little bit more bandwidth.
karl. |
|
Back to top |
|
|
bowljoman
Joined: 06 Jan 2011 Posts: 7
|
|
Back to top |
|
|
|