Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: input frame size in lame (Read 4409 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

input frame size in lame

I am using lame in a streaming, RTP, application. I have seen reference to an input PCM frame size of 1152 samples.

Q1: is this regardless of the sample frequency of 44100 or 48000?
Q2: is this very strict?  That is, are there any issues if I use different input PCM frame sizes, for example, 882 samples for a frame period of 20 milliseconds @ 44100?  or larger, say  2880 for 60 milliseconds @ 48000? 

Thanks,

-Andres

input frame size in lame

Reply #1
mp3 is always 1152 samples, even at lower sampling rates.

input frame size in lame

Reply #2
There's no such thing like a PCM frame size. A mp3 encoder just takes sequences of 1152 wave samples for the mp3 frames.
lame3995o -Q1.7 --lowpass 17

input frame size in lame

Reply #3

thanks guys for clarifying that for me.

-Andres