mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Renamed variable
This commit is contained in:
parent
c1f36199c2
commit
061e9c5015
1 changed files with 5 additions and 6 deletions
|
|
@ -160,13 +160,13 @@ class ExtractThumbnailFromSource(pyblish.api.InstancePlugin):
|
||||||
dst_path: str,
|
dst_path: str,
|
||||||
) -> bool:
|
) -> bool:
|
||||||
self.log.debug("Outputting thumbnail with OIIO: {}".format(dst_path))
|
self.log.debug("Outputting thumbnail with OIIO: {}".format(dst_path))
|
||||||
resolution_arg = self._get_resolution_args(
|
resolution_args = self._get_resolution_args(
|
||||||
"oiiotool", src_path
|
"oiiotool", src_path
|
||||||
)
|
)
|
||||||
oiio_cmd = get_oiio_tool_args("oiiotool", "-a", src_path)
|
oiio_cmd = get_oiio_tool_args("oiiotool", "-a", src_path)
|
||||||
if resolution_arg:
|
if resolution_args:
|
||||||
# resize must be before -o
|
# resize must be before -o
|
||||||
oiio_cmd.extend(resolution_arg)
|
oiio_cmd.extend(resolution_args)
|
||||||
else:
|
else:
|
||||||
# resize provides own -ch, must be only one
|
# resize provides own -ch, must be only one
|
||||||
oiio_cmd.extend(["--ch", "R,G,B"])
|
oiio_cmd.extend(["--ch", "R,G,B"])
|
||||||
|
|
@ -188,7 +188,7 @@ class ExtractThumbnailFromSource(pyblish.api.InstancePlugin):
|
||||||
src_path: str,
|
src_path: str,
|
||||||
dst_path: str,
|
dst_path: str,
|
||||||
) -> bool:
|
) -> bool:
|
||||||
resolution_arg = self._get_resolution_args(
|
resolution_args = self._get_resolution_args(
|
||||||
"ffmpeg", src_path
|
"ffmpeg", src_path
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -202,8 +202,7 @@ class ExtractThumbnailFromSource(pyblish.api.InstancePlugin):
|
||||||
"-frames:v", "1",
|
"-frames:v", "1",
|
||||||
)
|
)
|
||||||
|
|
||||||
if resolution_arg:
|
ffmpeg_cmd.extend(resolution_args)
|
||||||
ffmpeg_cmd.extend(resolution_arg)
|
|
||||||
|
|
||||||
# possible resize must be before output args
|
# possible resize must be before output args
|
||||||
ffmpeg_cmd.append(dst_path)
|
ffmpeg_cmd.append(dst_path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue