don't use deprecated commands

This commit is contained in:
Jakub Trllo 2025-04-10 17:49:42 +02:00
parent ebeb1d1e19
commit 3dc1eb49b1
2 changed files with 3 additions and 3 deletions

View file

@ -450,7 +450,7 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
# output arguments from presets # output arguments from presets
jpeg_items.extend(ffmpeg_args.get("output") or []) jpeg_items.extend(ffmpeg_args.get("output") or [])
# we just want one frame from movie files # we just want one frame from movie files
jpeg_items.extend(["-vframes", "1"]) jpeg_items.extend(["-frames:v", "1"])
if resolution_arg: if resolution_arg:
jpeg_items.extend(resolution_arg) jpeg_items.extend(resolution_arg)
@ -498,7 +498,7 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
"-i", video_file_path, "-i", video_file_path,
"-analyzeduration", max_int, "-analyzeduration", max_int,
"-probesize", max_int, "-probesize", max_int,
"-vframes", "1" "-frames:v", "1"
] ]
# add output file path # add output file path

View file

@ -170,7 +170,7 @@ class ExtractThumbnailFromSource(pyblish.api.InstancePlugin):
"-analyzeduration", max_int, "-analyzeduration", max_int,
"-probesize", max_int, "-probesize", max_int,
"-i", src_path, "-i", src_path,
"-vframes", "1", "-frames:v", "1",
dst_path dst_path
) )