mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
chore(server): explicitly use svt-av1 encoder (#13389)
This commit is contained in:
parent
8eb79805ae
commit
e57bd94f04
2 changed files with 5 additions and 1 deletions
|
|
@ -1322,7 +1322,7 @@ describe(MediaService.name, () => {
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
inputOptions: expect.any(Array),
|
inputOptions: expect.any(Array),
|
||||||
outputOptions: expect.arrayContaining([
|
outputOptions: expect.arrayContaining([
|
||||||
'-c:v av1',
|
'-c:v libsvtav1',
|
||||||
'-movflags faststart',
|
'-movflags faststart',
|
||||||
'-fps_mode passthrough',
|
'-fps_mode passthrough',
|
||||||
'-map 0:0',
|
'-map 0:0',
|
||||||
|
|
|
||||||
|
|
@ -492,6 +492,10 @@ export class VP9Config extends BaseConfig {
|
||||||
}
|
}
|
||||||
|
|
||||||
export class AV1Config extends BaseConfig {
|
export class AV1Config extends BaseConfig {
|
||||||
|
getVideoCodec(): string {
|
||||||
|
return 'libsvtav1';
|
||||||
|
}
|
||||||
|
|
||||||
getPresetOptions() {
|
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
|
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) {
|
if (speed >= 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue