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, },