Created
August 26, 2014 23:23
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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