Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

snourse

macrumors member
Original poster
Jul 22, 2002
43
20
Hi-

I'm testing out the Handbrake 1.4 beta for M1 Macs and can't seem to get it to recognize/use libdvdcss properly when trying to archive my DVD videos.

I've installed the library via Homebrew - (I've tried it with the Arm64 version and the x64 version)

If I run the release version of Handbrake (Intel) or the beta in Rosetta it can properly transcode the videos.
If I run the beta in native mode it doesn't recognize the library and won't properly transcode the videos.

Is there a trick to getting native apps like Handbrake to recognize command line libraries like this?
Thanks in advance!



% brew install libdvdcss
---
==> Pouring libdvdcss-1.4.2.arm64_big_sur.bottle.tar.gz
 
Hi-

I'm testing out the Handbrake 1.4 beta for M1 Macs and can't seem to get it to recognize/use libdvdcss properly when trying to archive my DVD videos.

I've installed the library via Homebrew - (I've tried it with the Arm64 version and the x64 version)

If I run the release version of Handbrake (Intel) or the beta in Rosetta it can properly transcode the videos.
If I run the beta in native mode it doesn't recognize the library and won't properly transcode the videos.

Is there a trick to getting native apps like Handbrake to recognize command line libraries like this?
Thanks in advance!



% brew install libdvdcss
---
==> Pouring libdvdcss-1.4.2.arm64_big_sur.bottle.tar.gz

I don't use these tools, but if you suspect X86 versus M1 terminal issues, make a second terminal window (go to the 1st terminal window and select duplicate) and set the new terminal window to use Rosetta2 and save it with a new name. Then when you launch any program at the command line it will use Rosseta2. That seemed to have fixed a lot of my issues with my ML toolchain.
 
I don't use these tools, but if you suspect X86 versus M1 terminal issues, make a second terminal window (go to the 1st terminal window and select duplicate) and set the new terminal window to use Rosetta2 and save it with a new name. Then when you launch any program at the command line it will use Rosseta2. That seemed to have fixed a lot of my issues with my ML toolchain.
Thanks- but I'm running Handbrake as GUI not as CLI. There doesn't seem to be a way to get it to choose where the libraries are found.

I setup Homebrew as described here:https://soffes.blog/homebrew-on-apple-silicon

Homebrew builds in the following locations- Intel in /usr/local/lib, Apple /opt/homebrew/lib -- the library files are actually aliases to other files organized in HomeBrew's directory structure.

I tried copying the aliases from the Apple Silicon directory to the intel but that didn't work.
 
Hi-

I'm testing out the Handbrake 1.4 beta for M1 Macs and can't seem to get it to recognize/use libdvdcss properly when trying to archive my DVD videos.

I've installed the library via Homebrew - (I've tried it with the Arm64 version and the x64 version)

If I run the release version of Handbrake (Intel) or the beta in Rosetta it can properly transcode the videos.
If I run the beta in native mode it doesn't recognize the library and won't properly transcode the videos.

Is there a trick to getting native apps like Handbrake to recognize command line libraries like this?
Thanks in advance!



% brew install libdvdcss
---
==> Pouring libdvdcss-1.4.2.arm64_big_sur.bottle.tar.gz
I just tested the Handbrake Beta and libdvdcss and it worked fine. I used MacPorts to get the libdvdcss library so I had to copy the library to /usr/local/lib because MacPorts uses /opt/local/lib but other than that it was straightforward. I'm enclosing the library files in a .zip. Just unzip and copy them to /usr/local/lib and it should work.
 

Attachments

  • libdvdcss.zip
    50.9 KB · Views: 1,344
  • Like
Reactions: djarsky
I just tested the Handbrake Beta and libdvdcss and it worked fine. I used MacPorts to get the libdvdcss library so I had to copy the library to /usr/local/lib because MacPorts uses /opt/local/lib but other than that it was straightforward. I'm enclosing the library files in a .zip. Just unzip and copy them to /usr/local/lib and it should work.
Thanks for this - exactly what I was looking for.
But, on my new Mac mini M1 - I don't have a /usr/local/lib I have /usr/lib is that not the same for you?
Also, with the newer lock down on Mac security, I am unable to copy any files into the /usr/lib directory.

I tried using sudo cp… and also tried setting up and logging in as root - but I cannot copy the files anywhere into /usr/lib

Any suggestions please?

Thanks
 
Thanks for this - exactly what I was looking for.
But, on my new Mac mini M1 - I don't have a /usr/local/lib I have /usr/lib is that not the same for you?
Also, with the newer lock down on Mac security, I am unable to copy any files into the /usr/lib directory.

I tried using sudo cp… and also tried setting up and logging in as root - but I cannot copy the files anywhere into /usr/lib

Any suggestions please?

Thanks
You can just create the directory:

sudo mkdir -p /usr/local/lib

/usr/lib is probably write protected with SIP. Instead, create the directory and then sudo cp into the /usr/local/lib directory. Or use the Finder with shift-⌘-g and type in /usr/local/lib to open a window to copy the files. You should get prompted for a admin account when you do.
 
Go to Handbrake forum and post your issues there, you’re wasting your time coming here asking questions.
 
You can just create the directory:

sudo mkdir -p /usr/local/lib

/usr/lib is probably write protected with SIP. Instead, create the directory and then sudo cp into the /usr/local/lib directory. Or use the Finder with shift-⌘-g and type in /usr/local/lib to open a window to copy the files. You should get prompted for a admin account when you do.
Thanks jdb8167,
Worked a treat - thanks for taking the time to share your experience and help me get to the same working position.
Much appreciated!
 
For anyone else having trouble with this still, I found that Gatekeeper was getting in the way. As you may know, if an app isn't signed properly you have to launch it once by right clicking the .app file and choosing "Open" to get around Gatekeeper. What I didn't realize was that the .dylib files were also being blocked by Gatekeeper but I wasn't getting the warning. After I right clicked all of my .dylib files and chose open, only then was Handbrake able to use them properly.
 
For anyone else having trouble with this still, I found that Gatekeeper was getting in the way. As you may know, if an app isn't signed properly you have to launch it once by right clicking the .app file and choosing "Open" to get around Gatekeeper. What I didn't realize was that the .dylib files were also being blocked by Gatekeeper but I wasn't getting the warning. After I right clicked all of my .dylib files and chose open, only then was Handbrake able to use them properly.
This worked for me -- thank you! To clarify, after copying the library files posted above into /usr/local/lib, what I did was right-click the library files, and then choose Open with... Handbrake.
 
I'm testing out the Handbrake 1.4 beta for M1 Macs and can't seem to get it to recognize/use libdvdcss properly when trying to archive my DVD videos.
Silly question, how do you use Handbrake to "archive" DVD? I usually convert my DVD to mp4. Is there other ways?
 
Silly question, how do you use Handbrake to "archive" DVD? I usually convert my DVD to mp4. Is there other ways?
Generally when someone is talking archiving they mean to compress the DVD video with high quality but still smaller than a DVD 7 GB. Right now on Macs you should probably use the H.265 (x265) encoder with high quality. Handbrake is good for this as it supplies a load of options for compressing. The opposite of archival quality would be to use something like H.265 (Videotoolbox) which uses the lower quality hardware encoder on the M1. The hardware encoder is much faster.
 
  • Like
Reactions: matrix07
I installed libdvdcss with brew on my M1 mini and then symlinked the static and dynamic libs into /usr/local/lib. It didn't work with handbrake though for whatever reason.

So instead I just compiled libs from source like this:

1. Download official source code (I used version 1.4.3).
2. tar -xjf ./libdvdcss-1.4.3.tar.bz2
3. cd libdvdcss-1.4.3
4. ./configure --prefix=/usr/local
5. make
6. sudo make install

Worked fine with handbrake 1.4.2 (2021100300). In /usr/local/lib I now have this:

Code:
$ ls -ld /usr/local/lib/libdvd*
-rwxr-xr-x  1 root  admin   58686 Dec 11 11:01 libdvdcss.2.dylib
-rw-r--r--  1 root  admin  129464 Dec 11 11:01 libdvdcss.a
lrwxr-xr-x  1 root  admin      17 Dec 11 11:01 libdvdcss.dylib -> libdvdcss.2.dylib
-rwxr-xr-x  1 root  admin     936 Dec 11 11:01 libdvdcss.la
 
Silly question, how do you use Handbrake to "archive" DVD? I usually convert my DVD to mp4. Is there other ways?
If you are talking about making an image, i.e. a file that you can open with DVD Player and see the menu, commentary, etc. so that it looks like you actually have the physical DVD in a drive connected to your laptop - I don't know if you can do this with Handbrake. What I've used is Disk Utility, which comes with macOS. You can right-click on the dvd and select make image. That said, IDK if this works with copy protected DVDs. If you knew all of this, sorry to waste your time.

Ok, just did the Disk Utility thing is a copy protected DVD and of course it did not play correctly.
 
Last edited:
  • Like
Reactions: matrix07
I installed libdvdcss with brew on my M1 mini and then symlinked the static and dynamic libs into /usr/local/lib. It didn't work with handbrake though for whatever reason.

So instead I just compiled libs from source like this:

1. Download official source code (I used version 1.4.3).
2. tar -xjf ./libdvdcss-1.4.3.tar.bz2
3. cd libdvdcss-1.4.3
4. ./configure --prefix=/usr/local
5. make
6. sudo make install

Worked fine with handbrake 1.4.2 (2021100300). In /usr/local/lib I now have this:

Code:
$ ls -ld /usr/local/lib/libdvd*
-rwxr-xr-x  1 root  admin   58686 Dec 11 11:01 libdvdcss.2.dylib
-rw-r--r--  1 root  admin  129464 Dec 11 11:01 libdvdcss.a
lrwxr-xr-x  1 root  admin      17 Dec 11 11:01 libdvdcss.dylib -> libdvdcss.2.dylib
-rwxr-xr-x  1 root  admin     936 Dec 11 11:01 libdvdcss.la
Thank you for this. I'm guessing, but perhaps the brew build doesn't work on M1 processors?

Anyway, this worked for my M1 MBP (12.3.1 MacOS and same versions as above).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.