Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HandBrakeCLI not available #302

Open
DrakeSeven opened this issue Dec 1, 2019 · 5 comments
Open

HandBrakeCLI not available #302

DrakeSeven opened this issue Dec 1, 2019 · 5 comments
Assignees

Comments

@DrakeSeven
Copy link

I have installed dependencies with Homebrew 2.2.0.

However, I get the following error when I run transcode-video:
user$ transcode-video --scan /Volumes/BLURAY_DISC
/usr/local/bin/transcode-video: HandBrakeCLI not available

I have installed both the Formula handbrake 1.3.0 and the Cask handbrake 1.2.2.

@lisamelton lisamelton self-assigned this Dec 1, 2019
@lisamelton
Copy link
Owner

lisamelton commented Dec 1, 2019

@DrakeSeven Sorry you're having this problem. It appears that HandBrakeCLI cannot be found in your $PATH. Which is peculiar because Homebrew should take care of that.

BTW, don't install both the regular and Cask formula for handbrake.

Can you paste in the output these commands here?

which HandBrakeCLI

... and:

brew list handbrake

Thanks.

@DrakeSeven
Copy link
Author

DrakeSeven commented Dec 2, 2019 via email

@lisamelton
Copy link
Owner

@DrakeSeven It's possible there could be a conflict installing both the command line and GUI app packages especially since they appear to be different versions.

You would probably be better off removing both versions that the installed via Homebrew and just download and install them manually from the images provided on the HandBrake website. I was going to recommend you do that anyway since other users are reporting a problem with the current version of HandBrakeCLI provided by Homebrew. And doing a manual download and install seems to fix that.

Of course, if you install HandBrakeCLI manually, you'll need to also make sure it's in your $PATH. A good place to install it is simply to place the downloaded version in /usr/local/bin.

I'm not sure what to do about the diagnostic output of brew doctor though. I've never seen that problem before.

@kvanh
Copy link

kvanh commented Dec 2, 2019

Here's how I handle HandBrakeCLI:

  • Create a folder in my home directory called Applications
  • Create a sub-folder under that called HandBrakeCLI
  • Download HandBrake CLI dmg from handbrake.fr (usually a nightly build but probably not recommended)
  • Open the dmg, create a folder in the HandBrakeCLI named for the build date (or just download date)
  • Copy everything from the dmg to the dated folder I created
  • Open Terminal
  • If I'm updating an already installed one I do:
    • rm /usr/local/bin/HandBrakeCLI
  • Then for both 1st time installs and updates:
    • ln -s ~/Applications/HandBrakeCLI/DATED-FOLDER/HandBrakeCLI /usr/local/bin/HandBrakeCLI
  • Test by typing: HandBrakeCLI --version
  • On Catalina you will get an error about being unable to detect malware
    • Open System Preferences goto Security & Privacy, there will be a prompt about HandBrakeCLI in the General tab window, say you want to allow it to Open.

Because I frequently use nightly builds this lets me add new ones and just update the softlink to point to the version I want. If I want to go back to a previous version, just update the softlink again.

If you've already installed the home-brew version you may need to delete their shortcut first. I think they shortcut everything into /usr/local/bin but I'm not for sure on HandBrakeCLI as I've never installed the home-brew version.

I usually install the GUI version as well but not the nightly build, I install it in the normal /Applications folder. Seems to work dual-installed with what I do above.

@lisamelton
Copy link
Owner

@DrakeSeven Is this still a problem for you?

And many thanks to @kvanh for his awesome comment!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants