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

Sebastian Vater cdgs.basty
Sat Jul 17 19:01:16 CEST 2010


M?ns Rullg?rd a ?crit :
> 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...
>
>   

Like most music out there (esp. from the music industry), so nothing new
here. ;-)
Seems to be a generic curse on music...excellent artists are very rare.

-- 

Best regards,
                   :-) Basty/CDGS (-:




More information about the ffmpeg-devel mailing list