Skip to content

Instantly share code, notes, and snippets.

@flesch
Forked from ravnoor/mkv2mp4.sh
Last active August 29, 2015 14:10
Show Gist options
  • Save flesch/141c0f13825b0ef6c60d to your computer and use it in GitHub Desktop.
Save flesch/141c0f13825b0ef6c60d to your computer and use it in GitHub Desktop.
Convert Matroska MKV to iTunes compatible MP4 format for Airplay streaming on AppleTV. (http://git.io/mkv2mp4)
#!/bin/bash
# brew install libav
# curl -fsSL http://git.io/mkv2mp4sh | sh
for mkv in *.mkv; do
mp4="$(basename --suffix=.mkv "$mkv").mp4"
avconv -i "$mkv" -c:v copy -c:a aac -strict experimental -threads auto "$mp4"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment