mirror of
https://github.com/KrumpetPirate/AAXtoMP3.git
synced 2024-11-18 11:18:57 +01:00
Added check for ffmpeg
This commit is contained in:
parent
2f8bb35b68
commit
96dee2c422
13
AAXtoMP3
13
AAXtoMP3
@ -17,9 +17,20 @@ if ! [[ $(type -P "$GREP") ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! [[ $(type -P ffmpeg) ]]; then
|
||||||
|
echo "ffmpeg is not in your PATH"
|
||||||
|
echo "Without it, this script will break."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ "$#" -eq 0 ]; then
|
if [ "$#" -eq 0 ]; then
|
||||||
echo "Usage: bash AAXtoMP3 [--flac] [--aac] [--opus ] [--single] AUTHCODE {FILES}"
|
echo "Usage: bash AAXtoMP3 [--flac] [--aac] [--opus ] [--single] AUTHCODE {FILES}"
|
||||||
echo " Note that order does matter!"
|
echo "Note that any optional flags have to be inputed in order to function correctly."
|
||||||
|
echo "[--flac] : The flac codec is used in the resulting files. Default is MP3"
|
||||||
|
echo "[--aac] : The aac codec is used in the resulting files. Default is MP3"
|
||||||
|
echo "[--opus] : The opus codec is used in the resulting files. Default is MP3"
|
||||||
|
echo "[--single]: Prevents creation of chapters. Results in a single file."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user