Skip to content

High performance self-hosted photo and video management solution.

fix: strip extra metadata when transcoding (#17297)

bo0tzz3e03c47fbfe4
diff --git a/server/src/utils/media.ts b/server/src/utils/media.ts
index d26f8d0fb6..b00eb652ef 100644
--- a/server/src/utils/media.ts
+++ b/server/src/utils/media.ts
@@ -128,6 +128,8 @@ export class BaseConfig implements VideoCodecSWConfig {
'-fps_mode passthrough',
// explicitly selects the video stream instead of leaving it up to FFmpeg
`-map 0:${videoStream.index}`,
+ // Strip metadata like capture date, camera, and GPS
+ '-map_metadata -1',
];
if (audioStream) {