Skip to content

Instantly share code, notes, and snippets.

@larryebaum
Last active March 28, 2022 16:14
Show Gist options
  • Save larryebaum/63e3072eaea1d8c043cf51a733c69041 to your computer and use it in GitHub Desktop.
Save larryebaum/63e3072eaea1d8c043cf51a733c69041 to your computer and use it in GitHub Desktop.
Extract Audio from MP4 on MacOS
#locate instance of ffmpeg on workstation and set as variable if not in path
ffmpegPATH="/Applications/Descript.app/Contents/Resources/app.asar.unpacked/node_modules/beamcoder/build/Release/ffmpeg"
for i in *.MP4
do
if test -f "$i"
then
name=$(echo $i | cut -f 1 -d '.')
$ffmpegPATH -i "$i" -vn "$name.wav"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment