Issue - BD+ FUTs to HandbrakeCLI using libmmbd

MKV playback, recompression, remuxing, codec packs, players, howtos, etc.
Post Reply
harpoma1234
Posts: 1
Joined: Tue Apr 28, 2026 9:32 pm

Issue - BD+ FUTs to HandbrakeCLI using libmmbd

Post by harpoma1234 »

Hello,

Registered user, running on M2 osx. I use handbrakecli to interface to MakeMKV and it works perfectly for a lot of BluRays.

However, it seems that BD+ discs with FUTs seem to give this processes some troubles. It appears that the FUTs are calculated but the data streamed to HandbrakeCLI confuses it once the FUT area is reached.
If I use the MakeMKV through the gui (and I presume makemkvcon) it works fine and then I can use HandbrakeCLI to process the mkv as expected.

I have a lot of material to process and my existing process works nicely, save this issue, so I would prefer not to change it.

It was my presumption that MakeMKV would pass a corrected stream forward when a fixup occurs but I really don't know how that process works in practice.

Any assistance would be greatly appreciated.

Thanks,
Harpo

Executing:

Code: Select all

MMBD_TRACE=1 /Applications/HandBrakeCLI -i /dev/disk8 -t 9 -o T1testing_last_disc_errors2.mkv

Log:

Code: Select all

HandBrake 1.10.2 (2025090600) - Darwin arm64 - https://handbrake.fr
10 CPUs detected
Opening /dev/disk8...
[15:08:36] CPU: Apple M2 Pro
[15:08:36]  - logical processor count: 10
[15:08:36] hb_scan: path=/dev/disk8, title_index=9
disc.c:333: failed opening UDF image /dev/disk8
MMBD: MakeMKV v1.18.2 darwin(arm64-release) started
MMBD: Debug logging enabled, log will be saved as xxx
MMBD: The new version 1.18.3 is available for download at http://www.makemkv.com/download/
MMBD: DEBUG: Code 0 at ,~+[%E+HI&A$iAZ4dy;<WPJoE:29395149
Scanning title 1 of 1, 0.00 %MMBD: Using direct disc access mode
Scanning title 1 of 1, 0.00 %MMBD: Processing BD+ code, please be patient - this may take up to few minutes
MMBD: Processing BD+ code using generic SVQ from builtin/generic.svq
Scanning title 1 of 1, 0.00 %MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
Scanning title 1 of 1, 0.00 %MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
Scanning title 1 of 1, 0.00 %MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
Scanning title 1 of 1, 0.00 %MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
Scanning title 1 of 1, 0.00 %MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
Scanning title 1 of 1, 0.00 %MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
Scanning title 1 of 1, 0.00 %MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
Scanning title 1 of 1, 0.00 %MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
Scanning title 1 of 1, 0.00 %MMBD: DEBUG: Code 6 at N/]<a7t6Mg,<W3.RHA:213133756
MMBD: DEBUG: Code 6 at N/]<a7t6Mg,<W3.RHA:213133756
Scanning title 1 of 1, 0.00 %MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
Scanning title 1 of 1, 0.00 %MMBD: Saved BD+ dump file as xxx
MMBD: BD+ code processed, got 1 FUT(s) for 1 clip(s)
MMBD: Operation successfully completed
[15:09:38] scan: BD has 57 title(s)
[15:09:38] bd: scanning title 9
[15:09:38] bd: playlist 00013.MPLS
[15:09:38] bd: duration is 01:28:35 (5315977 ms)

....

