Encoding consistently fails prematurely

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.
Post Reply
DavidA
Posts: 3
Joined: Sat Apr 03, 2021 12:13 pm

Encoding consistently fails prematurely

Post by DavidA »

Description of problem or question:

I'm trying to rip a DVD with four TV shows of 12 minutes each. It's a kids TV show from the early nineties and it's actually on a DVD-R. Whichever episode I rip the encoding stops prematurely and the resulting video is 4:45 minutes long instead of 12, and it seems to be failing at the end of a chapter. It happens in whichever episode I choose and whichever DVD I choose. It happens from a disk image of the DVD too. Other DVD Rippers have been able to encode a full episode, but I prefer the quality of HandBrake.

Steps to reproduce the problem (If Applicable):

[Removed] if you want to try it for yourself.

HandBrake version (e.g., 1.0.0):

Version 1.4.0-beta.1 (2020111100) but happens with earlier versions too.

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

Big Sur. 11.2.3.

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

Code: Select all

[13:27:58] macgui: Handbrake Version: 1.4.0-beta.1 (2020111100)
[13:28:21] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/davida/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[13:28:21] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/davida/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[13:28:21] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/davida/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[13:28:21] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/davida/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[13:28:21] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/davida/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[13:28:21] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/davida/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[13:28:21] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/davida/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[13:28:21] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/davida/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[13:28:21] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/davida/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[13:28:21] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/davida/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[13:28:21] macgui: fr.handbrake.HandBrakeXPCService scanning specifically for title: 2
[13:28:21] CPU: 
[13:28:21]  - logical processor count: 8
[13:28:21] hb_scan: path=/Users/davida/Documents/Come Outside - Natural Materials.cdr, title_index=2
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list((null)) failed
[13:28:21] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdnav: DVD Title: DVDVolume
libdvdnav: DVD Serial Number: c98fe2f0        
libdvdnav: DVD Title (Alternative): DVDVolume
libdvdnav: DVD disk reports itself with Region mask 0x00400000. Regions: 1 2 3 4 5 6 8
libdvdread: Encrypted DVD support unavailable.
[13:28:21] scan: DVD has 20 title(s)
[13:28:21] scan: scanning title 2
[13:28:21] scan: duration is 00:14:02 (842640 ms)
[13:28:21] pgc_id: 1, pgn: 1: pgc: 0x12201b430
[13:28:21] scan: checking audio 1
[13:28:21] scan: id=0x80bd, lang=Unknown (AC3), 3cc=und ext=0
[13:28:21] scan: checking subtitle 1
[13:28:21] scan: id=0x20bd, lang=Unknown (4:3) [VOBSUB], 3cc=und ext=0
[13:28:21] scan: title 2 has 5 chapters
[13:28:21] scan: chap 1, 28520 ms
[13:28:21] scan: chap 2, 257440 ms
[13:28:21] scan: chap 3, 307720 ms
[13:28:21] scan: chap 4, 114320 ms
[13:28:21] scan: chap 5, 134640 ms
[13:28:21] scan: aspect = 4:3
[13:28:21] scan: decoding previews for title 2
libdvdnav: DVD disk reports itself with Region mask 0x00400000. Regions: 1 2 3 4 5 6 8
[13:28:21] scan: title angle(s) 1
[13:28:21] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=192000 Unknown (AC3) (2.0 ch) (192 kbps)
[13:28:21] scan: 10 previews, 720x576, 25.000 fps, autocrop = 2/0/10/8, aspect 4:3, PAR 16:15
[13:28:21] libhb: scan thread found 1 valid title(s)
[13:28:21] macgui: fr.handbrake.HandBrakeXPCService scan done
[13:28:21] Starting work at: Sat Apr  3 13:28:21 2021

[13:28:21] 1 job(s) to process
[13:28:21] macgui: fr.handbrake.HandBrakeXPCService started encoding DVDVolume.mp4
[13:28:21] macgui: fr.handbrake.HandBrakeXPCService with preset Fast 576p25
[13:28:21] Starting Task: Subtitle Scan
[13:28:21] job configuration:
[13:28:21]  * source
[13:28:21]    + /Users/davida/Documents/Come Outside - Natural Materials.cdr
[13:28:21]    + title 2, chapter(s) 1 to 5
[13:28:21]  * destination
[13:28:21]    + /Users/davida/Library/Containers/fr.handbrake.HandBrake/Data/Movies/DVDVolume.mp4
[13:28:21]    + container: MPEG-4 (libavformat)
[13:28:21]      + align initial A/V stream timestamps
[13:28:21]      + chapter markers
[13:28:21]  * video track
[13:28:21]    + decoder: mpeg2video
[13:28:21]      + bitrate 200 kbps
[13:28:21]    + filters
[13:28:21]      + 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)
[13:28:21]      + Decomb (mode=39)
[13:28:21]      + Framerate Shaper (mode=2:rate=27000000/1080000)
[13:28:21]        + frame rate: 25.000 fps -> peak rate limited to 25.000 fps
[13:28:21]      + Crop and Scale (width=702:height=574:crop-top=2:crop-bottom=0:crop-left=10:crop-right=8)
[13:28:21]        + source: 720 * 576, crop (2/0/10/8): 702 * 574, scale: 702 * 574
[13:28:21]    + Output geometry
[13:28:21]      + storage dimensions: 702 x 574
[13:28:21]      + pixel aspect ratio: 16 : 15
[13:28:21]      + display dimensions: 748 x 574
[13:28:21]  * Foreign Audio Search: Render/Burn-in, Forced Only
[13:28:21]    + subtitle, Unknown (4:3) [VOBSUB] (track 0, id 0x20bd, Picture)
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdnav: DVD Title: DVDVolume
libdvdnav: DVD Serial Number: c98fe2f0        
libdvdnav: DVD Title (Alternative): DVDVolume
libdvdnav: DVD disk reports itself with Region mask 0x00400000. Regions: 1 2 3 4 5 6 8
libdvdread: Encrypted DVD support unavailable.
libdvdnav: DVD disk reports itself with Region mask 0x00400000. Regions: 1 2 3 4 5 6 8
[13:28:21] sync: expecting 21066 video frames
[13:28:21] reader: done. 1 scr changes
[13:28:21] work: average encoding speed for job is 0.000000 fps
[13:28:21] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[13:28:21] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[13:28:21] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[13:28:21] vfr: lost time: 0 (0 frames)
[13:28:21] vfr: gained time: 0 (0 frames) (0 not accounted for)
[13:28:22] mpeg2video-decoder done: 0 frames, 1 decoder errors
[13:28:22] sync: got 0 frames, 21066 expected
[13:28:22] Subtitle track 0 (id 0x20bd) 'Unknown (4:3) [VOBSUB]': 40 hits (0 forced)
[13:28:22] No candidate detected during subtitle scan
[13:28:22] Starting Task: Encoding Pass
[13:28:22] job configuration:
[13:28:22]  * source
[13:28:22]    + /Users/davida/Documents/Come Outside - Natural Materials.cdr
[13:28:22]    + title 2, chapter(s) 1 to 5
[13:28:22]  * destination
[13:28:22]    + /Users/davida/Library/Containers/fr.handbrake.HandBrake/Data/Movies/DVDVolume.mp4
[13:28:22]    + container: MPEG-4 (libavformat)
[13:28:22]      + align initial A/V stream timestamps
[13:28:22]      + chapter markers
[13:28:22]  * video track
[13:28:22]    + decoder: mpeg2video
[13:28:22]      + bitrate 200 kbps
[13:28:22]    + filters
[13:28:22]      + 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)
[13:28:22]      + Decomb (mode=39)
[13:28:22]      + Framerate Shaper (mode=2:rate=27000000/1080000)
[13:28:22]        + frame rate: 25.000 fps -> peak rate limited to 25.000 fps
[13:28:22]      + Crop and Scale (width=702:height=574:crop-top=2:crop-bottom=0:crop-left=10:crop-right=8)
[13:28:22]        + source: 720 * 576, crop (2/0/10/8): 702 * 574, scale: 702 * 574
[13:28:22]    + Output geometry
[13:28:22]      + storage dimensions: 702 x 574
[13:28:22]      + pixel aspect ratio: 16 : 15
[13:28:22]      + display dimensions: 748 x 574
[13:28:22]    + encoder: H.264 (libx264)
[13:28:22]      + preset:  fast
[13:28:22]      + profile: main
[13:28:22]      + level:   3.1
[13:28:22]      + quality: 20.00 (RF)
[13:28:22]      + color profile: 5-5-5
[13:28:22]  * audio track 1
[13:28:22]    + decoder: Unknown (AC3) (2.0 ch) (192 kbps) (track 1, id 0x80bd)
[13:28:22]      + bitrate: 192 kbps, samplerate: 48000 Hz
[13:28:22]    + mixdown: Stereo
[13:28:22]    + encoder: AAC (Apple AudioToolbox)
[13:28:22]      + bitrate: 160 kbps, samplerate: 48000 Hz
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdnav: DVD Title: DVDVolume
libdvdnav: DVD Serial Number: c98fe2f0        
libdvdnav: DVD Title (Alternative): DVDVolume
libdvdnav: DVD disk reports itself with Region mask 0x00400000. Regions: 1 2 3 4 5 6 8
libdvdread: Encrypted DVD support unavailable.
libdvdnav: DVD disk reports itself with Region mask 0x00400000. Regions: 1 2 3 4 5 6 8
[13:28:22] sync: expecting 21066 video frames
[13:28:22] encx264: encoding at constant RF 20.000000
[13:28:22] encx264: unparsed options: level=3.1:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=14000:vbv-maxrate=14000:rc-lookahead=30
x264 [info]: using SAR=16/15
x264 [info]: using cpu capabilities: ARMv8 NEON
x264 [info]: profile Main, level 3.1, 4:2:0, 8-bit
[13:28:22] sync: first pts video is 0
[13:28:22] sync: "Chapter 1" (1) at frame 1 time 0
[13:28:22] sync: first pts audio 0x80bd is 0
[13:28:25] sync: "Chapter 2" (2) at frame 714 time 2566800
[13:28:58] reader: done. 1 scr changes
[13:28:59] work: average encoding speed for job is 192.059265 fps
[13:28:59] comb detect: heavy 6355 | light 490 | uncombed 271 | total 7116
[13:28:59] decomb: deinterlaced 6355 | blended 490 | unfiltered 271 | total 7116
[13:28:59] vfr: 7116 frames output, 0 dropped and 0 duped for CFR/PFR
[13:28:59] vfr: lost time: 0 (0 frames)
[13:28:59] vfr: gained time: 0 (0 frames) (0 not accounted for)
[13:28:59] ac3-decoder done: 8895 frames, 0 decoder errors
[13:28:59] mpeg2video-decoder done: 7116 frames, 0 decoder errors
[13:28:59] sync: got 7116 frames, 21066 expected
[13:28:59] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x264 [info]: frame I:58    Avg QP:18.08  size: 70123
x264 [info]: frame P:1922  Avg QP:21.26  size: 27410
x264 [info]: frame B:5136  Avg QP:23.94  size:  8402
x264 [info]: consecutive B-frames:  2.8%  2.1%  2.6% 92.5%
x264 [info]: mb I  I16..4: 16.5%  0.0% 83.5%
x264 [info]: mb P  I16..4:  2.9%  0.0%  8.9%  P16..4: 40.6% 27.4% 16.5%  0.0%  0.0%    skip: 3.6%
x264 [info]: mb B  I16..4:  4.6%  0.0%  1.3%  B16..8: 28.7% 11.3%  1.2%  direct:33.5%  skip:19.5%  L0:40.9% L1:42.0% BI:17.1%
x264 [info]: coded y,uvDC,uvAC intra: 58.8% 93.5% 67.9% inter: 29.9% 68.0% 26.1%
x264 [info]: i16 v,h,dc,p: 25% 33% 22% 20%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 21% 16%  5% 10%  8%  9%  6%  8%
x264 [info]: i8c dc,h,v,p: 55% 20% 17%  8%
x264 [info]: Weighted P-Frames: Y:4.3% UV:3.5%
x264 [info]: ref P L0: 63.2% 36.8%
x264 [info]: ref B L0: 78.4% 21.6%
x264 [info]: ref B L1: 94.2%  5.8%
x264 [info]: kb/s:2807.83
[13:28:59] mux: track 0, 7116 frames, 99900232 bytes, 2807.37 kbps, fifo 2048
[13:28:59] mux: track 1, 13345 frames, 5891495 bytes, 165.56 kbps, fifo 4096
[13:28:59] Finished work at: Sat Apr  3 13:28:59 2021

[13:28:59] libhb: work result = 0
[13:28:59] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/davida/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[13:28:59] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/davida/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[13:28:59] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/davida/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[13:28:59] macgui: Queue Done, there are no more pending encodes
[13:28:59] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/davida/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[13:28:59] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/davida/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[13:28:59] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/davida/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[13:28:59] macgui: fr.handbrake.HandBrakeXPCService work done
Woodstock
Veteran User
Posts: 4099
Joined: Tue Aug 27, 2013 6:39 am

Re: Encoding consistently fails prematurely

Post by Woodstock »

The logs show problems reading the source (not getting the number of frames expected). What are you using to decrypt it, and are you using a physical source, or a disk image?

The "fail at the end" might be when handbrake rewrites the MP4 index, and hits a permission error (you can write, but not change a file).
DavidA
Posts: 3
Joined: Sat Apr 03, 2021 12:13 pm

Re: Encoding consistently fails prematurely

Post by DavidA »

Thank you.

The log was from a .CDR file which I made from the DVD using Disk Utility. The same issue occurs on the original DVD too.

The DVD was already decrypted as it was a copy of an original. Unless it didn't have any copy protection in the first place.

Do you think it could be fixed by changing permissions?
rollin_eng
Veteran User
Posts: 3919
Joined: Wed May 04, 2011 11:06 pm

Re: Encoding consistently fails prematurely

Post by rollin_eng »

Try ripping with makemkv first.
Woodstock
Veteran User
Posts: 4099
Joined: Tue Aug 27, 2013 6:39 am

Re: Encoding consistently fails prematurely

Post by Woodstock »

Copying a DVD to an ISO file doesn't remove encryption, unless you have a special utility doing it. I occasionally use BDlot (very old program, no longer supported) to make "decrypted ISO" files. But, because I usually use MakeMKV, I usually just told it to make a standard ISO copy, and let MakeMKV remove the encryption.

It may be that the copy "wrote zeros" when it found errors on the DVD, which is why handbrake can't find DVD-like data in some places.

As for the permissions - I can't help you there, because I'm not a Mac user. I do know that recent changes on BOTH MacOS and Windows have made "changing" a file need different permissions than "writing" or "reading", to slow down ransomware.
DavidA
Posts: 3
Joined: Sat Apr 03, 2021 12:13 pm

Re: Encoding consistently fails prematurely

Post by DavidA »

I don't suppose there's copy protection on the DVD since it's a DVD-R.

MakeMKV is failing too now.

I'm thinking that maybe the disk is slightly corrupted and other DVD rippers are more tolerant. I'll try some more things.

Thank you.
Post Reply