Become a MacRumors Supporter for $25/year with no ads, private forums, and more!

snourse

macrumors newbie
Original poster
Jul 22, 2002
26
8
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
 

jerryk

Contributor
Nov 3, 2011
7,037
3,921
SF Bay Area
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.
 

snourse

macrumors newbie
Original poster
Jul 22, 2002
26
8
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.
 

jdb8167

macrumors 68020
Nov 17, 2008
2,493
1,784
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: 434

kws13

macrumors newbie
Feb 22, 2021
2
0
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
 

jdb8167

macrumors 68020
Nov 17, 2008
2,493
1,784
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.
 

08380728

Cancelled
Aug 20, 2007
423
164
Go to Handbrake forum and post your issues there, you’re wasting your time coming here asking questions.
 

kws13

macrumors newbie
Feb 22, 2021
2
0
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!
 

squirrelist

macrumors regular
Jun 27, 2006
129
106
San Francisco, CA
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.
 

paulcone

macrumors newbie
Nov 26, 2008
6
0
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.
 

matrix07

macrumors 604
Jun 24, 2010
7,415
4,212
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?
 

jdb8167

macrumors 68020
Nov 17, 2008
2,493
1,784
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
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.