Skip to content

High performance self-hosted photo and video management solution.

fix(server): copy video projection metadata for 360 videos (#12376)

Mertaa0097bde2cc
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) {