Hi! On Monday 03 August 2009 09:16:28 Joaquin Dario Gonzalez wrote: > Hi everybody. I'm using lame to convert a wav file whit a duration of > exactly 1.000 (one) second. The resulting mp3 last 1.045 seconds. > I need an mp3 file whit the exactly same duration of the wav file. I'm just > using the simple conversion. > > lame file1.wav file1.mp3 > > Somebody can help me?
The MPEG audio format is built with frames, which encompass a fixed number of samples/fixed amount of time (depending on channels/sampling rate/...). What you're seeing looks like a consequence of this. However, as far as I know lame puts an extra header into the file, which includes - among other more or less interesting values - the exact number of "valid" samples. This could be used by players/other programs to determine the length. Obviously, the program you checked the length with does not take this into account. Alas, I do not know at all which programs do so. HTH, Hans _______________________________________________ mp3encoder mailing list mp3encoder@minnie.tuhs.org https://minnie.tuhs.org/mailman/listinfo/mp3encoder