mirror of
https://github.com/immich-app/immich.git
synced 2025-12-12 21:14:28 +03:00
fix(server): prevent metadata extraction failures on large video files (#24094)
* prevent metadata extraction failures on large video files Increases ExifTool timeout from 20s to 120s to prevent GPS metadata extraction failures on large video files (>2GB, 10+ minutes). Issue: Large videos timeout during metadata extraction, causing GPS coordinates to be lost even though ExifTool can extract them given enough time. Testing: 2.6GB, 10:52min video that previously timed out now successfully extracts GPS metadata. * redundant comment Increased task timeout for processing large videos. * chore: lint --------- Co-authored-by: Mert <101130780+mertalev@users.noreply.github.com> Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
@@ -89,6 +89,7 @@ export class MetadataRepository {
|
||||
// Enable exiftool LFS to parse metadata for files larger than 2GB.
|
||||
readArgs: ['-api', 'largefilesupport=1'],
|
||||
writeArgs: ['-api', 'largefilesupport=1', '-overwrite_original'],
|
||||
taskTimeoutMillis: 2 * 60 * 1000,
|
||||
});
|
||||
|
||||
constructor(private logger: LoggingRepository) {
|
||||
|
||||
Reference in New Issue
Block a user