[Ffmpeg-devel] [PATCH] Add True Audio Seeking Support

Alex Beregszaszi alex
Sat Mar 31 00:09:07 CEST 2007


Hi,

> That's in lavc.  The patch was for lavf.
> 
> Anyhow, do you know what that value is supposed to be?

Just searched for it now.

Based on this: 
http://www.true-audio.com/TTA_Lossless_Audio_Codec_-_Format_Description

"The frame duration in the TTA format is fixed at about one second.
Therefore, every frame in a stream has an equal count of samples, except
for the last. The sample count in a TTA frame is a multiple to 576
(sound buffer granule), and determined as:

                frame length = frame time * sample rate

,where "frame time" is a constant 1.04489795918367346939."

So this should be sample_rate aligned to 576 = srate+(srate%576). Of
course it is not.

--
Alex Beregszaszi








More information about the ffmpeg-devel mailing list