[MPlayer-dev-eng] dwStart and what mencoder generates

Corey Hickey bugfood-ml at fatooh.org
Fri Mar 3 23:54:51 CET 2006


Michael Niedermayer wrote:
>>>a file generated with  
>>>mencoder ... -ovc copy -oac copy -audio-delay 10 -o test.avi
>>>
>>>doesnt look good at all, the packets are not interleaved correctly, they are
>>>10sec appart ...
>>
>>Unless I'm mixed up, the avi muxer ignores audio_delay_fix and
>>interleaves packets in the order they arrive. Should they be interleaved
>>such that the presentation times of the streams are aligned?
> 
> 
> their DTS should be approximately aligned, which is pretty much the same,
> so yes
> 
> if they are not aligned then the AVI is a not (correctly) interleaved AVI
> and that should be marked in the header at least otherwise many players will
> have problems with the file for large delays

Ok. The easiest way I can think of would be to modify
muxer_write_chunk() to always buffer packets and send them to the actual
muxer appropriately aligned. I don't know what implications this would
have for the other muxers...

Of course, if you want to fix the problem yourself, go ahead. :)

-Corey




More information about the MPlayer-dev-eng mailing list