mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
don't use deprecated commands
This commit is contained in:
parent
ebeb1d1e19
commit
3dc1eb49b1
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue