Created
June 22, 2015 18:01
-
-
Save engineersamuel/27cf395ad82ae4f4c761 to your computer and use it in GitHub Desktop.
Encode mp4 files for DLNA streaming, works with TVs, devices, and PS4
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 | |
# ffmpeg installed via: brew install ffmpeg --enable-libx264 --enable-libfaac --enable-libass --with-faac --with-ass --with-tools | |
# ln -s /Applications/mkv2mp4.sh /usr/bin/mkv2mp4 | |
MKV=$1 | |
echo "MKV: $MKV" | |
MP4=`echo $MKV | sed 's/\.mkv/\.mp4/'` | |
echo "MP4: $MP4" | |
CMD="ffmpeg -y -i $MKV -vcodec copy -acodec libfaac -tune film $MP4" | |
echo "Executing: $CMD" | |
`$CMD` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment