- Scan every frame header of the file.... This does not require a
full
decode of each frame, so it can be done relatively quickly.
Do you have any sample code to do this? I need to do it for a completely different reason (multiplexing Layer II data into a MPEG-2 transport stream)
The contents of this email and any attachments are sent for the personal attention of the addressee(s) only and may be confidential. If you are not the intended addressee, any use, disclosure or copying of this email and any attachments is unauthorised - please notify the sender by return and delete the message. Any representations or commitments expressed in this email are subject to contract.
ntl Group Limited
On Jul 30, 2005, at 5:37 AM, Nigel Sinfield wrote:
- Scan every frame header of the file.... This does not require a
full
decode of each frame, so it can be done relatively quickly.
Do you have any sample code to do this?
http://mpg321.depooter.org/project/file/mpg321/mad.c
Look at scan() (and calc_length()) in this file. It tries to calculate the length of an mp3 regardless of whether it's VBR or not, and whether it has XING tags or not.