Last active
August 7, 2018 13:58
-
-
Save DroidFreak32/ac6e0e7349c722e51bea89ddf6244e98 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
for i in *.mkv #Scan all mkv files | |
do | |
echo $i > filename.txt | |
i="${i%.mkv}" #Remove the extension | |
ffmpeg-10bit -i "$i.mkv" -map 0 -map_metadata 0 -map_chapters 0 -c copy -c:v libx265 -preset medium -x265-params "crf=25" -pix_fmt yuv420p10le -vf scale=1280:-2 -acodec libopus -af aformat=channel_layouts="7.1|5.1|stereo" -b:a 128k -copy_unknown "Encoded_$i.mkv" | |
# mkvmerge -o "remux_$i.mkv" "$i.mkv" "$i.srt" | |
# rm $i.mkv | |
done | |
#exit && screen -X quit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment