[MPlayer-dev-eng] [PATCH] mencoder, B-frames, and video/audio delay
Corey Hickey
bugfood-ml at fatooh.org
Fri Jan 27 03:26:43 CET 2006
All right, here's patch #5. Changes from the previous:
1. The encoder config() functions each initialize the delay variable:
0 if no B-frames
1 if any B-frames
2 if b_pyramid (which requires >1 B-frames, as well)
This takes care of the decoding delay, and, since it's set right at the
beginning, mencoder will start compensating immediately and skip 1 or 2
frames as soon as it can.
The encode_frame() functions still increment the delay variable each
time the encoder doesn't output a frame, so that takes care of encoding
delay nice and smoothly.
2. I changed "encoder_delay" to "codec_delay" to represent that it's
compensating for delays in both encoding and decoding.
Any thoughts?
-Corey
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix-bframes-sync5.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060126/89e3b105/attachment.txt>
More information about the MPlayer-dev-eng
mailing list