mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-21 08:45:50 +03:00
[performance] limit ffprobe read time to at most 1s after start of file (#3155)
This commit is contained in:
parent
87cff71af9
commit
0b4a951b48
1 changed files with 5 additions and 0 deletions
|
@ -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,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue