GISTS/windows/video scripts/convertion-dossier-av1.sh
2024-06-12 19:44:14 +02:00

13 lignes
315 o
Bash

#!/usr/bin/env bash
# UNTESTED since av1 encoding on my linux boxes is slow as hell
cd "$1"
mkdir ok
mkdir orig
for i in *.avi *.mkv *.mp4
do
# libaom-av1 libsvtav1
[ -f "${i}" ] && ffmpeg -hide_banner -i "./${i}" -c:v libsvtav1 -preset 6 -crf 30 -map 0 "./ok/${i%.*}[AlbiRip AV1].mkv"
mv "${i}" orig/
done