Skip to content

Instantly share code, notes, and snippets.

@gtitov
Created April 29, 2022 12:24
Show Gist options
  • Save gtitov/a593da1e8421ca29ec8ed86ca575425b to your computer and use it in GitHub Desktop.
Save gtitov/a593da1e8421ca29ec8ed86ca575425b to your computer and use it in GitHub Desktop.
Extract audio from mkv file with ffmpeg
# ffmpeg -i sample.avi -q:a 0 -map a sample.mp3
# ./json2html.sh "Title"
for file in *.mkv; do
filename="${file%.*}"
audiofile="${filename}.mp3"
ffmpeg -i "$file" -q:a 0 -map a "$audiofile"
echo "$audiofile"
done
read -p "Press enter to continue"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment