mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-03 01:14:54 +01:00
Use duration from streams as its more precise
This commit is contained in:
parent
ec492036c7
commit
d387dca027
1 changed files with 1 additions and 1 deletions
|
|
@ -445,7 +445,7 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
|
|||
# Set video input attributes
|
||||
max_int = str(2147483647)
|
||||
video_data = get_ffprobe_data(video_file_path, logger=self.log)
|
||||
duration = float(video_data["format"]["duration"])
|
||||
duration = float(video_data["streams"][0]["duration"])
|
||||
|
||||
cmd_args = [
|
||||
"-y",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue