18 lines
312 B
Bash
Executable File
18 lines
312 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Convert h264 (or something else) to high-quality av1.
|
|
# h264 audio must be opus.
|
|
|
|
F="${1:?need arg1 to be set to input .mkv}"
|
|
OUT="${1%.mkv}.webm"
|
|
|
|
ffmpeg \
|
|
-i "$F" \
|
|
-map 0 \
|
|
-c:a copy \
|
|
-c:v libsvtav1 \
|
|
-preset 6 \
|
|
-crf 28 \
|
|
-pix_fmt yuv420p10le \
|
|
"$OUT"
|