[FFmpeg-devel] [RFC] SVX8 stereo files and AVCODEC_MAX_AUDIO_FRAME_SIZE

Stefano Sabatini stefano.sabatini-lala at poste.it
Sat May 14 01:30:03 CEST 2011


Hi,

I spent some time trying to figure out how to fix issue #169,
currently the problem is that the code can't work for stereo files,
indeed audio data in an SVX8 file is contained in a single chunk, with
all the left samples at the begin and the right samples at the end.

The problem is that the chunk size is not known a-priori, and its
decoded size could easily exceeds the max buffer size.

A possible solution would be to extend the audio decoding/encoding API
(audio frame in AVFrame?), another would be to store the whole chunk
in the demuxer, decode+interleave and release audio packets with fixed
size, another would be to make the muxer fails in case stereo audio is
detected, which can't work with the current code/framework.

decode+interleave in muxer seems simple enough, and would imply to
dump the 8svx decoders which would be unnecessary since all the
decoding would be done in the muxer itself.

Ideas/suggestions?
-- 
FFmpeg = Fabulous Faithless Merciless Pure Ecletic Governor


More information about the ffmpeg-devel mailing list