Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#70754 - 13/02/2002 07:54 VBR times
gryning
new poster

Registered: 31/12/2001
Posts: 6
VBR files ripped with musicamatch jukebox and fraunhofer codec when played back show incorrect track length...
c^

Top
#70755 - 13/02/2002 08:21 Re: VBR times [Re: gryning]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Yep. We know. There's nothing we can do about it unless FhG release documentation for their VBRI header format.

In the meantime, use something like MP3 Tag Studio to generate Xing VBR headers, which we can read.
_________________________
-- roger

Top
#70756 - 13/02/2002 08:46 Re: VBR times [Re: Roger]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
I just typed "VBRI header format" into Google, and found this (below).

It certainly is not "the official word", but it looks like more than enough to go forward with in the interim.

-ml



[MP3 ENCODER] FhG VBR header

Mathew Hendry [email protected]
Mon, 22 Jan 2001 13:01:13 -0000

> From: "Mathew Hendry" <[email protected]>
> Sent: Friday, January 19, 2001 11:20 AM
>
> Anyone know the format of the VBR header added by FhG coders? It isn't the
> same as the Xing tag - the only player/decoder I have that recognises it
is
> MusicMatch Jukebox.
>
> It's marked as a 160kbit/s stereo frame, and contains the string "VBRI" at
> offset 0x24.

I had a closer look at these tags over the weekend.

On all the files I looked at (30 or so) the header is set as 160kbit/s, stereo, even if the rest of the MP3 is joint stereo or other. I think that makes FhG's VBR encoder non-compliant.

Here's a breakdown of the frame structure - some stuff (marked ?) I'm not sure about.

0x0000 \
0x0001 |_______ MPEG header (160kbit/s, stereo)
0x0002 |
0x0003 /
0x0004 0x00 empty

...... .... ... .....

0x0023 0x00 empty
0x0024 0x56 'V'
0x0025 0x42 'B'
0x0026 0x52 'R'
0x0027 0x49 'I'
0x0028 0x00 ? version
0x0029 0x01 ? version
0x002a 0x09 ? version
0x002b 0x31 ? version
0x002c 0x00 ? quality (high byte)
0x002d quality (1-100)
0x002e \
0x002f |_______ file length in bytes
0x0030 |
0x0031 /
0x0032 \
0x0033 |_______ file length in frames
0x0034 |
0x0035 /
0x0036 \_______ number of seek offsets
0x0037 /
0x0038 0x00 ?
0x0039 0x01 ?
0x003a 0x00 ?
0x003b 0x02 ?
0x003c \_______ offset "stride" (number of frames between offsets)
0x003d /
0x003e \_______ seek offset 0 (from beginning of file)
0x003f /
0x0040 \_______ seek offset 1 (from previous offset)
0x0041 /

...... .... ... .....

0x0208 \_______ seek offset n (from previous offset)
0x0209 /


For smallish files, the seek offsets seem to be straightforward byte
offsets. For larger files it's using something different - not sure what yet.

Top
#70757 - 13/02/2002 09:42 Re: VBR times [Re: mlord]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
I found that page about 2 months ago. However, see the caveat at the bottom:

For larger files it's using something different - not sure what yet.

This is what's causing us the difficulty. I've got a program that works out where the frame headers are and then correlates them to those stored in the header. The error numbers are suspiciously round, but the deltas involved are by no means regular.

We're hoping that someone will just hand us the spec (even under NDA would be fine), and then we can deal with this properly.

_________________________
-- roger

Top
#70758 - 13/02/2002 09:49 Re: VBR times [Re: Roger]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Well, I guess if they were clever it would be a frame count, or something based on the "stride" field above..

Sounds easy enough to figure out with some "lab work".

Cheers

Top
#70759 - 13/02/2002 09:57 Re: VBR times [Re: mlord]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
Yeah, that's what I thought too. The numbers don't add up, though.
_________________________
-- roger

Top
#70760 - 13/02/2002 10:14 Re: VBR times [Re: Roger]
SE_Sport_Driver
carpal tunnel

Registered: 05/01/2001
Posts: 4903
Loc: Detroit, MI USA
There are some MusicMatch employees on this board... maybe, if not under their own NDA, they could privately share some information.
_________________________
Brad B.

Top
#70761 - 13/02/2002 10:16 Re: VBR times [Re: SE_Sport_Driver]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
I know. One of them (svferris?) offered to try to get hold of someone else in MusicMatch/FhG who could help us with this. Nothing so far, though.
_________________________
-- roger

Top
#70762 - 13/02/2002 11:36 Re: VBR times [Re: Roger]
svferris
addict

Registered: 06/11/2001
Posts: 700
Loc: San Diego, CA, USA
I never heard back from you on whether you wanted contact info.

The issue was with the VBRI header, as you stated. I talked to one of the developers here and he said that we don't do anything with the VBRI stuff ourselves. The Fraunhofer encoder does it all itself. So, you'd be best contacting Fraunhofer regarding the VBRI specs. If you want, I can get you some contact info for somebody over there that should be able to help.
_________________________
__________________ Scott MKIIa 10GB - 2.0b11 w/Hijack MKIIa 60GB - 2.0 final w/Hijack

Top
#70763 - 16/04/2002 05:33 Re: VBR times [Re: Roger]
mschrag
pooh-bah

Registered: 09/09/2000
Posts: 2303
Loc: Richmond, VA
Speak of the devil. I wrote to Thomson Multimedia, and the mp3 support guy sent me these documents with permission to share them with people.

Hopefully this will clear up some issues.

Mike


Attachments
86253-vbrHeaderV10.zip (72 downloads)


Top
#70764 - 16/04/2002 08:19 Re: VBR times [Re: mschrag]
rob
carpal tunnel

Registered: 21/05/1999
Posts: 5335
Loc: Cambridge UK
Thanks, we received that same file today.

Rob

Top
#70765 - 16/04/2002 08:24 Re: VBR times [Re: mschrag]
rob
carpal tunnel

Registered: 21/05/1999
Posts: 5335
Loc: Cambridge UK
*doh* Turns out we already knew all of that information. Either MusicMatch or the FhG encoder has a bug and is writing invalid headers.

Rob

Top
#70766 - 16/04/2002 08:25 Re: VBR times [Re: rob]
mschrag
pooh-bah

Registered: 09/09/2000
Posts: 2303
Loc: Richmond, VA
That sucks ...

Top
#70767 - 16/04/2002 08:43 Re: VBR times [Re: mschrag]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5683
Loc: London, UK
It's fine for small files. Large files (i.e. of the order of half a CD) exhibit a problem with an invalid VBRI header. I've emailed svferris directly with the problem. Hopefully, he can forward the bug to the relevant people within MM or FhG.


_________________________
-- roger

Top