Skip to content

Instantly share code, notes, and snippets.

@ravnoor
Created August 26, 2014 23:23
Show Gist options
  • Save ravnoor/a703083290959f5050cf to your computer and use it in GitHub Desktop.
Save ravnoor/a703083290959f5050cf to your computer and use it in GitHub Desktop.
Convert Matroska MKV to iTunes compatible MP4 format for Airplay streaming on AppleTV.
#!/bin/bash
dir=$1
target_dir=$PWD
for f in $PWD/*.mkv; do
mkv=$(basename -s .mkv $f)
echo $ppm
mpx=$target_dir/$mkv.mp4
if [ ! -in $mpx ]
then
avconv -i $in -c:v copy -c:a aac -strict experimental -threads auto $mpx
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment