From aa0097bde2cca98dc66db25e58ec5c1c1212ccfb Mon Sep 17 00:00:00 2001 From: Mert <101130780+mertalev@users.noreply.github.com> Date: Fri, 6 Sep 2024 00:30:34 -0400 Subject: [PATCH] fix(server): copy video projection metadata for 360 videos (#12376) --- server/src/services/media.service.spec.ts | 5 +++++ server/src/utils/media.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/server/src/services/media.service.spec.ts b/server/src/services/media.service.spec.ts index 634cd790eb..bf493de0f3 100644 --- a/server/src/services/media.service.spec.ts +++ b/server/src/services/media.service.spec.ts @@ -1247,6 +1247,7 @@ describe(MediaService.name, () => { '-fps_mode passthrough', '-map 0:0', '-map 0:1', + '-strict unofficial', '-v verbose', '-vf scale=-2:720,format=yuv420p', '-preset 12', @@ -1372,6 +1373,7 @@ describe(MediaService.name, () => { '-fps_mode passthrough', '-map 0:0', '-map 0:1', + '-strict unofficial', '-g 256', '-v verbose', '-vf format=nv12,hwupload_cuda,scale_cuda=-2:720', @@ -1532,6 +1534,7 @@ describe(MediaService.name, () => { '-fps_mode passthrough', '-map 0:0', '-map 0:1', + '-strict unofficial', '-bf 7', '-refs 5', '-g 256', @@ -1716,6 +1719,7 @@ describe(MediaService.name, () => { '-fps_mode passthrough', '-map 0:0', '-map 0:1', + '-strict unofficial', '-g 256', '-v verbose', '-vf format=nv12,hwupload,scale_vaapi=-2:720', @@ -1913,6 +1917,7 @@ describe(MediaService.name, () => { '-fps_mode passthrough', '-map 0:0', '-map 0:1', + '-strict unofficial', '-g 256', '-v verbose', '-vf scale_rkrga=-2:720:format=nv12:afbc=1', diff --git a/server/src/utils/media.ts b/server/src/utils/media.ts index cf8e438349..8068f4a5e6 100644 --- a/server/src/utils/media.ts +++ b/server/src/utils/media.ts @@ -115,6 +115,7 @@ export class BaseConfig implements VideoCodecSWConfig { '-fps_mode passthrough', // explicitly selects the video stream instead of leaving it up to FFmpeg `-map 0:${videoStream.index}`, + '-strict unofficial', ]; if (audioStream) {