How to achieve mp3 streaming using MAD?

View: New views
2 Messages — Rating Filter:   Alert me  

How to achieve mp3 streaming using MAD?

by leon deng :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,all
I want to find some mp3  headers, such as XING header,which can provide the duration information(total play time). I want to make use of it to achieve mp3 streaming support in libmad.
So there are two questions.
1.I wrote a mp3 header reader, and it reads  headers in the first 10 frames. I only read first 4 bytes for each frame. where is XING duration field located, or could you provide some header documentation for XING header to me?
2. Could you please tell me some other headers which can provide duration information in it?


Best,
Leon


Re: How to achieve mp3 streaming using MAD?

by Robert Hegemann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Leon!

Am 13.01.2009, 20:18 Uhr, schrieb leon deng <pluginstarter@...>:

> Hi,all
> I want to find some mp3  headers, such as XING header,which can provide  
> the
> duration information(total play time). I want to make use of it to  
> achieve
> mp3 streaming support in libmad.
> So there are two questions.
> 1.I wrote a mp3 header reader, and it reads  headers in the first 10  
> frames.
> I only read first 4 bytes for each frame. where is XING duration field
> located, or could you provide some header documentation for XING header  
> to
> me?
> 2. Could you please tell me some other headers which can provide duration
> information in it?

Follow this link:
http://www.hydrogenaudio.org/forums/lofiversion/index.php/t31277.html


> Best,
> Leon




Ciao Robert