Development journal, published to https://gmgauthier.com/ https://gmgauthier.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

11 lines
251 B

#!/usr/bin/env bash
if [[ -z "$1" ]]; then
echo "Supply the full filepath of the video from which to extract audio"
exit 1
fi
filename=$(basename -- "${1}")
filename="${filename%.*}"
ffmpeg -i "${1}" -f mp3 -ab 192000 -vn "${filename}.mp3"