Skip to content

Commit

Permalink
fixed #26 - updated homebrew instructions and brewfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas committed Dec 10, 2019
1 parent b807e86 commit ea6ccf5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 10 deletions.
40 changes: 31 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,25 +181,47 @@ After this the custom build should be integrated into the docker image.

### MacOS

```
# install ffmpeg with best audio quality options
brew tap varenc/ffmpeg
brew tap-pin varenc/ffmpeg
brew uninstall ffmpeg
brew install ffmpeg --with-chromaprint --with-fdk-aac
On MacOS you may use the awesome package manager `brew` to install `m4b-tool`.

#### Recommended: High audio quality, sort tagging

# tap m4b-tool repository
Getting best audio quality requires some additional effort. You have to *recompile* `ffmpeg` with the non-free `libfdk_aac` codec. This requires uninstalling the default `ffmpeg` package if installed, since `brew` dropped the possibility for *extra options*. There is no official `ffmpeg-with-options` repository, but a pretty decent `tap`, that you could use to save time.

```
# FIRST INSTALL ONLY: if not already done, remove existing ffmpeg with default audio quality options
# check for ffmpeg with libfdk and uninstall if libfdk is not already available
[ -x "$(which ffmpeg)" ] && (ffmpeg -hide_banner -codecs 2>&1 | grep libfdk || brew uninstall ffmpeg)
# tap required repositories
brew tap sandreas/tap
brew tap-pin sandreas/tap
brew tap homebrew-ffmpeg/ffmpeg
# check available ffmpeg options and which you would like to use
brew options homebrew-ffmpeg/ffmpeg/ffmpeg
# install ffmpeg with at least libfdk_aac for best audio quality
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-fdk-aac
# install m4b-tool
brew install m4b-tool
brew install sandreas/tap/m4b-tool
# check installed m4b-tool version
m4b-tool --version
```

#### Stick to defaults (acceptable audio quality, no sort tagging)
If the above did not work for you or you would just to checkout `m4b-tool` before using it in production, you might want to try the *quick and easy* way. It will work, but you get lower audio quality and there is **no support for sort tagging**.

```
# tap m4b-tool repository
brew tap sandreas/tap
# install dependencies
brew install ffmpeg fdk-aac-encoder mp4v2
# install m4b-tool with acceptable audio quality and no sort tagging
brew install --ignore-dependencies sandreas/tap/m4b-tool
```

### Ubuntu

Expand Down
2 changes: 1 addition & 1 deletion homebrew-tap

0 comments on commit ea6ccf5

Please # to comment.