On Friday, May 24, 2002, at 10:48  AM, Mark Taylor wrote:
>> I need to know exact time slices lengths (in bytes) for MPEG layers. For
>> example 44,1kHz MP3 has time slice cca 4ms for short frame.
>>
>> MPEG1 L3 short
>> MPEG1 L3 long
>> MPEG1 L2
>> MPEG1 L1
>> MPEG2 L3 short
>> MPEG2 L3 long
>> MPEG2 L2
>> MPEG2 L1
>>
>> Many thanks             Jaroslav Lukesh
>
> The framesizes are always fixed:  for MPEG1 L3, it's 576 samples
> for long blocks, 192 for short blocks.  So to get the length
> just devide the number of samples by the samplerate.

Since short blocks come in threes, the total number of samples per granule 
is the same: 576. In MPEG-1 Layer III, there are two granules per frame, 
so the total number of samples per frame is 1152.

> I'm not sure, but I believe MPEG1 L1 and L2 only has frames
> of 1024 samples.

Layer I frames always have 384 samples. Layer II frames always have 1152 
samples.

A nice summary of samples per frame is here:

     http://board.mp3-tech.org/view.php3?bn=agora_mp3techorg&key=1019510889

As Mark says, divide the number of samples by the sampling frequency to 
get playing time in seconds.

--
Rob Leslie
[EMAIL PROTECTED]

_______________________________________________
mp3encoder mailing list
[EMAIL PROTECTED]
http://minnie.tuhs.org/mailman/listinfo/mp3encoder

Reply via email to