FastFlix
FastFlix copied to clipboard
My bash script to help users with batch processing
Hey guys. I wanted to share my script to help users with batch processing because this is something that is not available on FastFlix yet. My script below basically grabs any mp4 it finds inside the current folders and inside all subfolders and converts them to an H265 MKV files CRF 28, Opus audio with 64kbps. You just have to modify the lines if you want to make it better.
#!/usr/bin/env bash
find ./ -name '*.mp4' -exec bash -c 'nvencc -i "$0" --video-metadata clear --metadata clear \
--chapter-copy -c hevc --cqp 28 --bref-mode disabled --preset quality \
--tier high --no-aq --level auto --colormatrix bt709 --transfer bt709 \
--colorprim bt709 --output-depth 10 --multipass 2pass-full --mv-precision Auto \
--chromaloc auto --colorrange auto --avsync cfr --audio-codec libopus --audio-bitrate 64 \
--audio-metadata clear -m default_mlsode:infer_no_subs -o "${0/mp4/mkv}"' {} \;
notify-send "FastFlix Batch" "Conversion done."