From 1e651dc0aea482d8606974eb1f2d863642ccb195 Mon Sep 17 00:00:00 2001 From: Lukas Date: Thu, 14 Nov 2024 00:05:12 -0500 Subject: [PATCH] Stop skipping of all frames in MTS video --- server/src/services/media.service.spec.ts | 6 +++--- server/src/utils/media.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/services/media.service.spec.ts b/server/src/services/media.service.spec.ts index df1a04dff8709..0f99df729b412 100644 --- a/server/src/services/media.service.spec.ts +++ b/server/src/services/media.service.spec.ts @@ -403,7 +403,7 @@ describe(MediaService.name, () => { '/original/path.ext', 'upload/thumbs/user-id/as/se/asset-id-preview.jpeg', expect.objectContaining({ - inputOptions: ['-skip_frame nointra', '-sws_flags accurate_rnd+full_chroma_int'], + inputOptions: ['-sws_flags accurate_rnd+full_chroma_int'], outputOptions: [ '-fps_mode vfr', '-frames:v 1', @@ -438,7 +438,7 @@ describe(MediaService.name, () => { '/original/path.ext', 'upload/thumbs/user-id/as/se/asset-id-preview.jpeg', expect.objectContaining({ - inputOptions: ['-skip_frame nointra', '-sws_flags accurate_rnd+full_chroma_int'], + inputOptions: ['-sws_flags accurate_rnd+full_chroma_int'], outputOptions: [ '-fps_mode vfr', '-frames:v 1', @@ -475,7 +475,7 @@ describe(MediaService.name, () => { '/original/path.ext', 'upload/thumbs/user-id/as/se/asset-id-preview.jpeg', expect.objectContaining({ - inputOptions: ['-skip_frame nointra', '-sws_flags accurate_rnd+full_chroma_int'], + inputOptions: ['-sws_flags accurate_rnd+full_chroma_int'], outputOptions: [ '-fps_mode vfr', '-frames:v 1', diff --git a/server/src/utils/media.ts b/server/src/utils/media.ts index f61b472b7512d..597dabdb6accb 100644 --- a/server/src/utils/media.ts +++ b/server/src/utils/media.ts @@ -378,7 +378,7 @@ export class ThumbnailConfig extends BaseConfig { } getBaseInputOptions(): string[] { - return ['-skip_frame nointra', '-sws_flags accurate_rnd+full_chroma_int']; + return ['-sws_flags accurate_rnd+full_chroma_int']; } getBaseOutputOptions() {