Skip to content

Instantly share code, notes, and snippets.

@DroidFreak32
Last active August 7, 2018 13:58
Show Gist options
  • Save DroidFreak32/ac6e0e7349c722e51bea89ddf6244e98 to your computer and use it in GitHub Desktop.
Save DroidFreak32/ac6e0e7349c722e51bea89ddf6244e98 to your computer and use it in GitHub Desktop.
#!/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