[15:09:38] bd: title 9 has 24 chapters
[15:09:38] scan: decoding previews for title 9
bdplus.c:353: BD+ active for clip 00308.m2ts
[15:09:38] scan: title angle(s) 1
[dca @ 0x131e11e00] Residual encoded channels are present without core
[dca @ 0x131e11f30] Residual encoded channels are present without core
[15:09:38] scan: audio 0x711100: dca, rate=48000Hz, bitrate=1536000 English (DTS, 5.1 ch, 1536 kbps)
[dca @ 0x131e12190] Residual encoded channels are present without core
[15:09:38] scan: audio 0x1100: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA, 5.1 ch)
[15:09:38] scan: audio 0x1101: ac3, rate=48000Hz, bitrate=448000 español (AC3, 5.1 ch, 448 kbps)
[15:09:38] scan: audio 0x1102: ac3, rate=48000Hz, bitrate=448000 Francais (AC3, 5.1 ch, 448 kbps)
[15:09:38] scan: audio 0x1103: ac3, rate=48000Hz, bitrate=448000 Portugues (AC3, 5.1 ch, 448 kbps)
Scanning title 1 of 1, preview 10, 100.00 %[15:09:40] using container PAR 1:1
[15:09:40] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 20/0/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[15:09:40] stream: 9 good frames, 0 errors (0%)
[15:09:40] libhb: scan thread found 1 valid title(s)
+ Using preset: DVDBlu
+ title 9:
  + playlist: 00013.MPLS
  + duration: 01:28:35
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 20/0/0/0
  + chapters:
    + 1: duration 00:02:57

....

[15:09:40] Starting work at: Tue Apr 28 15:09:40 2026

....

[15:09:40] Starting Task: Encoding Pass

....

disc.c:333: failed opening UDF image /dev/disk8
MMBD: MakeMKV v1.18.2 darwin(arm64-release) started
MMBD: Debug logging enabled, log will be saved as xxx
....
MMBD: The new version 1.18.3 is available for download at http://www.makemkv.com/download/
MMBD: DEBUG: Code 0 at ,~+[%E+HI&A$iAZ4dy;<WPJoE:29395149
Encoding: task 1 of 1, 0.00 %MMBD: Using direct disc access mode
Encoding: task 1 of 1, 0.00 %MMBD: Processing BD+ code, please be patient - this may take up to few minutes
MMBD: Processing BD+ code using generic SVQ from builtin/generic.svq
Encoding: task 1 of 1, 0.00 %MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
Encoding: task 1 of 1, 0.00 %MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
Encoding: task 1 of 1, 0.00 %MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
Encoding: task 1 of 1, 0.00 %MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
Encoding: task 1 of 1, 0.00 %MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
Encoding: task 1 of 1, 0.00 %MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
Encoding: task 1 of 1, 0.00 %MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
Encoding: task 1 of 1, 0.00 %MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
Encoding: task 1 of 1, 0.00 %MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
Encoding: task 1 of 1, 0.00 %MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
Encoding: task 1 of 1, 0.00 %MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
Encoding: task 1 of 1, 0.00 %MMBD: DEBUG: Code 6 at N/]<a7t6Mg,<W3.RHA:213133756
Encoding: task 1 of 1, 0.00 %MMBD: DEBUG: Code 6 at N/]<a7t6Mg,<W3.RHA:213133756
Encoding: task 1 of 1, 0.00 %MMBD: DEBUG: Code 0 at w5Ax5G:`w,]rt%SM:121262992
Encoding: task 1 of 1, 0.00 %MMBD: Saved BD+ dump file as xxx
MMBD: BD+ code processed, got 1 FUT(s) for 1 clip(s)
MMBD: Operation successfully completed
bdplus.c:353: BD+ active for clip 00308.m2ts
[15:10:40] sync: expecting 127456 video frames
[15:10:40] encx264: min-keyint: 24, keyint: 240
[15:10:40] encx264: encoding at constant RF 20.000000
[15:10:40] encx264: unparsed options: level=4.0:ref=1:8x8dct=0:weightp=1:subme=2:mixed-refs=0:trellis=0:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=10
x264 [info]: using SAR=45/53
x264 [info]: using cpu capabilities: ARMv8 NEON DotProd I8MM
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
[15:10:40] sync: first pts video is 0
[15:10:40] sync: "Chapter 1" (1) at frame 1 time 0
[15:10:40] sync: first pts audio 0x711100 is 0
[15:10:40] sync: first pts audio 0x1100 is 0
Encoding: task 1 of 1, 0.40 %[15:10:43] sync: first pts subtitle 0x1200 is 2132130
Encoding: task 1 of 1, 3.32 % (40.99 fps, avg 126.55 fps, ETA 00h16m14s)[15:11:14] sync: "Chapter 2" (2) at frame 4236 time 15897131
Encoding: task 1 of 1, 6.60 % (41.04 fps, avg 61.87 fps, ETA 00h32m04s)[15:12:56] sync: "Chapter 3" (3) at frame 8426 time 31625343
Encoding: task 1 of 1, 10.85 % (40.74 fps, avg 51.75 fps, ETA 00h36m36s)[15:15:07] sync: "Chapter 4" (4) at frame 13839 time 51944392
Encoding: task 1 of 1, 14.39 % (48.03 fps, avg 48.71 fps, ETA 00h37m20s)[15:16:56] sync: "Chapter 5" (5) at frame 18348 time 68870051
Encoding: task 1 of 1, 16.07 % (43.55 fps, avg 48.69 fps, ETA 00h36m37s)[h264 @ 0x121e12a00] concealing 1188 DC, 1188 AC, 1188 MV errors in P frame
[h264 @ 0x121e1b380] concealing 2736 DC, 2736 AC, 2736 MV errors in B frame
Encoding: task 1 of 1, 16.08 % (35.68 fps, avg 48.61 fps, ETA 00h36m40s)[h264 @ 0x121e2c680] concealing 1976 DC, 1976 AC, 1976 MV errors in B frame
[h264 @ 0x121e0a020] concealing 1356 DC, 1356 AC, 1356 MV errors in B frame
[h264 @ 0x121e12a00] error while decoding MB 77 18, bytestream -9
[h264 @ 0x121e12a00] concealing 3459 DC, 3459 AC, 3459 MV errors in P frame
Encoding: task 1 of 1, 16.10 % (35.68 fps, avg 48.61 fps, ETA 00h36m40s)[h264 @ 0x121e23d00] top block unavailable for requested intra mode -1
[h264 @ 0x121e23d00] error while decoding MB 51 34, bytestream 56208
[h264 @ 0x121e23d00] concealing 3665 DC, 3665 AC, 3665 MV errors in P frame
[h264 @ 0x121e35000] left block unavailable for requested intra4x4 mode -1
[h264 @ 0x121e35000] error while decoding MB 0 19, bytestream 65164
[h264 @ 0x121e1b380] concealing 2060 DC, 2060 AC, 2060 MV errors in B frame
[h264 @ 0x121e23d00] concealing 1043 DC, 1043 AC, 1043 MV errors in P frame
[h264 @ 0x121e35000] concealing 2040 DC, 2040 AC, 2040 MV errors in P frame
[h264 @ 0x121e23d00] left block unavailable for requested intra mode
[h264 @ 0x121e23d00] error while decoding MB 0 9, bytestream 27052
[h264 @ 0x121e0a020] concealing 1817 DC, 1817 AC, 1817 MV errors in B frame
[h264 @ 0x121e23d00] concealing 2600 DC, 2600 AC, 2600 MV errors in P frame
[h264 @ 0x121e2c680] concealing 747 DC, 747 AC, 747 MV errors in B frame
Encoding: task 1 of 1, 16.11 % (35.68 fps, avg 48.61 fps, ETA 00h36m40s)[h264 @ 0x121e23d00] concealing 1209 DC, 1209 AC, 1209 MV errors in P frame
... continues with errors as it goes forward ...
Woodstock
Posts: 10890
Joined: Sun Jul 24, 2011 11:21 pm

Re: Issue - BD+ FUTs to HandbrakeCLI using libmmbd

Post by Woodstock »

Have you tried running the rip and the encode separately? That way, you can see the errors that MakeMKV is encountering.

It may just be a spot on the disk that can't be read until it is cleaned.

Also, unless you are REALLY tight on disk space, it is much faster to extract the disk contents to MKV files before you turn handbrake loose on it. You'll find that extracting the contents can put you several disks ahead of handbrake in short order, unless you're too close on available disk space.
Post Reply