13 lignes
315 o
Bash
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
|