Development journal, published to
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
filename=$(basename -- "${1}")
ffmpeg -i "${1}" -f mp3 -ab 192000 -vn "${filename}.mp3"