[FFmpeg-devel] Integrating the mod engine into FFmpeg - what is the best design approach?

Måns Rullgård mans
Fri Jul 16 17:15:56 CEST 2010


Vladimir Pantelic <vladoman at gmail.com> writes:

> Vitor Sessak wrote:
>
>> And your first idea did not have this problem. Since it is not a bad
>> idea either, I'd like to explain it to see what the rest of the
>> community think. In Sebastian's original approach, the demuxer would
>> decode the file to a BSS an output it in an AVPacket. It would them
>> define a CODEC_ID_SEQUENCER, and the decoder would be just a wrapper to
>> libavsequencer to make the BSS ->  PCM conversion.
>
> as a lavf/lavc user, I would expect the PCM to be the result of calling
> the decoder, having to now call lavseq would be kinda new and disruptive.
>
> for this approach how do we handle:
>
> 1) decode call cannot output ALL pcm at once, do we call it several times
> without new input data to get all the PCM "decoded"?

IIRC there are already decoders doing this.

> 2) how do we seek? since the BSS is one avpacket, how do timestamps work?

Most mod files sound best if one seeks directly to the end...

-- 
M?ns Rullg?rd
mans at mansr.com



More information about the ffmpeg-devel mailing list