mirror of
https://github.com/KrumpetPirate/AAXtoMP3.git
synced 2024-11-18 03:08:57 +01:00
Added checks for ffmpeg and ffprobe.
This commit is contained in:
parent
03f1a58638
commit
1af3f0ebcc
25
AAXtoMP3
25
AAXtoMP3
@ -146,6 +146,31 @@ if ! [[ $(type -P "$GREP") ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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.
|
# Detect if we need mp4art for cover additions to m4a & m4b files.
|
||||||
if [[ "x${extension}" == "xm4a" && "x$(type -P mp4art)" == "x" ]]; then
|
if [[ "x${extension}" == "xm4a" && "x$(type -P mp4art)" == "x" ]]; then
|
||||||
|
37
README.md
37
README.md
@ -111,6 +111,43 @@ __Note:__ At least one of the above must be exist. The code must also match the
|
|||||||
* The default codec is mp3
|
* The default codec is mp3
|
||||||
* The default output is by chapter.
|
* 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
|
## Anti-Piracy Notice
|
||||||
Note that this project **does NOT ‘crack’** the DRM. It simply allows the user to
|
Note that this project **does NOT ‘crack’** the DRM. It simply allows the user to
|
||||||
use their own encryption key (fetched from Audible servers) to decrypt the
|
use their own encryption key (fetched from Audible servers) to decrypt the
|
||||||
|
Loading…
Reference in New Issue
Block a user