exif: only extract unknowns for lp

This is extremely slow for big MKV files, for example

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/807/merge
Varun Patil 2023-10-04 16:44:03 -07:00
parent f07a376c37
commit 686b399363
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ class Exif
{ {
private const FORBIDDEN_EDIT_MIMES = ['image/bmp', 'image/x-dcraw', 'video/MP2T']; private const FORBIDDEN_EDIT_MIMES = ['image/bmp', 'image/x-dcraw', 'video/MP2T'];
private const EXIFTOOL_TIMEOUT = 30000; private const EXIFTOOL_TIMEOUT = 30000;
private const EXIFTOOL_ARGS = ['-api', 'QuickTimeUTC=1', '-n', '-U', '-json', '--b']; private const EXIFTOOL_ARGS = ['-api', 'QuickTimeUTC=1', '-n', '-json', '--b'];
/** Opened instance of exiftool when running in command mode */ /** Opened instance of exiftool when running in command mode */
private static $staticProc; private static $staticProc;
@ -370,7 +370,7 @@ class Exif
public static function getExifWithDuplicates(string $path) public static function getExifWithDuplicates(string $path)
{ {
return self::getExifFromLocalPathWithSeparateProc($path, ['-G4']); return self::getExifFromLocalPathWithSeparateProc($path, ['-U', '-G4']);
} }
private static function getExiftool(): array private static function getExiftool(): array