The Difference of Video Type (FILM/NTSC/PAL/HYBRID)
FILM Forced FILM ON |
23.976 fps progressive frame coded on DVD
Forced FILM skips the RFF (repeat_first_field flag) of MPEG-2 stream |
FILM Forced FILM OFF |
29.970 fps 3:2 pull-down (by DVD2AVI) based on orderly RFF
RFF sequence behaves as 01010101... every four frames add two fields (one frame) That's the theorem of 23.976/24->29.970/30 fps (4:5) conversion |
NTSC/PAL Forced FILM OFF |
29.970/25.000 fps interlaced or progressive frame coded on DVD
all RFF of MPEG-2 stream equal to 0, unnecessary to repeat disable Forced FILM to set correct frame rate, NTSC 29.97 fps or PAL 25 fps |
HYBRID Forced FILM OFF |
29.970 fps irregular pull-down (by DVD2AVI) due to unorderly RFF
Try to skip RFF will result in meaningless stuff and cause A/V asynchronism. |
The AC3/MPA/DTS Stream DELAY Computed by DVD2AVI
the real playback time of each audio and video packet.
Please look at the real log ripped from CardCaptor Sakura OP1:
The beginning of selected region is aligned to I-frame by DVD2AVI and only I-frame owns a PTS.
Video Packets
Audio Packets
Video Packets
Audio Packets
Video Packets
Audio Packets
Video Packets
Audio Packets
Audio Packets
Video Packets
Audio Packets
Video Packets
Audio Packets
Video Packets
Audio Packets
Video Packets
Audio Packets
Audio Packets
Video Packets
Audio Packets
[PTS: 0.223 sec]
[PTS: 0.223 sec]
[PTS: 0.287 sec]
[PTS: 0.319 sec]
[PTS: 0.351 sec]
[PTS: 0.383 sec]
[PTS: 0.415 sec]
[PTS: 0.447 sec]
[PTS: 0.479 sec]
[PTS: 0.511 sec]
[PTS: 0.575 sec]
[PTS: 0.790 sec]
[PTS: 0.607 sec]
I P B P B B
P
B B P
B
B
P
B
B
I
DVD2AVI will start to rip audio packet from the decided I-frame.
Assuming that we decide to rip from the second I-frame...
The audio delay of second I-frame is computed as PTS(A) 0.607 - PTS(V) 0.790 sec = -183 ms (audio is ahead)
The playback time of audio/video packet is different, so we should cut out 183 ms of audio in order to synchronize.
Only raw streams (AC3, MPA, DTS demux) need to be compensated manually.