[vorbis-dev] Idea for gapless tracks
tme at 21rst-century.com
Tue Jan 2 04:39:25 PST 2001
Aleksandar Dovnikovic wrote:
> We all know that currently Vorbis is the only codec out there that
> doesn't add any silence to the decoded file, so when you decode
> your .ogg file the resulting .wav will be exactly the same length
> as the original one. This is very useful when encoding gapless
> songs (like live concerts...). But since Vorbis is a lossy codec,
> even though there is no silence added, sometimes you can
> still hear a click between gapless tracks because the end of
> the first song doesn't match up with the beginning of the second
> song. This doesn't happen always and as you encode files using
> higher bitrates these clicks seem to appear less frequently
> (as expected).
> One of the solution would be to "teach" the encoder that
> it has to pay attention that the end of one songs should
> match up with the beginning of another one. But I'm
> thinking that there might be a better solution: the encoder
> shouldn't use psycho-acoustic at the very begging &
> very end of the songs (for a few milli seconds). This will
> ensure that the edges will always match...
> Does this holds water or not?
I would do this on playback if possible.
If the levels don't line up at the join, then you'll hear a click or a pop.
You can smooth the area around the join (say, +- 10 samples, applying a
10 sample moving
average) to try and
remove this. This can also happen if you do things like change bit rates
middle of a piece.
Multicast Technologies, Inc.
10301 Democracy Lane, Suite 201
Fairfax, Virginia 22030
Phone : 703-293-9624 Fax : 703-293-9609
e-mail : tme at on-the-i.com http://www.on-the-i.com
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Vorbis-dev