Page 1 of 1

Encoding MKV files results in audio shift/sync issues

Posted: Tue Oct 29, 2019 5:36 pm
by rwsmith425
Description of problem or question:
I have ripped 8 of my County Music DVD set and everything plays fine in VLC. I then attempted to compress them to a reasonable size with Handbrake and about 10 min into the video there is video pause and then the sound is out of sync the remainder of the episode.

This is not happen to all the DVDs I ripped from this set. Just 4 of them. I do not understand why as I followed the same procedure for all the DVDs the same.

Any help or suggestions would be appreciated. I do not know how to diagnose this.



Steps to reproduce the problem (If Applicable):




HandBrake version (e.g., 1.0.0):
1.2.2



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



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

Code: Select all

[10:45:30] macgui: Handbrake Version: 1.2.2  (2019022300)
[10:45:31] hb_init: starting libhb thread
[10:45:31] hb_init: starting libhb thread
[10:45:31] macgui: trying to open a folder or file
[10:45:31] macgui: ScanCore scanning titles with a duration of 10 seconds or more
[10:45:31] CPU: Intel(R) Core(TM) i5-2415M CPU @ 2.30GHz
[10:45:31]  - Intel microarchitecture Sandy Bridge
[10:45:31]  - logical processor count: 4
[10:45:31] hb_scan: path=/Users/randysmith/Movies/Ken Burns - Country Music/Country Music - Episode 1 The Rub (Beginnings -1933).mkv, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Users/randysmith/Movies/Ken Burns - Country Music/Country Music - Episode 1 The Rub (Beginnings -1933).mkv
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[10:45:31] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[10:45:31] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/Users/randysmith/Movies/Ken Burns - Country Music/Country Music - Episode 1 The Rub (Beginnings -1933).mkv':
  Metadata:
    encoder         : libmakemkv v1.14.4 (1.3.5/1.4.7) darwin(x64-release)
    creation_time   : 2019-10-23T14:04:54.000000Z
  Duration: 01:53:06.25, start: 0.000000, bitrate: 7092 kb/s
    Chapter #0:0: start 0.000000, end 214.964750
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 214.964750, end 2081.412667
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 2081.412667, end 2583.380800
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 2583.380800, end 2819.149667
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 2819.149667, end 3023.920900
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 3023.920900, end 3502.932767
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 3502.932767, end 4015.511500
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 4015.511500, end 4554.850300
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 4554.850300, end 5188.249733
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 5188.249733, end 5779.240133
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 5779.240133, end 6523.049867
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 6523.049867, end 6786.246133
    Metadata:
      title           : Chapter 12
    Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, top first), 720x480 [SAR 32:27 DAR 16:9], SAR 186:157 DAR 279:157, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc
    Metadata:
      BPS-eng         : 6033772
      DURATION-eng    : 01:53:06.246133333
      NUMBER_OF_FRAMES-eng: 199161
      NUMBER_OF_BYTES-eng: 5118333176
      SOURCE_ID-eng   : 0100E0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.4 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-10-23 14:04:54
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 376022
      DURATION-eng    : 01:53:06.166066666
      NUMBER_OF_FRAMES-eng: 207662
      NUMBER_OF_BYTES-eng: 318968832
      SOURCE_ID-eng   : 0180BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.4 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-10-23 14:04:54
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 219346
      DURATION-eng    : 01:53:06.166066666
      NUMBER_OF_FRAMES-eng: 207662
      NUMBER_OF_BYTES-eng: 186065152
      SOURCE_ID-eng   : 0181BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.4 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-10-23 14:04:54
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:3(spa): Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 219346
      DURATION-eng    : 01:53:06.166066666
      NUMBER_OF_FRAMES-eng: 207662
      NUMBER_OF_BYTES-eng: 186065152
      SOURCE_ID-eng   : 0182BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.4 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-10-23 14:04:54
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:4(eng): Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 219346
      DURATION-eng    : 01:53:06.166066666
      NUMBER_OF_FRAMES-eng: 207662
      NUMBER_OF_BYTES-eng: 186065152
      SOURCE_ID-eng   : 0183BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.4 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-10-23 14:04:54
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:5(eng): Subtitle: dvd_subtitle, 720x480 (default)
    Metadata:
      BPS-eng         : 9455
      DURATION-eng    : 01:53:03.365466666
      NUMBER_OF_FRAMES-eng: 2094
      NUMBER_OF_BYTES-eng: 8017548
      SOURCE_ID-eng   : 0120BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.4 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-10-23 14:04:54
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:6(spa): Subtitle: dvd_subtitle, 720x480
    Metadata:
      BPS-eng         : 7704
      DURATION-eng    : 01:52:56.733288888
      NUMBER_OF_FRAMES-eng: 2184
      NUMBER_OF_BYTES-eng: 6526224
      SOURCE_ID-eng   : 0121BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.4 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-10-23 14:04:54
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[10:45:31] scan: decoding previews for title 1
[10:45:31] scan: audio 0x1: ac3, rate=48000Hz, bitrate=384000 English (AC3) (5.1 ch)
[10:45:31] scan: audio 0x2: ac3, rate=48000Hz, bitrate=224000 English (AC3) (2.0 ch)
[10:45:31] scan: audio 0x3: ac3, rate=48000Hz, bitrate=224000 español (AC3) (2.0 ch)
[10:45:31] scan: audio 0x4: ac3, rate=48000Hz, bitrate=224000 English (AC3) (2.0 ch)
[10:45:32] scan: 10 previews, 720x480, 29.970 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 32:27
[10:45:32] libhb: scan thread found 1 valid title(s)
[10:45:32] macgui: ScanCore scan done
[10:45:56] macgui: QueueCore prevented sleep
[10:45:56] macgui: QueueCore scanning specifically for title: 1
[10:45:56] CPU: Intel(R) Core(TM) i5-2415M CPU @ 2.30GHz
[10:45:56]  - Intel microarchitecture Sandy Bridge
[10:45:56]  - logical processor count: 4
[10:45:56] hb_scan: path=/Users/randysmith/Movies/Ken Burns - Country Music/Country Music - Episode 1 The Rub (Beginnings -1933).mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Users/randysmith/Movies/Ken Burns - Country Music/Country Music - Episode 1 The Rub (Beginnings -1933).mkv
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[10:45:56] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[10:45:56] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/Users/randysmith/Movies/Ken Burns - Country Music/Country Music - Episode 1 The Rub (Beginnings -1933).mkv':
  Metadata:
    encoder         : libmakemkv v1.14.4 (1.3.5/1.4.7) darwin(x64-release)
    creation_time   : 2019-10-23T14:04:54.000000Z
  Duration: 01:53:06.25, start: 0.000000, bitrate: 7092 kb/s
    Chapter #0:0: start 0.000000, end 214.964750
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 214.964750, end 2081.412667
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 2081.412667, end 2583.380800
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 2583.380800, end 2819.149667
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 2819.149667, end 3023.920900
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 3023.920900, end 3502.932767
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 3502.932767, end 4015.511500
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 4015.511500, end 4554.850300
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 4554.850300, end 5188.249733
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 5188.249733, end 5779.240133
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 5779.240133, end 6523.049867
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 6523.049867, end 6786.246133
    Metadata:
      title           : Chapter 12
    Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, top first), 720x480 [SAR 32:27 DAR 16:9], SAR 186:157 DAR 279:157, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc
    Metadata:
      BPS-eng         : 6033772
      DURATION-eng    : 01:53:06.246133333
      NUMBER_OF_FRAMES-eng: 199161
      NUMBER_OF_BYTES-eng: 5118333176
      SOURCE_ID-eng   : 0100E0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.4 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-10-23 14:04:54
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 376022
      DURATION-eng    : 01:53:06.166066666
      NUMBER_OF_FRAMES-eng: 207662
      NUMBER_OF_BYTES-eng: 318968832
      SOURCE_ID-eng   : 0180BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.4 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-10-23 14:04:54
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 219346
      DURATION-eng    : 01:53:06.166066666
      NUMBER_OF_FRAMES-eng: 207662
      NUMBER_OF_BYTES-eng: 186065152
      SOURCE_ID-eng   : 0181BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.4 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-10-23 14:04:54
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:3(spa): Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 219346
      DURATION-eng    : 01:53:06.166066666
      NUMBER_OF_FRAMES-eng: 207662
      NUMBER_OF_BYTES-eng: 186065152
      SOURCE_ID-eng   : 0182BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.4 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-10-23 14:04:54
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:4(eng): Audio: ac3, 48000 Hz, stereo, fltp, 224 kb/s
    Metadata:
      title           : Stereo
      BPS-eng         : 219346
      DURATION-eng    : 01:53:06.166066666
      NUMBER_OF_FRAMES-eng: 207662
      NUMBER_OF_BYTES-eng: 186065152
      SOURCE_ID-eng   : 0183BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.4 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-10-23 14:04:54
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:5(eng): Subtitle: dvd_subtitle, 720x480 (default)
    Metadata:
      BPS-eng         : 9455
      DURATION-eng    : 01:53:03.365466666
      NUMBER_OF_FRAMES-eng: 2094
      NUMBER_OF_BYTES-eng: 8017548
      SOURCE_ID-eng   : 0120BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.4 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-10-23 14:04:54
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:6(spa): Subtitle: dvd_subtitle, 720x480
    Metadata:
      BPS-eng         : 7704
      DURATION-eng    : 01:52:56.733288888
      NUMBER_OF_FRAMES-eng: 2184
      NUMBER_OF_BYTES-eng: 6526224
      SOURCE_ID-eng   : 0121BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.4 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2019-10-23 14:04:54
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[10:45:56] scan: decoding previews for title 1
[10:45:56] scan: audio 0x1: ac3, rate=48000Hz, bitrate=384000 English (AC3) (5.1 ch)
[10:45:56] scan: audio 0x2: ac3, rate=48000Hz, bitrate=224000 English (AC3) (2.0 ch)
[10:45:56] scan: audio 0x3: ac3, rate=48000Hz, bitrate=224000 español (AC3) (2.0 ch)
[10:45:56] scan: audio 0x4: ac3, rate=48000Hz, bitrate=224000 English (AC3) (2.0 ch)
[10:45:57] scan: 10 previews, 720x480, 29.970 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 32:27
[10:45:57] libhb: scan thread found 1 valid title(s)
[10:45:57] macgui: QueueCore scan done
[10:45:57] 1 job(s) to process
[10:45:57] starting job
[10:45:57] macgui: QueueCore started encoding Country Music - Episode 1 The Rub (Beginnings -1933).m4v
[10:45:57] macgui: QueueCore with preset Fast 1080p30
[10:45:57] decomb filter thread started for segment 0
[10:45:57] decomb filter thread started for segment 1
[10:45:57] decomb filter thread started for segment 2
[10:45:57] decomb filter thread started for segment 3
[10:45:57] decomb check thread started for segment 0
[10:45:57] decomb check thread started for segment 1
[10:45:57] decomb check thread started for segment 2
[10:45:57] decomb check thread started for segment 3
[10:45:57] mask filter thread started for segment 0
[10:45:57] mask filter thread started for segment 1
[10:45:57] mask filter thread started for segment 2
[10:45:57] mask filter thread started for segment 3
[10:45:57] mask erode thread started for segment 0
[10:45:57] mask erode thread started for segment 1
[10:45:57] mask erode thread started for segment 2
[10:45:57] mask erode thread started for segment 3
[10:45:57] mask dilate thread started for segment 0
[10:45:57] mask dilate thread started for segment 1
[10:45:57] mask dilate thread started for segment 2
[10:45:57] mask dilate thread started for segment 3
[10:45:57] yadif thread started for segment 0
[10:45:57] yadif thread started for segment 1
[10:45:57] yadif thread started for segment 2
[10:45:57] yadif thread started for segment 3
[10:45:57] job configuration:
[10:45:57]  * source
[10:45:57]    + /Users/randysmith/Movies/Ken Burns - Country Music/Country Music - Episode 1 The Rub (Beginnings -1933).mkv
[10:45:57]    + title 1, chapter(s) 1 to 12
[10:45:57]    + container: matroska,webm
[10:45:57]    + data rate: 7092 kbps
[10:45:57]  * destination
[10:45:57]    + /Users/randysmith/Movies/New Rips/Country Music/Country Music - Episode 1 The Rub (Beginnings -1933).m4v
[10:45:57]    + container: MPEG-4 (libavformat)
[10:45:57]      + align initial A/V stream timestamps
[10:45:57]      + chapter markers
[10:45:57]  * video track
[10:45:57]    + decoder: mpeg2video
[10:45:57]    + filters
[10:45: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)
[10:45:57]      + Decomb (mode=39)
[10:45:57]      + Framerate Shaper (mode=2:rate=27000000/900000)
[10:45:57]        + frame rate: 29.970 fps -> peak rate limited to 30.000 fps
[10:45:57]      + Crop and Scale (width=720:height=480:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[10:45:57]        + source: 720 * 480, crop (0/0/0/0): 720 * 480, scale: 720 * 480
[10:45:57]    + Output geometry
[10:45:57]      + storage dimensions: 720 x 480
[10:45:57]      + pixel aspect ratio: 32 : 27
[10:45:57]      + display dimensions: 853 x 480
[10:45:57]  * Foreign Audio Search: Render/Burn-in, Forced Only
[10:45:57]    + subtitle, English [VOBSUB] (track 0, id 0x5, Picture)
[10:45:57] sync: expecting 203383 video frames
[10:46:17] reader: done. 1 scr changes
[10:46:17] work: average encoding speed for job is 0.000000 fps
[10:46:17] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[10:46:17] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[10:46:17] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[10:46:17] vfr: lost time: 0 (0 frames)
[10:46:17] vfr: gained time: 0 (0 frames) (0 not accounted for)
[10:46:17] mpeg2video-decoder done: 0 frames, 0 decoder errors
[10:46:17] sync: got 0 frames, 203383 expected
[10:46:17] Subtitle track 0 (id 0x5) 'English [VOBSUB]': 2094 hits (0 forced)
[10:46:17] No candidate detected during subtitle scan
[10:46:17] starting job
[10:46:17] decomb filter thread started for segment 0
[10:46:17] decomb filter thread started for segment 1
[10:46:17] decomb filter thread started for segment 2
[10:46:17] decomb filter thread started for segment 3
[10:46:17] decomb check thread started for segment 0
[10:46:17] decomb check thread started for segment 1
[10:46:17] decomb check thread started for segment 2
[10:46:17] decomb check thread started for segment 3
[10:46:17] mask filter thread started for segment 0
[10:46:17] mask filter thread started for segment 1
[10:46:17] mask filter thread started for segment 2
[10:46:17] mask filter thread started for segment 3
[10:46:17] mask erode thread started for segment 0
[10:46:17] mask erode thread started for segment 1
[10:46:17] mask erode thread started for segment 2
[10:46:17] mask erode thread started for segment 3
[10:46:17] mask dilate thread started for segment 0
[10:46:17] mask dilate thread started for segment 1
[10:46:17] mask dilate thread started for segment 2
[10:46:17] mask dilate thread started for segment 3
[10:46:17] yadif thread started for segment 0
[10:46:17] yadif thread started for segment 1
[10:46:17] yadif thread started for segment 2
[10:46:17] yadif thread started for segment 3
[10:46:17] job configuration:
[10:46:17]  * source
[10:46:17]    + /Users/randysmith/Movies/Ken Burns - Country Music/Country Music - Episode 1 The Rub (Beginnings -1933).mkv
[10:46:17]    + title 1, chapter(s) 1 to 12
[10:46:17]    + container: matroska,webm
[10:46:17]    + data rate: 7092 kbps
[10:46:17]  * destination
[10:46:17]    + /Users/randysmith/Movies/New Rips/Country Music/Country Music - Episode 1 The Rub (Beginnings -1933).m4v
[10:46:17]    + container: MPEG-4 (libavformat)
[10:46:17]      + align initial A/V stream timestamps
[10:46:17]      + chapter markers
[10:46:17]  * video track
[10:46:17]    + decoder: mpeg2video
[10:46:17]    + filters
[10:46:17]      + 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)
[10:46:17]      + Decomb (mode=39)
[10:46:17]      + Framerate Shaper (mode=2:rate=27000000/900000)
[10:46:17]        + frame rate: 29.970 fps -> peak rate limited to 30.000 fps
[10:46:17]      + Crop and Scale (width=720:height=480:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[10:46:17]        + source: 720 * 480, crop (0/0/0/0): 720 * 480, scale: 720 * 480
[10:46:17]    + Output geometry
[10:46:17]      + storage dimensions: 720 x 480
[10:46:17]      + pixel aspect ratio: 32 : 27
[10:46:17]      + display dimensions: 853 x 480
[10:46:17]    + encoder: H.264 (libx264)
[10:46:17]      + preset:  fast
[10:46:17]      + profile: main
[10:46:17]      + level:   4.0
[10:46:17]      + quality: 22.00 (RF)
[10:46:17]      + color profile: 6-1-6
[10:46:17]  * audio track 1
[10:46:17]    + decoder: English (AC3) (5.1 ch) (track 1, id 0x1)
[10:46:17]      + bitrate: 384 kbps, samplerate: 48000 Hz
[10:46:17]    + mixdown: Stereo
[10:46:17]    + dither: triangular
[10:46:17]    + encoder: AAC (Apple AudioToolbox)
[10:46:17]      + bitrate: 160 kbps, samplerate: 48000 Hz
[10:46:17] sync: expecting 203383 video frames
[10:46:17] encx264: min-keyint: 30, keyint: 300
[10:46:17] encx264: encoding at constant RF 22.000000
[10:46:17] encx264: unparsed options: level=4.0:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=30
x264 [info]: using SAR=32/27
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
[10:46:17] sync: first pts video is 0
[10:46:17] sync: "Chapter 1" (1) at frame 1 time 0
[10:46:17] sync: first pts audio 0x1 is 0
[ac3 @ 0x7fe5ac2cb000] exponent -1 is out-of-range
[ac3 @ 0x7fe5ac2cb000] error decoding the audio block
[10:48:12] sync: "Chapter 2" (2) at frame 6438 time 19346838
[11:01:07] sync: "Chapter 3" (3) at frame 58158 time 187327125
[11:04:55] sync: "Chapter 4" (4) at frame 73202 time 232504257
[11:06:38] sync: "Chapter 5" (5) at frame 80268 time 253723455
[11:08:09] sync: "Chapter 6" (6) at frame 86405 time 272152866
[11:12:21] sync: "Chapter 7" (7) at frame 100761 time 315263934
[11:16:34] sync: "Chapter 8" (8) at frame 116123 time 361396020
[11:20:40] sync: "Chapter 9" (9) at frame 132289 time 409942518
[11:25:52] sync: "Chapter 10" (10) at frame 151270 time 466942461
[11:30:55] sync: "Chapter 11" (11) at frame 168984 time 520137603
[11:36:42] sync: "Chapter 12" (12) at frame 191274 time 587074473
[11:38:33] reader: done. 1 scr changes
[11:38:34] work: average encoding speed for job is 63.502064 fps
[11:38:34] comb detect: heavy 973 | light 4454 | uncombed 193734 | total 199161
[11:38:34] decomb: deinterlaced 973 | blended 4454 | unfiltered 193734 | total 199161
[11:38:34] vfr: 199161 frames output, 0 dropped and 0 duped for CFR/PFR
[11:38:34] vfr: lost time: 0 (0 frames)
[11:38:34] vfr: gained time: 0 (0 frames) (0 not accounted for)
[11:38:34] ac3-decoder done: 207662 frames, 0 decoder errors
[11:38:34] mpeg2video-decoder done: 199161 frames, 0 decoder errors
[11:38:34] sync: got 199161 frames, 203383 expected
[11:38:34] sync: framerate min 0.007 fps, max 29.970 fps, avg 29.348 fps
x264 [info]: frame I:1089  Avg QP:18.46  size: 52510
x264 [info]: frame P:60393 Avg QP:21.34  size:  5323
x264 [info]: frame B:137679 Avg QP:25.88  size:   838
x264 [info]: consecutive B-frames:  2.5%  7.6% 24.8% 65.1%
x264 [info]: mb I  I16..4: 14.5%  0.0% 85.5%
x264 [info]: mb P  I16..4:  0.4%  0.0%  1.3%  P16..4: 30.9% 12.3%  8.5%  0.0%  0.0%    skip:46.6%
x264 [info]: mb B  I16..4:  0.6%  0.0%  0.2%  B16..8: 12.3%  2.0%  0.1%  direct: 3.9%  skip:80.9%  L0:39.6% L1:48.5% BI:11.8%
x264 [info]: coded y,uvDC,uvAC intra: 77.7% 26.5% 8.6% inter: 8.8% 4.9% 0.2%
x264 [info]: i16 v,h,dc,p: 30% 17% 35% 18%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 14% 16%  8%  9%  9%  7%  8%  7%
x264 [info]: i8c dc,h,v,p: 77% 10% 11%  2%
x264 [info]: Weighted P-Frames: Y:8.2% UV:1.1%
x264 [info]: ref P L0: 72.2% 27.8%
x264 [info]: ref B L0: 82.1% 17.9%
x264 [info]: ref B L1: 94.3%  5.7%
x264 [info]: kb/s:582.36
[11:38:34] mux: track 0, 199161 frames, 493961175 bytes, 582.31 kbps, fifo 8192
[11:38:34] mux: track 1, 311496 frames, 126845138 bytes, 149.53 kbps, fifo 8192
[11:38:34] libhb: work result = 0
[11:38:35] macgui: QueueCore work done
[11:38:35] macgui: Queue Done, there are no more pending encodes
[11:38:35] macgui: QueueCore stopped preventing sleep


Re: Encoding MKV files results in audio shift/sync issues

Posted: Mon Nov 04, 2019 5:25 pm
by rwsmith425
Any tips? I've tried again to RIP and came up with 4 titles that the audio shifts slightly into the the movie.

Re: Encoding MKV files results in audio shift/sync issues

Posted: Mon Nov 04, 2019 7:25 pm
by mduell

Code: Select all

[ac3 @ 0x7fe5ac2cb000] exponent -1 is out-of-range
[ac3 @ 0x7fe5ac2cb000] error decoding the audio block
Your source audio is invalid, so HB is doing the best it can which may not always be right.

Try the nightly, which has hundreds if not thousands of fixes/changes, instead of the 9 mo old release you're using. It might handle the invalid audio better.

Re: Encoding MKV files results in audio shift/sync issues

Posted: Tue Nov 05, 2019 2:15 pm
by rwsmith425
Thanks for the info. you mentioned "Try the nightly", What is that? I am currently using the most recent version of Handbrake with 1.2.2

Re: Encoding MKV files results in audio shift/sync issues

Posted: Tue Nov 05, 2019 2:18 pm
by rollin_eng

Re: Encoding MKV files results in audio shift/sync issues

Posted: Tue Nov 05, 2019 8:17 pm
by rwsmith425
Thank you. I tried it but it didn't work. I must have an issue with the source. Anyway, I keep using the nightly now that I know it exists.

Re: Encoding MKV files results in audio shift/sync issues

Posted: Tue Nov 05, 2019 11:09 pm
by musicvid
Your source appears to be a broadcast recording.
These ubiquitous broadcast streams have multiple stream errors.
Although they will seem to play perfectly in a dedicated player, they must be cleaned up to work very well in an encoder. Sync loss is due to garbled frames that sometimes get dropped.

I'm a Windows editor, but Subler "may" have some options on your Mac. I hope that also helps the errors reported in your log.