Skip to content

Instantly share code, notes, and snippets.

## MacOS Stuff
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
@larryebaum-nz
larryebaum-nz / extractMP4audio.sh
Last active March 28, 2022 16:14
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