mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 17:04:54 +01:00
Illicit suggestion
This commit is contained in:
parent
ce601d0ad4
commit
e6818f94f5
1 changed files with 5 additions and 1 deletions
|
|
@ -445,7 +445,11 @@ 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["streams"][0]["duration"])
|
||||
duration = max(
|
||||
float(stream.get("duration", 0))
|
||||
for stream in video_data["streams"]
|
||||
if stream.get("codec_type") == "video"
|
||||
)
|
||||
|
||||
cmd_args = [
|
||||
"-y",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue