diff --git a/AAXtoMP3 b/AAXtoMP3 index 9761f38..177368a 100755 --- a/AAXtoMP3 +++ b/AAXtoMP3 @@ -146,6 +146,31 @@ if ! [[ $(type -P "$GREP") ]]; then exit 1 fi +# ----- +# Detect ffmpeg and ffprobe +if [[ "x$(type -P ffmpeg)" == "x" ]]; then + echo "ERROR ffmpeg was not found on your env PATH variable" + echo "Without it, this script will break." + echo "INSTALL:" + echo "MacOS: brew install ffmpeg" + echo "Ubuntu: sudo apt-get update; sudo apt-get install ffmpeg libav-tools x264 x265" + echo "RHEL: yum install ffmpeg" + exit 1 +fi + +# ----- +# Detect ffmpeg and ffprobe +if [[ "x$(type -P ffprobe)" == "x" ]]; then + echo "ERROR ffprobe was not found on your env PATH variable" + echo "Without it, this script will break." + echo "INSTALL:" + echo "MacOS: brew install ffmpeg" + echo "Ubuntu: sudo apt-get update; sudo apt-get install ffmpeg libav-tools x264 x265" + echo "RHEL: yum install ffmpeg" + exit 1 +fi + + # ----- # Detect if we need mp4art for cover additions to m4a & m4b files. if [[ "x${extension}" == "xm4a" && "x$(type -P mp4art)" == "x" ]]; then diff --git a/README.md b/README.md index b31a6f0..2776bea 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,43 @@ __Note:__ At least one of the above must be exist. The code must also match the * Default out put directory is the base directoy of each file listed. Plus the genre, Artist and Title of the Audio Book. * The default codec is mp3 * The default output is by chapter. + +### Installing Dependencies. +#### FFMPEG,FFPROBE +__Ubuntu, Linux Mint, Debian__ +``` +sudo apt-get update +sudo apt-get install ffmpeg libav-tools x264 x265 +``` +__CentOS, RHEL & Fedora__ +``` +# CentOS/RHEL and Fedora users make sure that you have enabled atrpms repository in system. Let’s begin installing FFmpeg as per your operating system. +yum install ffmpeg + +``` +__MacOS__ +``` +brew install ffmpeg +``` + +#### mp4art +_Note: This is an optional dependency._ + +__Ubuntu, Linux Mint, Debian__ +``` +sudo apt-get update +sudo apt-get install mp4v2-utils +``` +__CentOS, RHEL & Fedora__ +``` +# CentOS/RHEL and Fedora users make sure that you have enabled atrpms repository in system. Let’s begin installing FFmpeg as per your operating system. +yum install mp4v2-utils + +``` +__MacOS__ +``` +brew install mp4v2 +``` ## Anti-Piracy Notice Note that this project **does NOT ‘crack’** the DRM. It simply allows the user to