dwStart and what mencoder generates
Hi 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 ... note, mencoder might be a few weeks behind cvs ... -- Michael
Michael Niedermayer wrote:
Hi
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? -Corey
Hi On Thu, Mar 02, 2006 at 05:28:34PM -0800, Corey Hickey wrote:
Michael Niedermayer wrote:
Hi
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 [...] -- Michael
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
On Saturday 04 March 2006 00:54, Corey Hickey wrote:
Of course, if you want to fix the problem yourself, go ahead. :)
In the meanwhile, mencoder is generating bad files? :) Can it be fixed in muxer_avi?
Jan Knutar wrote:
Of course, if you want to fix the problem yourself, go ahead. :)
In the meanwhile, mencoder is generating bad files? :)
Only with large dwStart values (I don't know how large is large, but normal usage shouldn't be affected). Still, it should of course be fixed if there is a problem.
Can it be fixed in muxer_avi?
I don't see why not. I just think modifying muxer_write_chunk() would be easier, since there's already buffering there. I don't really know, though. -Corey
participants (3)
-
Corey Hickey -
Jan Knutar -
Michael Niedermayer