Rockbox mail archive
Subject: Re: Trimming an MP3 file
From: Linus Nielsen Feltzing (linus_at_haxx.se)
Johan Vromans wrote:
> So I did. Removed two frames from the start. And this is what I get:
> Time: | | | | | (tick = 50ms)
> Original: ----------abcdefghijklmnopqrstuvwzyz......
> New: ------+hijklmnopqrstuvwzyz......
> There are 50ms gone, but not the first.
How is the file encoded? Is it VBR or CBR? What samplerate/bitrate?
If you use 44100kHz, each frame is about 26 milliseconds. It looks like
the first frame in your new stream is muted by the MP3 decoder, probably
because it contains data that depends on the previous frame (the bit
reservoir) that you cut out. Which decoder do you use?
Page was last modified "Jan 10 2012" The Rockbox Crew