svn3309 Audio out of sync

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
JVHB
Posts: 30
Joined: Thu Jan 08, 2009 6:03 pm

svn3309 Audio out of sync

Post by JVHB »

Hi

The audio is way out of sync using the latest nightly build. I re-encoded with 0.94 and there are no audio sync issues at all.



Here is the activity report from the 3309 encode (Out of sync)

HandBrake Activity Log for /Users/No Backup/Blu-ray/title00.m4v: 2010-05-24 18:10:47 +0100
Handbrake Version: svn3309 x86_64 (2010052201)

[18:10:47] macgui: scanning specifically for title: 1
[18:10:47] hb_scan: path=/Users//No Backup/Blu-ray/Gran Torino/title00.mkv, title_index=1
[18:10:47] scan: trying to open with libdvdread
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[18:10:47] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska, from '/Users/No Backup/Blu-ray/Gran Torino/title00.mkv':
Duration: 01:56:40.64, start: 0.000000, bitrate: 1280 kb/s
Chapter #0.0: start 0.000000, end 234.525956
Metadata:
title : Chapter 00
Chapter #0.1: start 234.525956, end 525.358156
Metadata:
title : Chapter 01
Chapter #0.2: start 525.358156, end 794.126667
Metadata:
title : Chapter 02
Chapter #0.3: start 794.126667, end 1088.378956
Metadata:
title : Chapter 03
Chapter #0.4: start 1088.378956, end 1257.005733
Metadata:
title : Chapter 04
Chapter #0.5: start 1257.005733, end 1460.750956
Metadata:
title : Chapter 05
Chapter #0.6: start 1460.750956, end 1729.060667
Metadata:
title : Chapter 06
Chapter #0.7: start 1729.060667, end 1901.649733
Metadata:
title : Chapter 07
Chapter #0.8: start 1901.649733, end 2178.050867
Metadata:
title : Chapter 08
Chapter #0.9: start 2178.050867, end 2413.744667
Metadata:
title : Chapter 09
Chapter #0.10: start 2413.744667, end 2626.290333
Metadata:
title : Chapter 10
Chapter #0.11: start 2626.290333, end 2924.379778
Metadata:
title : Chapter 11
Chapter #0.12: start 2924.379778, end 3235.899333
Metadata:
title : Chapter 12
Chapter #0.13: start 3235.899333, end 3424.421000
Metadata:
title : Chapter 13
Chapter #0.14: start 3424.421000, end 3665.662000
Metadata:
title : Chapter 14
Chapter #0.15: start 3665.662000, end 3861.691156
Metadata:
title : Chapter 15
Chapter #0.16: start 3861.691156, end 4243.113867
Metadata:
title : Chapter 16
Chapter #0.17: start 4243.113867, end 4588.125200
Metadata:
title : Chapter 17
Chapter #0.18: start 4588.125200, end 4804.758289
Metadata:
title : Chapter 18
Chapter #0.19: start 4804.758289, end 4975.136822
Metadata:
title : Chapter 19
Chapter #0.20: start 4975.136822, end 5174.210689
Metadata:
title : Chapter 20
Chapter #0.21: start 5174.210689, end 5355.475111
Metadata:
title : Chapter 21
Chapter #0.22: start 5355.475111, end 5610.062778
Metadata:
title : Chapter 22
Chapter #0.23: start 5610.062778, end 5791.786000
Metadata:
title : Chapter 23
Chapter #0.24: start 5791.786000, end 5921.582333
Metadata:
title : Chapter 24
Chapter #0.25: start 5921.582333, end 6225.427533
Metadata:
title : Chapter 25
Chapter #0.26: start 6225.427533, end 6369.112733
Metadata:
title : Chapter 26
Chapter #0.27: start 6369.112733, end 6664.407733
Metadata:
title : Chapter 27
Chapter #0.28: start 6664.407733, end 7000.640000
Metadata:
title : Chapter 28
Stream #0.0(eng): Video: vc1, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 24.39 fps, 23.98 tbr, 1k tbn, 23.98 tbc
Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16, 640 kb/s
Metadata:
title : 3/2+1
Stream #0.2(eng): Audio: ac3, 48000 Hz, 5.1, s16, 640 kb/s
Metadata:
title : 3/2+1
Stream #0.3(eng): Subtitle: pgssub
Stream #0.4(eng): Subtitle: pgssub
[18:10:47] add_ffmpeg_subtitle: unknown subtitle stream type: 0x17006
[18:10:47] add_ffmpeg_subtitle: unknown subtitle stream type: 0x17006
[18:10:47] scan: decoding previews for title 1
[18:10:47] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch)
[18:10:47] scan: audio 0x2: AC-3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch)
[18:10:49] scan: 10 previews, 1920x1080, 24.390 fps, autocrop = 140/140/0/0, aspect 16:9, PAR 1:1
[18:10:49] scan: title (0) job->width:1920, job->height:800
[18:10:49] libhb: scan thread found 1 valid title(s)
[18:10:50] macgui: ScanDone state received from fQueueEncodeLibhb
[18:10:50] macgui: Preset: BLU
[18:10:50] macgui: processNewQueueEncode number of passes expected is: 1
[18:10:50] macgui: Start / Stop set to chapters
[18:10:50] macgui: prepareJob audiotrack 2 is: 0
[18:10:50] macgui: prepareJob exiting
[18:10:50] 1 job(s) to process
[18:10:50] starting job
[18:10:50] sync: expecting 6579 video frames
[18:10:50] job configuration:
[18:10:50] * source
[18:10:50] + /Users/No Backup/Blu-ray/Gran Torino/title00.mkv
[18:10:50] + title 1, chapter(s) 3 to 3
[18:10:50] + container: matroska
[18:10:50] + data rate: 1280 kbps
[18:10:50] * destination
[18:10:50] + /Users/No Backup/Blu-ray/title00.m4v
[18:10:50] + container: MPEG-4 (.mp4 and .m4v)
[18:10:50] + 64-bit formatting
[18:10:50] * video track
[18:10:50] + decoder: vc1
[18:10:50] + frame rate: same as source (around 24.390 fps)
[18:10:50] + dimensions: 1920 * 1080 -> 1280 * 528, crop 140/140/0/0
[18:10:50] + encoder: x264
[18:10:50] + options: me=umh:b-adapt=2:weightp=0:direct=auto:analyse=all:no-fast-pskip=1:weightp=0
[18:10:50] + quality: 23.00 (RF)
[18:10:50] * audio track 0
[18:10:50] + decoder: English (AC3) (5.1 ch) (track 1, id 1)
[18:10:50] + bitrate: 640 kbps, samplerate: 48000 Hz
[18:10:50] + AC3 passthrough
[18:10:50] * audio track 1
[18:10:50] + decoder: English (AC3) (5.1 ch) (track 1, id 1)
[18:10:50] + bitrate: 640 kbps, samplerate: 48000 Hz
[18:10:50] + mixdown: Stereo
[18:10:50] + encoder: ca_aac
[18:10:50] + bitrate: 320 kbps, samplerate: 48000 Hz
[18:10:50] encx264: min-keyint: 24, keyint: 244
[18:10:50] encx264: Encoding at constant RF 23.000000
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
x264 [info]: profile High, level 3.1
No accelerated IMDCT transform found
No accelerated IMDCT transform found
[18:10:50] reader: first SCR 47492370 id 0 DTS 47492370
[18:21:56] reader: end of chapter 3 (media 3) reached at media chapter 4
[18:21:56] reader: done. 1 scr changes
[18:22:04] work: average encoding speed for job is 9.544938 fps
[18:22:04] sync: got 6388 frames, 6579 expected
[18:22:04] vc1-decoder done: 6388 frames, 2 decoder errors, 0 drops
[18:22:04] render: lost time: 0 (0 frames)
[18:22:04] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:57 Avg QP:20.54 size: 53311 PSNR Mean Y:44.51 U:49.14 V:49.80 Avg:45.61 Global:45.30
x264 [info]: frame P:2199 Avg QP:23.57 size: 11313 PSNR Mean Y:42.39 U:48.13 V:48.87 Avg:43.64 Global:43.35
x264 [info]: frame B:4132 Avg QP:26.79 size: 2413 PSNR Mean Y:42.03 U:48.14 V:48.84 Avg:43.31 Global:43.01
x264 [info]: consecutive B-frames: 1.7% 15.2% 56.0% 27.2%
x264 [info]: mb I I16..4: 11.2% 67.2% 21.6%
x264 [info]: mb P I16..4: 1.0% 3.7% 0.7% P16..4: 56.2% 11.4% 3.3% 0.3% 0.3% skip:23.0%
x264 [info]: mb B I16..4: 0.1% 0.2% 0.0% B16..8: 37.8% 2.9% 0.6% direct: 0.7% skip:57.7% L0:38.1% L1:57.9% BI: 4.0%
x264 [info]: 8x8 transform intra:68.1% inter:76.8%
x264 [info]: direct mvs spatial:100.0% temporal:0.0%
x264 [info]: coded y,uvDC,uvAC intra: 67.1% 57.3% 20.6% inter: 12.7% 7.2% 0.1%
x264 [info]: i16 v,h,dc,p: 37% 22% 4% 38%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 15% 15% 6% 9% 10% 9% 8% 8%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 18% 12% 6% 10% 10% 9% 7% 6%
x264 [info]: i8c dc,h,v,p: 57% 17% 22% 4%
x264 [info]: ref P L0: 75.8% 14.1% 10.1%
x264 [info]: ref B L0: 87.4% 12.6%
x264 [info]: SSIM Mean Y:0.9755889
x264 [info]: PSNR Mean Y:42.179 U:48.143 V:48.858 Avg:43.446 Global:43.138 kb/s:1137.22
[18:22:04] mux: track 0, 6388 frames, 37883767 bytes, 1137.05 kbps, fifo 16
[18:22:04] mux: track 1, 8328 frames, 21319680 bytes, 639.89 kbps, fifo 256
[18:22:04] mux: track 2, 12493 frames, 10930173 bytes, 328.06 kbps, fifo 256
[18:22:04] libhb: work result = 0

Here is the activity report from the 0.94 encode (In Sync)

HandBrake Activity Log for /Users/No Backup/Blu-ray/title00.m4v: 2010-05-24 18:43:03 +0100
Handbrake Version: 0.9.4 x86_64 (2009112300)

[18:43:03] macgui: Rip: Pending queue count is 2
[18:43:03] macgui: scanning specifically for title: 1
[18:43:03] macgui: performNewQueueScan currentQueueEncodeIndex is: 0
[18:43:03] hb_scan: path=/Users/No Backup/Blu-ray/Gran Torino/title00.mkv, title_index=1
[18:43:03] scan: trying to open with libdvdread
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[18:43:03] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska, from '/Users/No Backup/Blu-ray/Gran Torino/title00.mkv':
Duration: 01:56:40.64, start: 0.000000, bitrate: N/A
Stream #0.0(eng): Video: vc1, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 tbr, 1k tbn, 23.98 tbc
Stream #0.1(eng): Audio: ac3, 48000 Hz, 5.1, s16
Stream #0.2(eng): Audio: ac3, 48000 Hz, 5.1, s16
Stream #0.3(eng): Subtitle: 0x0000
Stream #0.4(eng): Subtitle: 0x0000
[18:43:03] scan: decoding previews for title 1
[18:43:03] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch)
[18:43:03] scan: audio 0x2: AC-3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch)
[18:43:04] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 140/140/0/0, aspect 16:9, PAR 1:1
[18:43:04] scan: title (0) job->width:1920, job->height:800
[18:43:04] libhb: scan thread found 1 valid title(s)
[18:43:04] macgui: ScanDone state received from fQueueEncodeLibhb
[18:43:04] macgui: Preset: BLU
[18:43:04] macgui: processNewQueueEncode number of passes expected is: 1
[18:43:04] macgui: prepareJob audiotrack 2 is: 0
[18:43:04] macgui: prepareJob exiting
[18:43:04] 1 job(s) to process
[18:43:04] starting job
[18:43:04] job configuration:
[18:43:04] * source
[18:43:04] + /Users/No Backup/Blu-ray/Gran Torino/title00.mkv
[18:43:04] + title 1, chapter(s) 3 to 3
[18:43:04] + container: matroska
[18:43:04] * destination
[18:43:04] + /Users/No Backup/Blu-ray/title00.m4v
[18:43:04] + container: MPEG-4 (.mp4 and .m4v)
[18:43:04] + 64-bit formatting
[18:43:04] * video track
[18:43:04] + decoder: vc1
[18:43:04] + frame rate: same as source (around 23.976 fps)
[18:43:04] + dimensions: 1920 * 1080 -> 1280 * 528, crop 140/140/0/0
[18:43:04] + encoder: x264
[18:43:04] + options: me=umh:b-adapt=2:weightp=0:direct=auto:analyse=all:no-fast-pskip=1:weightp=0
[18:43:04] + quality: 23.00 (RF)
[18:43:04] * audio track 0
[18:43:04] + decoder: English (AC3) (5.1 ch) (track 1, id 1)
[18:43:04] + bitrate: 640 kbps, samplerate: 48000 Hz
[18:43:04] + AC3 passthrough
[18:43:04] * audio track 1
[18:43:04] + decoder: English (AC3) (5.1 ch) (track 1, id 1)
[18:43:04] + bitrate: 640 kbps, samplerate: 48000 Hz
[18:43:04] + mixdown: Stereo
[18:43:04] + encoder: ca_aac
[18:43:04] + bitrate: 320 kbps, samplerate: 48000 Hz
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[18:43:04] dvd: not a dvd - trying as a stream/file instead
[18:43:04] encx264: keyint-min: 24, keyint-max: 240
[18:43:04] encx264: Encoding at constant RF 23.000000
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
x264 [info]: profile High, level 3.1
No accelerated IMDCT transform found
No accelerated IMDCT transform found
[18:43:04] sync: expecting 6467 video frames
[18:43:05] reader: first SCR 47492370 id 0 DTS 47492370
[18:43:05] sync: adding 211 ms of silence to audio 0 start 18990, next 0
[18:43:05] sync: adding 211 ms of silence to audio 1 start 18990, next 0
[18:53:48] reader: end of chapter 3 (media 3) reached at media chapter 4
[18:53:48] reader: done. 1 scr changes
[18:54:13] sync: got 6387 frames, 6467 expected
[18:54:13] work: average encoding speed for job is 9.564459 fps
[18:54:18] mux: track 0, 6388 frames, 38724832 bytes, 1161.49 kbps, fifo 64
[18:54:18] mux: track 1, 8335 frames, 21337600 bytes, 639.99 kbps, fifo 512
[18:54:18] mux: track 2, 12502 frames, 10930588 bytes, 327.85 kbps, fifo 1024
[18:54:18] vc1-decoder done: 6388 frames, 2 decoder errors, 0 drops
[18:54:18] render: lost time: 0 (0 frames)
[18:54:18] render: gained time: 0 (0 frames) (0 not accounted for)
[18:54:18] encx264: 1 frames had to be split (6387 in, 6434 out)
x264 [info]: frame I:57 Avg QP:20.15 size: 55623 PSNR Mean Y:44.71 U:49.26 V:49.92 Avg:45.81 Global:45.47
x264 [info]: frame P:2211 Avg QP:23.57 size: 11441 PSNR Mean Y:42.40 U:48.14 V:48.88 Avg:43.64 Global:43.36
x264 [info]: frame B:4120 Avg QP:26.62 size: 2490 PSNR Mean Y:42.04 U:48.15 V:48.86 Avg:43.32 Global:43.01
x264 [info]: consecutive B-frames: 1.7% 16.1% 55.7% 26.5%
x264 [info]: mb I I16..4: 10.9% 67.1% 22.0%
x264 [info]: mb P I16..4: 0.9% 3.6% 0.7% P16..4: 49.0% 9.5% 12.8% 0.3% 0.3% skip:22.9%
x264 [info]: mb B I16..4: 0.1% 0.2% 0.0% B16..8: 39.5% 0.8% 1.0% direct: 1.0% skip:57.4% L0:38.0% L1:58.4% BI: 3.6%
x264 [info]: 8x8 transform intra:68.3% inter:76.2%
x264 [info]: direct mvs spatial:100.0% temporal:0.0%
x264 [info]: coded y,uvDC,uvAC intra: 68.4% 58.0% 21.6% inter: 12.8% 7.2% 0.1%
x264 [info]: i16 v,h,dc,p: 37% 22% 4% 38%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 15% 15% 6% 9% 10% 9% 8% 8%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 18% 12% 6% 10% 10% 9% 6% 6%
x264 [info]: ref P L0: 77.9% 12.9% 9.2%
x264 [info]: ref B L0: 87.3% 12.7%
x264 [info]: SSIM Mean Y:0.9755825
x264 [info]: PSNR Mean Y:42.186 U:48.158 V:48.875 Avg:43.454 Global:43.147 kb/s:1162.83
[18:54:18] libhb: work result = 0
Deleted User 11865

Re: svn3309 Audio out of sync

Post by Deleted User 11865 »

In sync / out of sync: with what player(s) or device(s)?
JVHB
Posts: 30
Joined: Thu Jan 08, 2009 6:03 pm

Re: svn3309 Audio out of sync

Post by JVHB »

Hi

Sorry for being a little vague. The source is a HD mkv made with makemkv. I am encoding m4vs mainly for the PS3. The audio sync issue I have witnessed is in quicktime. I have not tested the ac3 track on the PS3 because I usually find playing the stereo track back in quicktime to be a good indication of whether or not the audio is in sync. I will try it on the PS3 asap.
Post Reply