mirror of
https://github.com/KrumpetPirate/AAXtoMP3.git
synced 2025-07-01 00:47:31 +02:00
Added checks for ffmpeg and ffprobe.
This commit is contained in:
25
AAXtoMP3
25
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
|
||||
|
Reference in New Issue
Block a user