summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/media/ffmpeg.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/media/ffmpeg.go b/internal/media/ffmpeg.go
index 1cfaf891c..0de5797ab 100644
--- a/internal/media/ffmpeg.go
+++ b/internal/media/ffmpeg.go
@@ -243,6 +243,11 @@ func ffprobe(ctx context.Context, filepath string) (*result, error) {
// side data stored.
"side_data=rotation",
+ // Limit to reading the first
+ // 1s of data looking for "rotation"
+ // side_data tags (expensive part).
+ "-read_intervals", "%+1",
+
// Input file.
"-i", filepath,
},