Re: [ecasound] mp3 output silence at begin and end

From: Kai Vehmanen <kvehmanen@email-addr-hidden>
Date: Sun Jan 25 2009 - 22:06:52 EET

Hi,

On Tue, 20 Jan 2009, Reza Iskandar Achmad wrote:

> I use ecasound 2.5.2 to open input (-i) wav then output to mp3 (lame)
>
> Here it is cmd line I used:
>
> ecasound -i sample.wav -o output.mp3
>
> output file is great, but at the beginning and the end of mp3 there are
> silence some ms. Lame FAQ tells me why this happen.
>
> How do know exact duration of silences ? any suggestion

I'm afraid the exact amount of padding depends on the input file length
(how it aligns with mp3 frame boundaries) and the version of lame
used. The lame FAQ is probably still the best source of information:

http://lame.sourceforge.net/tech-FAQ.txt

... (although probably you've already read through that). One way to
test/verify the amount of padding is what you expect it to be (based on
the lame documentation), is to generate a sine tone file with exact same
length as sample.wav, encode it to mp3, decode it back, and check amount
of zero-samples with a wave editor, or even by looking at the decoded file
with a hex editor.

-- 
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Ecasound-list mailing list
Ecasound-list@email-addr-hidden
https://lists.sourceforge.net/lists/listinfo/ecasound-list
Received on Mon Jan 26 00:15:02 2009

This archive was generated by hypermail 2.1.8 : Mon Jan 26 2009 - 00:15:02 EET