lisamelton / video_transcoding

Tools to transcode, inspect and convert videos.
MIT License
2.39k stars 160 forks source link

HandBrakeCLI not available #302

Open DrakeSeven opened 4 years ago

DrakeSeven commented 4 years ago

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 commented 4 years ago

@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 commented 4 years ago

Hi Don,

Thanks for your quick reply!

I use the Handbrake GUI (Cask) very frequently and I also wanted to use it via command line (Formula). That’s why I installed both. Do you think there could be a conflict?

Here is my Terminal: wolf$ which HandbrakeCLI wolf$ brew list handbrake /usr/local/Cellar/handbrake/1.3.0/bin/HandBrakeCLI

Seems that I have to add the path to HandBrakeCLI to my $PATH … wolf$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands wolf$

By the way: wolf$ brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: You have unlinked kegs in your Cellar. Leaving kegs unlinked can lead to build-trouble and cause brews that depend on those kegs to fail to run properly once built. Run brew link on these: mkvtoolnix handbrake wolf$

Best,

Wolf

On 01.12.2019, at 17:22, Don Melton notifications@github.com wrote:

@DrakeSeven https://github.com/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.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/donmelton/video_transcoding/issues/302?email_source=notifications&email_token=AF3C2XT2EY4ODSDIT7Z5PPLQWPQGBA5CNFSM4JTKRB4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFRNZ7I#issuecomment-560127229, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF3C2XRPMI7C6FRXYZBUFY3QWPQGBANCNFSM4JTKRB4A.

lisamelton commented 4 years ago

@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 commented 4 years ago

Here's how I handle HandBrakeCLI:

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 commented 4 years ago

@DrakeSeven Is this still a problem for you?

And many thanks to @kvanh for his awesome comment!