Last active
March 28, 2022 16:14
-
-
Save larryebaum/63e3072eaea1d8c043cf51a733c69041 to your computer and use it in GitHub Desktop.
Extract Audio from MP4 on MacOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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