[FFmpeg-devel] [PATCH] AST muxer

Paul B Mahol onemda at gmail.com
Thu Nov 22 19:24:44 CET 2012


On 11/22/12, jamal <jamrial at gmail.com> wrote:
> On 22/11/12 12:45 PM, Paul B Mahol wrote:
>> Hmm, do you actually have ast files with afc adpcm ?
>>
>> The only sample I have is very ugly. Apparently one need
>> to use number of samples in header to get real number of samples
>> in last frame.
>
> No, i don't. I only tested it with PCM_S16B_PLANAR, which works fine.
> If we can't be sure it will work with ADPCM AFC then I can disable the
> corresponding code for now (Maybe returning AVERROR_PATCHWELCOME while at
> it).

Testing on Wii should be even better.

There is no need to disable code if it is correctly implemented.

> That being said, according to http://wiibrew.org/wiki/AST_file the 4 bytes
> starting from position 0x0020 represent the size of the first BLCK chunk.
> Your demuxer skips it, and vgstream seems to ignore it as well since I tried
> making that the value of the last BCLK chunk instead and vgstream extracts
> and decodes the pcm stream with the same results.
> Maybe that position should contain the value of the last frame instead of
> the first frame, which is then only used with ADPCM AFC?

The sample I have contain value of first chunk at that position.


More information about the ffmpeg-devel mailing list