Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Questions about metadata

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
dezerver



Joined: 28 Jul 2008
Posts: 9

PostPosted: Wed Jan 13, 2010 12:32 pm    Post subject: Questions about metadata Reply with quote

Hello there.

Im a german student and about to write my diploma thesis about audio and video streaming. I have a question about the transfer of the metadata in an mp3 or ogg streams with the icecast server to the clients. How does it work?

I could not find anything about this subject in the internet. I could suggest that there ist an Field responsible in the streamingprotokolls like RTSP/RTMP, but im not sure! I know there ist no ID3 Tag inside...

Please help me.

deZerver
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Jan 13, 2010 6:02 pm    Post subject: Reply with quote

For ogg, comments are maintained in a comment packet within in the stream, for vorbis, it's in the 2 packet of a logical stream. MP3 has no comment block but players can request metadata to be inserted on a regular basis which breaks the codec format so the player has to filter it out before decoding. search for shoutcast metadata, it's not hard to understand how it works

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dezerver



Joined: 28 Jul 2008
Posts: 9

PostPosted: Thu Jan 14, 2010 3:46 pm    Post subject: Reply with quote

Thanks for your answer.

Ok, i found a pretty nice example for Shoutcast Metadata.

http://www.smackfu.com/stuff/programming/shoutcast.html

The include of metadata differs from the kind of streaming format and the streaming server, it is rigth? I thougth there is an uniform mechanism with the protocols like rtmp or rtsp.

It is terrifying that there is no documentation about metadata in streams... Especially ther is no docu in german! -.-

deZerver
Back to top
View user's profile Send private message
jaddle



Joined: 14 Jan 2010
Posts: 5

PostPosted: Thu Jan 14, 2010 4:08 pm    Post subject: Reply with quote

I've been wrestling with this topic lately too - it's confusing, because mp3 streams have nothing to do with the usual id3 tags.

What happens is that when the client connects to the server, it can *optionally* request the metadata, which then gets embedded into the stream at regular intervals.

The client has to request the metadata specifically when it connects, because, unlike an id3 tag, the metadata is right in the middle of the audio data, so if the player doesn't understand it, you'll get audio glitches.

I've been trying to get at the metadata through flash players in web pages, and have been running into trouble because flash just doesn't request the metadata! Apparently there are ways to do it, but you basically have to go around the built-in mp3 streaming in flash. I'll write another post about this though, since it's not really related to this.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber