Unable to read DVD from CLI but works from GUI

Discussion of the HandBrake command line interface (CLI)
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
kdx7214
Posts: 10
Joined: Fri Jun 12, 2015 1:45 am

Unable to read DVD from CLI but works from GUI

Post by kdx7214 »

Description of problem or question:
I have a script I wrote that lets me rip a movie. I've recently updated to the 1.7.0 version of HandBrakeCLI and suddenly it's broken. I've gone through the docs and for the life of me I can't find what's wrong. It's about as simple a command as you can ask for. The same disk works just fine from the GUI. I use AnyDVD so the disk should show as completely unencrypted no matter what (e.g. decss shouldn't be required).

Steps to reproduce the problem (If Applicable):

handbrakecli -i E:\ -t 1 -o "d:\test.mkv" -f mkv -e nvenc_h265 -q 18 -a 1 -E eac3 --subtitle 2



HandBrake version (e.g., 1.0.0):

1.7.0



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

Windows 11


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

Code: Select all


C:\Handbrake>handbrakecli -i E:\ -t 1  -o "d:\test.mkv" -f mkv -e nvenc_h265 -q 18 -a 1 -E eac3 --subtitle 2

[17:06:30] Compile-time hardening features are enabled
[17:06:30] qsv: not available on this system
[17:06:30] nvenc: version 12.1 is available
[17:06:30] nvdec: is not compiled into this build
[17:06:30] CUDA Version: 7.5
[17:06:30] vcn: not available on this system
[17:06:30] hb_init: starting libhb thread
[17:06:30] thread 2 started ("libhb")
HandBrake 1.7.0 (2023111500) - MinGW x86_64 - https://handbrake.fr
32 CPUs detected
Opening E:\...
[17:06:30] CPU: Unknown
[17:06:30]  - logical processor count: 32
[17:06:30] Intel Quick Sync Video support: no
[17:06:30] hb_scan: path=E:\, title_index=1
src/libbluray/disc/disc.c:437: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:437: error opening file BDMV\BACKUP\index.bdmv
[17:06:30] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdvdread: Could not open input:
libdvdread: Can't open E:\ for reading
libdvdnav: vm: failed to open/read the DVD
[17:06:30] dvd: not a dvd - trying as a stream/file instead
[17:06:30] Excluding 0 file extension(s) from scan.
[17:06:30] hb_stream_open: open E:\ failed
[17:06:30] scan: unrecognized file type
[17:06:30] libhb: scan thread found 0 valid title(s)
No title found.

HandBrake has exited.
Woodstock
Veteran User
Posts: 4623
Joined: Tue Aug 27, 2013 6:39 am

Re: Unable to read DVD from CLI but works from GUI

Post by Woodstock »

Apparently, you have installed a third-party DVD reading library, but have not figured out how to get the non-GUI command line program to use it. Did the third-party vendor not include those instructions?
kdx7214
Posts: 10
Joined: Fri Jun 12, 2015 1:45 am

Re: Unable to read DVD from CLI but works from GUI

Post by kdx7214 »

Woodstock wrote: Fri Dec 08, 2023 12:08 am Apparently, you have installed a third-party DVD reading library, but have not figured out how to get the non-GUI command line program to use it. Did the third-party vendor not include those instructions?
This works just fine with an older version of HandBrakeCLI on the system as is. I suspect it's just a command line issue, I just don't know what it could be.
kdx7214
Posts: 10
Joined: Fri Jun 12, 2015 1:45 am

Re: Unable to read DVD from CLI but works from GUI

Post by kdx7214 »

Update: For some reason HandbrakeCLI thinks it needs libdvdcss-2.dll in order to decrypt a non-encrypted disk. I've now tried this with a disk made with a home video that is guaranteed not encrypted and it does the same thing. Put the DLL in the handbrake CLI folder and it works. So HB is not checking to see if it needs decss or not, it just assumes it does and aborts.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5728
Joined: Sat Feb 09, 2008 7:21 pm

Re: Unable to read DVD from CLI but works from GUI

Post by JohnAStebbins »

kdx7214 wrote: Fri Dec 08, 2023 2:22 am Update: For some reason HandbrakeCLI thinks it needs libdvdcss-2.dll in order to decrypt a non-encrypted disk. I've now tried this with a disk made with a home video that is guaranteed not encrypted and it does the same thing. Put the DLL in the handbrake CLI folder and it works. So HB is not checking to see if it needs decss or not, it just assumes it does and aborts.
If the disc failed to be read without dvdcss and succeeded with dvdcss, then the disc is encrypted. Most home DVD creation software creates encrypted discs.
Post Reply