Skip to content

Instantly share code, notes, and snippets.

@kirtfitzpatrick
Forked from elijahtsai/webm2m4a.sh
Created January 22, 2023 03:40
Show Gist options
  • Save kirtfitzpatrick/8272d221dab8c4dd38491e8621315019 to your computer and use it in GitHub Desktop.
Save kirtfitzpatrick/8272d221dab8c4dd38491e8621315019 to your computer and use it in GitHub Desktop.
ffmpeg webm to m4a
#!/bin/zsh
mkdir f a
for i in *.webm
do
ffmpeg -i "$i" -write_xing 0 -c:a alac "f/${i:r}.m4a"
afconvert -v -f m4af -d aac@48000 "f/${i:r}.m4a" "a/${i:r}.m4a"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment