Skip to content

Commit 4fdf706

Browse files
bo0tzzkirill-dev-pro
authored andcommitted
fix: strip extra metadata when transcoding (immich-app#17297)
1 parent 0b2b933 commit 4fdf706

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/utils/media.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ export class BaseConfig implements VideoCodecSWConfig {
128128
'-fps_mode passthrough',
129129
// explicitly selects the video stream instead of leaving it up to FFmpeg
130130
`-map 0:${videoStream.index}`,
131+
// Strip metadata like capture date, camera, and GPS
132+
'-map_metadata -1',
131133
];
132134

133135
if (audioStream) {

0 commit comments

Comments
 (0)