Rockbox mail archive
Subject: Re: Corrupt Recordings
On 28.12.2005, Bluechip wrote:
> Just noticed something that may be of interest. With reference
> to the dump attached below:
> Notice how there is a difference of 3 between the Xing-Hdr
> frame count and the actual number of audio frames.
The Xing frame count in rockbox recordings was never exact so
far, as it just uses the internal frame counter of the MAS. This
doesn't always match the number of transferred frames, there
seems to be some buffering going on in the MAS itself. The error
is usually 1..3 frames.
With older rockbox, long recordings which overflow the MAS frame
counter as well as recordings made with prerecording active had
no Xing frame count at all.
The MAS frame counter is a 20bit signed counter which doesn't
wrap but saturate (!!) at 0x7ffff.
Newer rockbox versions always write a Xing frame count, tracking
the MAS frame counter during prerecording and estimating the
count for long recordings using the recording time. When rockbox
resorts to estimation, the error increases, but it's still
better than nothing for estimating playtime and average bitrate.
All this will change when framewalking during recording gets
implemented (something that is on my list) as we won't use the
MAS frame counter any more.
Received on Wed Dec 28 08:36:06 2005
Page was last modified "Jan 10 2012" The Rockbox Crew