MP3 VBR and max bitrate |
![]() ![]() |
MP3 VBR and max bitrate |
Mar 13 2002, 19:50
Post
#1
|
|
![]() MPC Developer Group: Developer Posts: 543 Joined: 15-December 01 From: Germany Member No.: 659 |
QUOTE Originally posted by JohnV
Vorbis is totally flexible VBR, you could use full stereo (or lossless channel coupling in Vorbis' case) even with -q 0. All it would do is, that VBR scales the bitrate higher. There's no quality issues with Vorbis why you couldn't use lossless channel coupling even with -q 0. Of course when you use lossless coupling, the bitrate will be higher. MP3 Lame is totally flexible VBR, you could use LR stereo (or MS or IS stereo) even with -V 0. All it would do is, that VBR scales the bitrate higher. There's no quality issues with MP3 why you couldn't use LR stereo even with -V 0. Of course when you use LR stereo, the bitrate will be higher than using MS stereo. I can repeat this with MPC, MP2 and AAC. You mentioned a VBR property, not a Ogg Vorbis property. Note that this posting implies no quality assessment of any codec, only tries to correct your portrayal. -------------------- -- Frank Klemm
|
|
|
|
Mar 13 2002, 20:37
Post
#2
|
|
![]() Group: Developer Posts: 2797 Joined: 22-September 01 Member No.: 6 |
QUOTE Originally posted by Frank Klemm
MP3 Lame is not totally flexible VBR. First you have the bitrate limit of 320kbps, which is quite low for max bitrate, secondly you have fixed frame sizes (...128,160,192,...).
MP3 Lame is totally flexible VBR, you could use LR stereo (or MS or IS stereo) even with -V 0. All it would do is, that VBR scales the bitrate higher. There's no quality issues with MP3 why you couldn't use LR stereo even with -V 0. Of course when you use LR stereo, the bitrate will be higher than using MS stereo. I can repeat this with MPC, MP2 and AAC. You mentioned a VBR property, not a Ogg Vorbis property. Note that this posting implies no quality assessment of any codec, only tries to correct your portrayal. Still of course I didn't mean that flexible VBR is only Vorbis property, of course it's MPC's as well, but the original question was about Vorbis, so I used Vorbis as an example. -------------------- Juha Laaksonheimo
|
|
|
|
Mar 13 2002, 21:52
Post
#3
|
|
![]() MPC Developer Group: Developer Posts: 543 Joined: 15-December 01 From: Germany Member No.: 659 |
QUOTE Originally posted by JohnV
MP3 Lame is not totally flexible VBR. First you have the bitrate limit of 320kbps, which is quite low for max bitrate, secondly you have fixed frame sizes (...128,160,192,...). Still of course I didn't mean that flexible VBR is only Vorbis property, of course it's MPC's as well, but the original question was about Vorbis, so I used Vorbis as an example. 320 kbps limit: That's right, but there are only some tracks where this makes trouble (the most famous not artifical is fatboy). BTW I expect that OoOE of fatboy would be able to allow transparency of fatboy at 320 kbps. MPEG-1 has a bitpool of up to 511 bytes. At 44.1 kHz this can wobble the fixed bitrates by 156.5 kbps. That's even much more than the 64 kbps difference between 256 kbps and 320 kbps. You have only some fixed frame sizes, but audio frame sizes are different from frame sizes. Ogg Vorbis/AAC/MPC are much more flexible, but for most encoded files this is not a limitation. MP3 has problems, but this problem is not in my Top10 MP3 problems. It's on place 11 or 12. -------------------- -- Frank Klemm
|
|
|
|
Mar 13 2002, 22:20
Post
#4
|
|
![]() Group: Developer Posts: 2797 Joined: 22-September 01 Member No.: 6 |
QUOTE Originally posted by Frank Klemm
Well that depends on your quality needs. There are even whole music genres that would need clearly over 320kbps with mp3 to sound even close to transparent even to a non-audiophile. The problem is of course pre-echo. Fatboy is even not so big problem...
320 kbps limit: That's right, but there are only some tracks where this makes trouble (the most famous not artifical is fatboy). BTW I expect that OoOE of fatboy would be able to allow transparency of fatboy at 320 kbps. -------------------- Juha Laaksonheimo
|
|
|
|
Mar 14 2002, 13:35
Post
#5
|
|
![]() MPC Developer Group: Developer Posts: 543 Joined: 15-December 01 From: Germany Member No.: 659 |
QUOTE Originally posted by JohnV
Well that depends on your quality needs. There are even whole music genres that would need clearly over 320kbps with mp3 to sound even close to transparent even to a non-audiophile. The problem is of course pre-echo. Fatboy is even not so big problem... If 320 kbps MPEG-1 Layer 3 is not enough, I would use 256 kbps MPEG-1 Layer 2 or 128 kbps MPEG-4 AAC. Above 256 kbps MPEG-1 Layer 3 makes no sense. If you need such bitrates, the reason for this high bitrate are flaws introduced with Layer 3. Often Layer 2 performs much better than Layer 3 at the same bitrate. And note that Layer 2 also supports 384 kbps. For Fatboys also MPEG-1 Layer 1 performs better than Layer 2 at the same bitrate. For transparent encodings of typical pop music Layer 2 normally outperforms Layer 3. -------------------- -- Frank Klemm
|
|
|
|
Mar 14 2002, 14:16
Post
#6
|
|
![]() ReplayGain developer Group: Developer Posts: 4615 Joined: 5-November 01 From: Yorkshire, UK Member No.: 409 |
OT:
Which layer II implementation are you using Frank? David. |
|
|
|
Mar 14 2002, 15:10
Post
#7
|
|
![]() Group: Developer Posts: 2797 Joined: 22-September 01 Member No.: 6 |
QUOTE Originally posted by Frank Klemm
320kbps mp3 frames make perfect sense. None of the default Lame VBR presets restrict the bitrate to 256kbps frames. Many times MP3 music needs 320kbps frames, many times high quality Lame VBR preset would need to hit even higher than 320kbps but it's impossible. It's absolutely not recommended to restrict the max bitrate of tweaked Lame VBR preset to 256kbps.
Above 256 kbps MPEG-1 Layer 3 makes no sense. If you need such bitrates, the reason for this high bitrate are flaws introduced with Layer 3. It's easy to say that you should use another format then, sure, but many times there are other reasons, like compatibility etc. You ask me to use mpeg1 layer1 or layer2 instead then. Show me one layer1 and/or layer2 codec which has good, well tweaked psychoacoustics. All the codecs I have tested perform even worse than Lame even at much higher bitrate with many difficult test samples, because their psychoacoustics sucks. And even then I should use insanely high CBR bitrate. Does not make sense. Are you also saying that it makes no sense for Vorbis to hit very high bitrates then? Do you think its max bitrate should be forcefully restricted to something like 256k or 320kbps? Does not make sense... -------------------- Juha Laaksonheimo
|
|
|
|
Mar 14 2002, 15:33
Post
#8
|
|
![]() MPC Developer Group: Developer Posts: 543 Joined: 15-December 01 From: Germany Member No.: 659 |
QUOTE Originally posted by 2Bdecided
OT: Which layer II implementation are you using Frank? David. MPC2. Is a modified MPC encoder with two modifications and a MPC->MPEG Layer 2 bitstream transformer. The fixed block sizes of MP2 sucks due to the missing bit pool (which you have at Layer 3). -------------------- -- Frank Klemm
|
|
|
|
Mar 14 2002, 15:42
Post
#9
|
|
![]() MPC Developer Group: Developer Posts: 543 Joined: 15-December 01 From: Germany Member No.: 659 |
QUOTE Originally posted by JohnV
320kbps mp3 frames make perfect sense. None of the default Lame VBR presets restrict the bitrate to 256kbps frames. Many times MP3 music needs 320kbps frames, many times high quality Lame VBR preset would need to hit even higher than 320kbps but it's impossible. It's absolutely not recommended to restrict the max bitrate of tweaked Lame VBR preset to 256kbps. It's easy to say that you should use another format then, sure, but many times there are other reasons, like compatibility etc. You ask me to use mpeg1 layer1 or layer2 instead then. Show me one layer1 and/or layer2 codec which has good, well tweaked psychoacoustics. All the codecs I have tested perform even worse than Lame even at much higher bitrate with many difficult test samples, because their psychoacoustics sucks. And even then I should use insanely high CBR bitrate. Does not make sense. Are you also saying that it makes no sense for Vorbis to hit very high bitrates then? Do you think its max bitrate should be forcefully restricted to something like 256k or 320kbps? Does not make sense... MP3 audio frames which need more than 320 kbps to be transparent have this high bitrate demand due to at least two flaws introduced with the Layer 3 MDCT. If there would be a HQ Layer 2 codec it would make sense to use this HQ Layer 2 codec which outperforms MP3 codecs. The layer 3 of MPEG-1 is IMHO a hack which works good for most classical music and which makes things worser for typical pop music. MP3 was designed for 128 kbps and it outperforms MP2 at data rates at 192 kbps and below. -------------------- -- Frank Klemm
|
|
|
|
Mar 14 2002, 15:47
Post
#10
|
|
![]() Group: Developer Posts: 2797 Joined: 22-September 01 Member No.: 6 |
QUOTE Originally posted by Frank Klemm
Yes, this depends totally on the encoder implementation. It's no use if this is only theoretically true.
If there would be a HQ Layer 2 codec it would make sense to use this HQ Layer 2 codec which outperforms MP3 codecs. MP3 was designed for 128 kbps and it outperforms MP2 at data rates at 192 kbps and below. Are you going to release MPC2? -------------------- Juha Laaksonheimo
|
|
|
|
Mar 14 2002, 19:27
Post
#11
|
|
|
Group: Members Posts: 62 Joined: 10-December 01 Member No.: 621 |
actually the 320 kpbs bitrate limit is not correct. lame can create a free format that can go uptp 600 kpbs, its just that only a few players can play it ie mad
|
|
|
|
Mar 14 2002, 20:42
Post
#12
|
|
|
Founder Group: Admin Posts: 2958 Joined: 26-August 02 From: Nottingham, UK Member No.: 1 |
QUOTE Originally posted by Frank Klemm
MPC2. Is a modified MPC encoder with two modifications and a MPC->MPEG Layer 2 bitstream transformer. Hrmm... this could be very, very interesting. What is the likelyhood of this getting released? I could see many uses for this, since a lot of software/hardware out there is compatible with MP2, and so far there isn't really a "good" MP2 implementation, at least not on the order of what you are speaking of. I, for one, would be very interested in experimenting with this. If you don't plan to release it, is there any reason why not? |
|
|
|
Mar 14 2002, 21:43
Post
#13
|
|
![]() Group: Developer Posts: 2797 Joined: 22-September 01 Member No.: 6 |
QUOTE Originally posted by superorc
Freeformat is not something you can call true mp3. Freeformat is not MPEG1-layer 3 compliant.
actually the 320 kpbs bitrate limit is not correct. lame can create a free format that can go uptp 600 kpbs, its just that only a few players can play it ie mad -------------------- Juha Laaksonheimo
|
|
|
|
Mar 15 2002, 03:58
Post
#14
|
|
|
Group: Members Posts: 18 Joined: 31-October 01 Member No.: 383 |
QUOTE Originally posted by Dibrom
Hrmm... this could be very, very interesting. What is the likelyhood of this getting released? I could see many uses for this, since a lot of software/hardware out there is compatible with MP2, and so far there isn't really a "good" MP2 implementation, at least not on the order of what you are speaking of. I, for one, would be very interested in experimenting with this. If you don't plan to release it, is there any reason why not? I think a good MP2 encoder will be valuable because VCD uses MP2 for soundtrack encoding. |
|
|
|
Mar 15 2002, 10:34
Post
#15
|
|
![]() LAME developer Group: Developer Posts: 2950 Joined: 1-October 01 From: Nanterre, France Member No.: 138 |
Freeformat is mp3 compliant. It's part of the standard, and written in the iso docs.
BUT: mp3 compliant decoders only have to support freeformat up to 320kbps. They can support higher than 320, but it's not mandatory. |
|
|
|
Mar 15 2002, 10:45
Post
#16
|
|
![]() Group: Developer Posts: 2797 Joined: 22-September 01 Member No.: 6 |
QUOTE Originally posted by Gabriel
Uh, oh. Should have remembered that. Thanks for correcting me. Freeformat is mp3 compliant. It's part of the standard, and written in the iso docs. BUT: mp3 compliant decoders only have to support freeformat up to 320kbps. They can support higher than 320, but it's not mandatory. Anyway, nobody will in practise use freeformat if one wants to create MP3s which are generally playable. Also I think I remember that Freeformat doesn't support VBR, correct me if I'm wrong. -------------------- Juha Laaksonheimo
|
|
|
|
Mar 15 2002, 11:04
Post
#17
|
|
![]() LAME developer Group: Developer Posts: 2950 Joined: 1-October 01 From: Nanterre, France Member No.: 138 |
You're right, free format is fixed bitrate (not even bitreservoir in the free format mode we're speaking about)
The only use of free format <320kbps is when you should enforce a custom constant bitrate. ex: I have a sattellite communication with 162kbps, so I want to use all those 162kbps, because using 160 would loose 2kbps, and 2kbps of satellite bandwidth cost xxxx$ |
|
|
|
Mar 16 2002, 00:57
Post
#18
|
|
|
Group: Members Posts: 66 Joined: 22-September 01 Member No.: 7 |
It's just a shame that nobody is working on tooLame. It's been 8 months since the last CVS commit.
MPEG-1 layer II is still the codec of choice for devices that need to allow random access (since unlike MP3, each frame can be decompressed independently), like (S)VCD. Standardization and profilic hardware support are the main reasons, I presume. |
|
|
|
Mar 16 2002, 16:45
Post
#19
|
|
|
Group: Members Posts: 158 Joined: 6-December 01 From: Poland Member No.: 601 |
QUOTE since unlike MP3, each frame can be decompressed independently so how do mp3DirectCut or mp3Trim work ? don't they cut out specific frames, decompress them and do things frame based-ly ? |
|
|
|
Mar 16 2002, 18:09
Post
#20
|
|
|
Group: Members Posts: 66 Joined: 22-September 01 Member No.: 7 |
Good question. I assume that they simply look at what frame you want to keep and don't cut out any frames that said frame depends on. With is a maximum dependancy of 9 frames, or 10368 samples for MPEG-1 material (which is only ~0.235 seconds at 44.1 kHz), it's practically imperceptible.
Of course, I'm just guessing. I don't know exactly how the bit reservoir of MP3 works, or how those programs deal with it. For all I know, they could take the bits and put it in a whole new frame. |
|
|
|
Mar 16 2002, 22:25
Post
#21
|
|
|
Group: Members Posts: 151 Joined: 29-September 01 Member No.: 31 |
Frank,
Please, please, please (did I say please?) could you release MPC2, the"modified MPC encoder with two modifications and a MPC->MPEG Layer 2 bitstream transformer." I would love to test this... and the VCD/SVCD video community would praise you forever.... Please give it some consideration.... Best, RD |
|
|
|
Mar 17 2002, 00:28
Post
#22
|
|
|
Group: Members Posts: 66 Joined: 22-September 01 Member No.: 7 |
And could you release the source while you're at it?
|
|
|
|
Mar 17 2002, 01:35
Post
#23
|
|
![]() Group: Members (Donating) Posts: 482 Joined: 13-October 01 From: Stuttgart Member No.: 286 |
QUOTE since unlike MP3, each frame can be decompressed independently
so how do mp3DirectCut or mp3Trim work ? don't they cut out specific frames, decompress them and do things frame based-ly ? When I cut an MP3 with mp3DirectCut, the MAD plugin for WinAmp shows 1 "other error". Surely this is something with bit reservoir |
|
|
|
Mar 19 2002, 18:13
Post
#24
|
|
![]() MPC Developer Group: Developer Posts: 543 Joined: 15-December 01 From: Germany Member No.: 659 |
QUOTE Originally posted by RD
Frank, Please, please, please (did I say please?) could you release MPC2, the"modified MPC encoder with two modifications and a MPC->MPEG Layer 2 bitstream transformer." I would love to test this... and the VCD/SVCD video community would praise you forever.... Please give it some consideration.... Best, RD This is really a nasty hack. It always uses MS Frames, it wastes on average 20...40 kbps due to MP2 package quantization, it produces a wrong bitstream if bitrate drops below 112 kbps. There's some code needed not needed in MPC. Typical bitrate is 320 kbps and vasting 40 kbps because stream needs 270...290 kbps (where the according MPC stream needs 180...190 kbps). Maybe SV8 can write a MPEG Layer 2 stream on demand. -------------------- -- Frank Klemm
|
|
|
|
Mar 19 2002, 18:19
Post
#25
|
|
![]() MPC Developer Group: Developer Posts: 543 Joined: 15-December 01 From: Germany Member No.: 659 |
Another advantage of MP2 over MP3, AAC, OV, MPC, ... is
that it is much more error resistant. In a typical MP3 stream you can hear 50% of the bit errors, i.e. you need BER below 10^-7, better 10^-8. For MP2 this is around 10^-6. A bit error in MP3 normally damage a whole frame, in MP2 normally a subband sample as long as it not occures in the header bits. -------------------- -- Frank Klemm
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th June 2013 - 14:28 |