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

Michael Niedermayer michaelni at gmx.at
Sat May 14 01:57:41 CEST 2011

On Sat, May 14, 2011 at 01:30:03AM +0200, Stefano Sabatini wrote:
> 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?

The decoder could just split and return several smaller frames
I dont know if this is the best solution but it seems the easiest
with the least hacks

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110514/bf01b5ea/attachment.asc>

More information about the ffmpeg-devel mailing list