Skip to content

Instantly share code, notes, and snippets.

@grantpullen
Created November 18, 2019 06:31
Show Gist options
  • Save grantpullen/fb2e3e3cdcff32bc6d67c54b8c7ab608 to your computer and use it in GitHub Desktop.
Save grantpullen/fb2e3e3cdcff32bc6d67c54b8c7ab608 to your computer and use it in GitHub Desktop.
Lossless extraction of audio from mp4/mkv

Extract .aac Audio from multiple mp4 or mkv

  • DL avconv from https://libav.org/download/
  • extract e.g. assuming Windows in the folder c:\tools\avconv
  • execute commands in linux shell e.g. gitbash
 for i in *.mp4; do /c/tools/avconv/bin/avconv -i "$i" -acodec copy "${i/.mp4/.aac}"; done
 for i in *.mkv; do /c/tools/avconv/bin/avconv -i "$i" -acodec copy "${i/.mkv/.aac}"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment