I have ripped several of my DVDs as ISOs and open them in Handbrake so that I can export as h264 mkv files.
All is working fine (various soundtracks, subtitles, quality settings are good, etc) - however, I wanted to compare the quality of the mkv versus the original ISO. So I opened both versions in VLC media player to screengrab identical frames from each, and that's when I noticed that my mkv is 3 seconds longer than the original movie.
If I hit play on both at the same time a delay slowly builds between them.
Oddly, if I watch the MKV version, the sound does not go out of sync at all - despite it being a passthru of the original. (As it's not re-encoded, I would have expected the sound to be out of sync by 3 seconds by the end of the movie - but it seems perfectly fine).
I googled what the common true value of 29.97fps is and it seems to be the same as the framerate of my ISOs (29.970029).
My Handbrake framerate is set to '29.97', constant, but this actually outputs 29.970628 fps.
I read somewhere that this difference, although small, will add up over an extended runtime - which I'm guessing is why my movie runs 3 seconds longer. It's not enough to notice when you're watching, but as a stickler for precision (and trying to avoid sync issues with passthru soundtracks..) can anyone please explain what's going on and whether there's a way to fix it? (Is there a way to force handbrake to use a custom framerate so I can match the source properly?)
(BTW: I did originally have the framerate set to 'same as source' but for some reason it output a 23.97fps file, even though the source ISO is definitely 29.970029)
cheers
Chris
HandBrake version (e.g., 1.0.7 64bit):
Windows 7 64bit :
HandBrake Activity Log)
Code: Select all
[17:07:37] sync: expecting 143428 video frames
[17:07:42] reader: done. 3 scr changes
[17:07:42] work: average encoding speed for job is 0.000000 fps
[17:07:42] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[17:07:42] vfr: lost time: 0 (0 frames)
[17:07:42] vfr: gained time: 0 (0 frames) (0 not accounted for)
[17:07:43] sync: got 0 frames, 143428 expected
[17:07:43] Subtitle track 0 (id 0x21bd) 'English': 1463 hits (0 forced)
[17:07:43] No candidate detected during subtitle scan
[17:07:43] starting job
[17:07:43] Auto Passthru: allowed codecs are AAC, AC3, E-AC3, TrueHD, DTS, DTS-HD, MP3, FLAC
[17:07:43] Auto Passthru: fallback is AC3
[17:07:43] Auto Passthru: using DTS Passthru for track 1
[17:07:43] Auto Passthru: using AC3 Passthru for track 2
[17:07:43] Auto Passthru: using AC3 Passthru for track 3
[17:07:43] Auto Passthru: using AC3 Passthru for track 4
[17:07:43] job configuration:
[17:07:43] * source
[17:07:43] + E:\DVD ISO BACKUPS\movie.ISO
[17:07:43] + title 1, chapter(s) 1 to 45
[17:07:43] * destination
[17:07:43] + E:\DVD ISO BACKUPS\Movie.mkv
[17:07:43] + container: Matroska (libavformat)
[17:07:43] + chapter markers
[17:07:43] * video track
[17:07:43] + decoder: mpeg2video
[17:07:43] + bitrate 9800 kbps
[17:07:43] + filters
[17:07:43] + Detelecine (pullup) ()
[17:07:43] + Framerate Shaper (mode=1:rate=27000000/900900)
[17:07:43] + frame rate: 23.976 fps -> constant 29.970 fps
[17:07:43] + Crop and Scale (width=720:height=480:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[17:07:43] + source: 720 * 480, crop (0/0/0/0): 720 * 480, scale: 720 * 480
[17:07:43] + Output geometry
[17:07:43] + storage dimensions: 720 x 480
[17:07:43] + pixel aspect ratio: 32 : 27
[17:07:43] + display dimensions: 853 x 480
[17:07:43] + encoder: H.264 (libx264)
[17:07:43] + preset: slower
[17:07:43] + tune: film
[17:07:43] + profile: high
[17:07:43] + level: 4.0
[17:07:43] + quality: 10.00 (RF)
[17:07:43] * subtitle track 1, English (track 0, id 0x21bd) Picture [VOBSUB] -> Passthrough
[17:07:43] * audio track 1
[17:07:43] + decoder: English (DTS) (5.1 ch) (track 1, id 0x88bd)
[17:07:43] + bitrate: 768 kbps, samplerate: 48000 Hz
[17:07:43] + DTS Passthru
[17:07:43] * audio track 2
[17:07:43] + decoder: English (AC3) (4.1 ch) (track 2, id 0x81bd)
[17:07:43] + bitrate: 448 kbps, samplerate: 48000 Hz
[17:07:43] + AC3 Passthru
[17:07:43] * audio track 3
[17:07:43] + decoder: English (AC3) (2.0 ch) (Dolby Surround) (track 3, id 0x82bd)
[17:07:43] + bitrate: 192 kbps, samplerate: 48000 Hz
[17:07:43] + AC3 Passthru
[17:07:43] * audio track 4
[17:07:43] + decoder: English (AC3) (2.0 ch) (Dolby Surround) (track 5, id 0x84bd)
[17:07:43] + bitrate: 192 kbps, samplerate: 48000 Hz
[17:07:43] + AC3 Passthru
libdvdnav: Using dvdnav version 5.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdnav: Can't read name block. Probably not a DVD-ROM device.
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
libdvdread: Encrypted DVD support unavailable.
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[17:07:43] sync: expecting 143428 video frames
[17:07:43] encx264: min-keyint: 30, keyint: 300
[17:07:43] encx264: encoding at constant RF 10.000000
[17:07:43] encx264: unparsed options: level=4.0:ref=8:b-adapt=2:psy-rd=1,0.15:me=umh:direct=auto:deblock=-1,-1:analyse=all:trellis=2:subme=9:vbv-bufsize=31250:vbv-maxrate=25000:rc-lookahead=60
x264 [info]: using SAR=32/27
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile High, level 4.0
[17:07:43] sync: first pts video is 0
[17:07:43] sync: "Chapter 1" (1) at frame 1 time 0
[17:07:43] sync: first pts audio 0x88bd is 0
[17:07:43] sync: first pts audio 0x81bd is 0
[17:07:43] sync: first pts audio 0x82bd is 0
[17:07:43] sync: first pts audio 0x84bd is 0
[17:07:43] sync: first pts subtitle 0x21bd is 0
[17:09:20] sync: "Chapter 2" (2) at frame 3642 time 13667403
[17:12:10] sync: "Chapter 3" (3) at frame 9033 time 33903870
[17:13:39] sync: "Chapter 4" (4) at frame 12314 time 46219923
[17:14:41] sync: "Chapter 5" (5) at frame 14265 time 53543490
[17:16:51] sync: "Chapter 6" (6) at frame 18297 time 68678610
[17:17:53] sync: "Chapter 7" (7) at frame 20085 time 75390315
[17:18:56] sync: "Chapter 8" (8) at frame 21953 time 82402320
[17:21:04] sync: "Chapter 9" (9) at frame 25770 time 96730383
[17:23:12] sync: "Chapter 10" (10) at frame 29189 time 109564455
[17:26:24] sync: "Chapter 11" (11) at frame 35217 time 132192060
[17:29:01] sync: "Chapter 12" (12) at frame 40409 time 151681530
[17:31:03] sync: "Chapter 13" (13) at frame 44629 time 167522355
[17:32:28] sync: "Chapter 14" (14) at frame 47086 time 176745318
[17:34:00] sync: "Chapter 15" (15) at frame 50046 time 187856418
[17:35:00] sync: "Chapter 16" (16) at frame 51842 time 194598153
[17:35:30] sync: "Chapter 17" (17) at frame 52881 time 198498300
[17:36:09] sync: "Chapter 18" (18) at frame 54201 time 203453250
[17:36:42] sync: "Chapter 19" (19) at frame 55385 time 207897690
[17:38:05] sync: "Chapter 20" (20) at frame 57825 time 217056840
[17:40:47] sync: "Chapter 21" (21) at frame 63729 time 239218980
[17:42:07] sync: "Chapter 22" (22) at frame 66414 time 249297798
[17:44:33] sync: "Chapter 23" (23) at frame 71321 time 267717450
[17:45:55] sync: "Chapter 24" (24) at frame 74365 time 279143865
[17:49:46] sync: "Chapter 25" (25) at frame 81462 time 305784228
[17:52:18] sync: "Chapter 26" (26) at frame 86202 time 323577003
[17:53:39] sync: "Chapter 27" (27) at frame 88833 time 333453120
[17:54:28] sync: "Chapter 28" (28) at frame 90545 time 339879540
[17:55:25] sync: "Chapter 29" (29) at frame 92762 time 348201603
[17:56:34] sync: "Chapter 30" (30) at frame 95126 time 357075468
[17:58:55] sync: "Chapter 31" (31) at frame 100153 time 375945570
[17:59:49] sync: "Chapter 32" (32) at frame 102121 time 383332950
[18:01:13] sync: "Chapter 33" (33) at frame 104877 time 393678285
[18:03:11] sync: "Chapter 34" (34) at frame 109057 time 409368960
[18:03:31] sync: "Chapter 35" (35) at frame 109809 time 412191780
[18:04:40] sync: "Chapter 36" (36) at frame 112225 time 421260840
[18:10:50] sync: "Chapter 37" (37) at frame 123525 time 463678215
[18:11:49] sync: "Chapter 38" (38) at frame 125485 time 471035565
[18:12:27] sync: "Chapter 39" (39) at frame 126734 time 475723998
[18:13:16] sync: "Chapter 40" (40) at frame 128422 time 482060328
[18:14:49] sync: "Chapter 41" (41) at frame 131262 time 492720978
[18:16:06] sync: "Chapter 42" (42) at frame 133757 time 502086585
[18:17:42] sync: "Chapter 43" (43) at frame 137278 time 515303538
[18:18:16] sync: "Chapter 44" (44) at frame 138329 time 519248730
[18:19:10] reader: done. 3 scr changes
[18:19:10] work: average encoding speed for job is 33.455620 fps
[18:19:10] vfr: 179449 frames output, 2 dropped and 35904 duped for CFR/PFR
[18:19:10] vfr: lost time: 56310 (0 frames)
[18:19:10] vfr: gained time: 56310 (52 frames) (0 not accounted for)
[18:19:10] dca-decoder done: 561342 frames, 0 decoder errors
[18:19:10] ac3-decoder done: 187115 frames, 0 decoder errors
[18:19:10] ac3-decoder done: 187115 frames, 0 decoder errors
[18:19:10] ac3-decoder done: 187115 frames, 0 decoder errors
[18:19:10] mpeg2video-decoder done: 143560 frames, 0 decoder errors
[18:19:10] sync: got 143560 frames, 143428 expected
[18:19:10] sync: framerate min 23.981 fps, max 29.970 fps, avg 23.976 fps
x264 [info]: frame I:2024 Avg QP: 7.11 size:100930
x264 [info]: frame P:57169 Avg QP:10.12 size: 47837
x264 [info]: frame B:120256 Avg QP:12.76 size: 18712
x264 [info]: consecutive B-frames: 7.9% 2.9% 16.5% 72.8%
x264 [info]: mb I I16..4: 24.3% 65.5% 10.3%
x264 [info]: mb P I16..4: 4.5% 17.6% 5.2% P16..4: 14.6% 8.2% 13.0% 1.5% 1.2% skip:34.3%
x264 [info]: mb B I16..4: 0.7% 4.8% 1.2% B16..8: 24.7% 9.8% 5.1% direct: 9.4% skip:44.2% L0:30.1% L1:25.4% BI:44.6%
x264 [info]: 8x8 transform intra:66.7% inter:52.4%
x264 [info]: direct mvs spatial:100.0% temporal:0.0%
x264 [info]: coded y,uvDC,uvAC intra: 95.1% 96.7% 95.1% inter: 39.3% 32.5% 20.0%
x264 [info]: i16 v,h,dc,p: 16% 3% 54% 27%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 15% 27% 5% 5% 6% 4% 7% 8%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 13% 13% 8% 10% 10% 9% 10% 11%
x264 [info]: i8c dc,h,v,p: 56% 13% 17% 14%
x264 [info]: Weighted P-Frames: Y:4.5% UV:2.4%
x264 [info]: ref P L0: 57.9% 14.5% 11.8% 5.0% 3.8% 2.1% 2.8% 1.7% 0.4% 0.0%
x264 [info]: ref B L0: 81.5% 10.9% 4.0% 1.6% 0.8% 0.7% 0.4%
x264 [info]: ref B L1: 95.5% 4.5%
x264 [info]: kb/s:6933.30
[18:19:10] mux: track 0, 179449 frames, 5189156114 bytes, 6933.11 kbps, fifo 1024
[18:19:10] mux: track 1, 561342 frames, 564710052 bytes, 754.50 kbps, fifo 4096
[18:19:10] mux: track 2, 187115 frames, 335310080 bytes, 448.00 kbps, fifo 2048
[18:19:10] mux: track 3, 187115 frames, 143704320 bytes, 192.00 kbps, fifo 2048
[18:19:10] mux: track 4, 187115 frames, 143704320 bytes, 192.00 kbps, fifo 2048
[18:19:10] mux: track 5, 1463 frames, 1766786 bytes, 2.36 kbps, fifo 16
[18:19:10] libhb: work result = 0
# Encode Completed ...