Created
November 28, 2015 13:17
-
-
Save damsonn/c212ed8a0c0cc7370f71 to your computer and use it in GitHub Desktop.
convert all the MKVs in the current directory to standard x264
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 | |
# convert all the .mkv in the current directory to standard x264 | |
for ff in *.mkv; | |
do | |
filename=$(basename $ff) | |
extension=${filename##*.} | |
filename=${filename%.*} | |
ffmpeg -i "${ff}" -c:v libx264 -crf 23 -preset medium -map 0 -c:a copy "${filename}.h264.mkv" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment