chore(server): explicitly use svt-av1 encoder (#13389)

This commit is contained in:
Kevin Cox 2024-10-15 14:53:18 -04:00 committed by GitHub
parent 8eb79805ae
commit e57bd94f04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -492,6 +492,10 @@ export class VP9Config extends BaseConfig {
}
export class AV1Config extends BaseConfig {
getVideoCodec(): string {
return 'libsvtav1';
}
getPresetOptions() {
const speed = this.getPresetIndex() + 4; // Use 4 as slowest, giving us an effective range of 4-12 which is far more useful than 0-8
if (speed >= 0) {