fixing a DVD-R with audio out of sync REDUX

HandBrake for Mac support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Locked
discless
Regular User
Posts: 128
Joined: Tue Oct 21, 2008 4:47 am

fixing a DVD-R with audio out of sync REDUX

Post by discless » Tue Nov 13, 2018 6:37 pm

Description of problem or question:

I have a DVD-R with audio apparently out of sync when I play it in my DVD Player or when I play the resulting Handbrake transcode of it. Can I use Handbrake to resync it during the transcode process? Thank you.


Steps to reproduce the problem (If Applicable):




HandBrake version (e.g., 1.0.0):

1.1.2


Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):

High Sierra 10.13.5


HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

HandBrake Activity Log for Session: 2018-11-13 09:27:52 -0800
Handbrake Version: 1.1.2 (2018090500)
Fleetwood_Mac_Sweden_1995.m4v
Preset: Apple 720p30 Surround
[09:27:52] macgui: QueueCore scanning specifically for title: 2
[09:27:52] CPU: Intel(R) Core(TM) i5-2415M CPU @ 2.30GHz
[09:27:52]  - Intel microarchitecture Sandy Bridge
[09:27:52]  - logical processor count: 4
[09:27:52] hb_scan: path=/Volumes/NUEVO, title_index=2
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[09:27:52] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Attempting to use device /dev/rdisk2 mounted on /Volumes/NUEVO for CSS authentication
libdvdnav: Can't read name block. Probably not a DVD-ROM device.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000130
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00000155
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00000dc5
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x00000e00
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00000e16
libdvdread: Elapsed time 0
libdvdread: Found 2 VTS's
libdvdread: Elapsed time 0
libdvdread: Attempting to use device /dev/rdisk2 mounted on /Volumes/NUEVO for CSS authentication
[09:27:54] scan: DVD has 2 title(s)
[09:27:54] scan: scanning title 2
[09:27:54] scan: opening IFO for VTS 2
[09:27:54] scan: duration is 00:56:47 (3407233 ms)
[09:27:54] pgc_id: 1, pgn: 1: pgc: 0x7fa8aba4ce50
[09:27:54] scan: vts=2, ttn=1, cells=0->12, blocks=0->1280080, 1280081 blocks
[09:27:54] scan: checking audio 1
[09:27:54] scan: id=0x80bd, lang=Unknown (AC3), 3cc=und ext=0
[09:27:54] scan: title 2 has 13 chapters
[09:27:54] scan: chap 1 c=0->0, b=0->116372 (116373), 299600 ms
[09:27:54] scan: chap 2 c=1->1, b=116373->240906 (124534), 300000 ms
[09:27:54] scan: chap 3 c=2->2, b=240907->352359 (111453), 299600 ms
[09:27:54] scan: chap 4 c=3->3, b=352360->445053 (92694), 299600 ms
[09:27:54] scan: chap 5 c=4->4, b=445054->561734 (116681), 299600 ms
[09:27:54] scan: chap 6 c=5->5, b=561735->682066 (120332), 300000 ms
[09:27:54] scan: chap 7 c=6->6, b=682067->767956 (85890), 299600 ms
[09:27:54] scan: chap 8 c=7->7, b=767957->864663 (96707), 299600 ms
[09:27:54] scan: chap 9 c=8->8, b=864664->983888 (119225), 299600 ms
[09:27:54] scan: chap 10 c=9->9, b=983889->1101124 (117236), 300000 ms
[09:27:54] scan: chap 11 c=10->10, b=1101125->1234326 (133202), 299600 ms
[09:27:54] scan: chap 12 c=11->11, b=1234327->1279279 (44953), 103600 ms
[09:27:54] scan: chap 13 c=12->12, b=1279280->1280080 (801), 6834 ms
[09:27:54] scan: aspect = 4:3
[09:27:54] scan: decoding previews for title 2
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[09:27:55] scan: title angle(s) 1
[ac3 @ 0x7fa8a7a35200] frame sync error
[09:27:55] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=224000 Unknown (AC3) (2.0 ch)
[09:27:57] scan: 10 previews, 720x480, 29.970 fps, autocrop = 30/0/8/24, aspect 4:3, PAR 8:9
[09:27:57] libhb: scan thread found 1 valid title(s)
[09:27:57] macgui: QueueCore scan done
[09:27:57] macgui: QueueCore started encoding Fleetwood_Mac_Sweden_1995.m4v
[09:27:57] macgui: QueueCore with preset Apple 720p30 Surround
[09:27:57] 1 job(s) to process
[09:27:57] starting job
[09:27:57] decomb filter thread started for segment 0
[09:27:57] decomb filter thread started for segment 1
[09:27:57] decomb filter thread started for segment 2
[09:27:57] decomb filter thread started for segment 3
[09:27:57] decomb check thread started for segment 0
[09:27:57] decomb check thread started for segment 1
[09:27:57] decomb check thread started for segment 2
[09:27:57] decomb check thread started for segment 3
[09:27:57] mask filter thread started for segment 0
[09:27:57] mask filter thread started for segment 1
[09:27:57] mask filter thread started for segment 2
[09:27:57] mask filter thread started for segment 3
[09:27:57] mask erode thread started for segment 0
[09:27:57] mask erode thread started for segment 1
[09:27:57] mask erode thread started for segment 2
[09:27:57] mask erode thread started for segment 3
[09:27:57] mask dilate thread started for segment 0
[09:27:57] mask dilate thread started for segment 1
[09:27:57] mask dilate thread started for segment 2
[09:27:57] mask dilate thread started for segment 3
[09:27:57] yadif thread started for segment 0
[09:27:57] yadif thread started for segment 1
[09:27:57] yadif thread started for segment 2
[09:27:57] yadif thread started for segment 3
[09:27:57] job configuration:
[09:27:57]  * source
[09:27:57]    + /Volumes/NUEVO
[09:27:57]    + title 2, chapter(s) 1 to 13
[09:27:57]  * destination
[09:27:57]    + /Volumes/Macintosh HD/Videos/Fleetwood_Mac_Sweden_1995.m4v
[09:27:57]    + container: MPEG-4 (libavformat)
[09:27:57]      + chapter markers
[09:27:57]  * video track
[09:27:57]    + decoder: mpeg2video
[09:27:57]      + bitrate 8500 kbps
[09:27:57]    + filters
[09:27:57]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[09:27:57]      + Decomb (mode=39)
[09:27:57]      + Framerate Shaper (mode=2:rate=27000000/900000)
[09:27:57]        + frame rate: 29.970 fps -> peak rate limited to 30.000 fps
[09:27:57]      + Crop and Scale (width=688:height=450:crop-top=30:crop-bottom=0:crop-left=8:crop-right=24)
[09:27:57]        + source: 720 * 480, crop (30/0/8/24): 688 * 450, scale: 688 * 450
[09:27:57]    + Output geometry
[09:27:57]      + storage dimensions: 688 x 450
[09:27:57]      + pixel aspect ratio: 8 : 9
[09:27:57]      + display dimensions: 611 x 450
[09:27:57]    + encoder: H.264 (libx264)
[09:27:57]      + preset:  medium
[09:27:57]      + profile: high
[09:27:57]      + level:   3.1
[09:27:57]      + quality: 21.00 (RF)
[09:27:57]  * audio track 1
[09:27:57]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 0x80bd)
[09:27:57]      + bitrate: 224 kbps, samplerate: 48000 Hz
[09:27:57]    + mixdown: Stereo
[09:27:57]    + encoder: AAC (Apple AudioToolbox)
[09:27:57]      + bitrate: 160 kbps, samplerate: 48000 Hz
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Attempting to use device /dev/rdisk2 mounted on /Volumes/NUEVO for CSS authentication
libdvdnav: Can't read name block. Probably not a DVD-ROM device.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000130
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00000155
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00000dc5
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x00000e00
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00000e16
libdvdread: Elapsed time 0
libdvdread: Found 2 VTS's
libdvdread: Elapsed time 0
libdvdread: Attempting to use device /dev/rdisk2 mounted on /Volumes/NUEVO for CSS authentication
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[09:27:58] sync: expecting 102114 video frames
[09:27:59] encx264: min-keyint: 30, keyint: 300
[09:27:59] encx264: encoding at constant RF 21.000000
[09:27:59] encx264: unparsed options: level=3.1:vbv-bufsize=17500:vbv-maxrate=17500
x264 [info]: using SAR=8/9
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile High, level 3.1
[09:27:59] sync: first pts video is 0
[09:27:59] sync: "Chapter 1" (1) at frame 1 time 0
[09:27:59] sync: first pts audio 0x80bd is 0
[09:31:32] sync: "Chapter 2" (2) at frame 8989 time 26990964
[09:35:09] sync: "Chapter 3" (3) at frame 17989 time 54017964
[09:38:44] sync: "Chapter 4" (4) at frame 26977 time 81008928
[09:42:05] sync: "Chapter 5" (5) at frame 35965 time 107999892
[09:45:49] sync: "Chapter 6" (6) at frame 44953 time 134990856
[09:49:34] sync: "Chapter 7" (7) at frame 53953 time 162017856
[09:52:58] sync: "Chapter 8" (8) at frame 62941 time 189008820
[09:56:56] sync: "Chapter 9" (9) at frame 71929 time 215999784
[10:01:44] sync: "Chapter 10" (10) at frame 80917 time 242990748
[10:05:37] sync: "Chapter 11" (11) at frame 89917 time 270017748
[10:10:34] sync: "Chapter 12" (12) at frame 98905 time 297008712
[10:12:08] sync: "Chapter 13" (13) at frame 102013 time 306342036
[10:12:10] reader: done. 1 scr changes
[10:12:12] work: average encoding speed for job is 38.520500 fps
[10:12:12] comb detect: heavy 48019 | light 13436 | uncombed 40761 | total 102216
[10:12:12] decomb: deinterlaced 48019 | blended 13436 | unfiltered 40761 | total 102216
[10:12:12] vfr: 102216 frames output, 0 dropped and 0 duped for CFR/PFR
[10:12:12] vfr: lost time: 0 (0 frames)
[10:12:12] vfr: gained time: 0 (0 frames) (0 not accounted for)
[10:12:12] ac3-decoder done: 106575 frames, 0 decoder errors
[10:12:12] mpeg2video-decoder done: 102216 frames, 0 decoder errors
[10:12:12] sync: got 102216 frames, 102114 expected
[10:12:12] sync: framerate min 29.970 fps, max 29.970 fps, avg 29.970 fps
x264 [info]: frame I:692   Avg QP:19.62  size: 26300
x264 [info]: frame P:28851 Avg QP:22.09  size: 13827
x264 [info]: frame B:72673 Avg QP:23.86  size:  3941
x264 [info]: consecutive B-frames:  1.1% 11.4%  2.4% 85.1%
x264 [info]: mb I  I16..4:  7.3% 80.4% 12.3%
x264 [info]: mb P  I16..4:  3.5% 18.3%  1.8%  P16..4: 40.5% 21.6% 10.8%  0.0%  0.0%    skip: 3.6%
x264 [info]: mb B  I16..4:  0.3%  1.6%  0.3%  B16..8: 35.0%  7.8%  1.6%  direct: 7.8%  skip:45.5%  L0:46.3% L1:41.0% BI:12.7%
x264 [info]: 8x8 transform intra:77.0% inter:75.1%
x264 [info]: coded y,uvDC,uvAC intra: 64.7% 82.4% 23.2% inter: 27.8% 36.7% 0.2%
x264 [info]: i16 v,h,dc,p: 20% 40% 23% 17%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 17% 28%  5%  5%  6%  6%  6%  6%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 21% 12%  6%  9%  9% 10%  7%  7%
x264 [info]: i8c dc,h,v,p: 53% 28% 11%  9%
x264 [info]: Weighted P-Frames: Y:14.3% UV:10.0%
x264 [info]: ref P L0: 50.1% 13.1% 22.8% 12.2%  1.7%
x264 [info]: ref B L0: 87.1% 10.0%  2.9%
x264 [info]: ref B L1: 97.1%  2.9%
x264 [info]: kb/s:1650.25
[10:12:12] mux: track 0, 102216 frames, 703515426 bytes, 1650.17 kbps, fifo 4096
[10:12:12] mux: track 1, 159865 frames, 73722597 bytes, 172.92 kbps, fifo 4096
[10:12:12] libhb: work result = 0

User avatar
BradleyS
Moderator
Posts: 1587
Joined: Thu Aug 09, 2007 12:16 pm

Re: fixing a DVD-R with audio out of sync REDUX

Post by BradleyS » Wed Nov 14, 2018 5:12 pm

No. Just because the answer isn't what you're looking for, doesn't mean it is anything less than correct, sorry.

Locking as duplicate of viewtopic.php?f=5&t=38394

User avatar
JohnAStebbins
HandBrake Team
Posts: 5420
Joined: Sat Feb 09, 2008 7:21 pm

Re: fixing a DVD-R with audio out of sync REDUX

Post by JohnAStebbins » Wed Nov 14, 2018 5:54 pm

Thanks for the log. It indicates that the source audio and video timestamps are the same. If they were not the same, there is a possibility you were seeing a known issue with some players and mp4 files that HandBrake *does* have a fix for. But since this isn't the case, you'll have to find some other software that can edit the timestamps of your video.

One possibility would be to re-encode your file with HandBrake to mkv format, then use the command line tool mkvmerge to adjust sync of tracks. See '--sync' in the mkvmerge command line reference.

Locked