mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
OP-3938 - Hound
This commit is contained in:
parent
b6d035ad69
commit
233a0c0040
2 changed files with 12 additions and 13 deletions
|
|
@ -120,8 +120,7 @@ class ExtractReview(publish.Extractor):
|
||||||
mov_path
|
mov_path
|
||||||
]
|
]
|
||||||
self.log.debug("mov args:: {}".format(args))
|
self.log.debug("mov args:: {}".format(args))
|
||||||
output = run_subprocess(args)
|
_output = run_subprocess(args)
|
||||||
self.log.debug(output)
|
|
||||||
instance.data["representations"].append({
|
instance.data["representations"].append({
|
||||||
"name": "mov",
|
"name": "mov",
|
||||||
"ext": "mov",
|
"ext": "mov",
|
||||||
|
|
@ -158,7 +157,7 @@ class ExtractReview(publish.Extractor):
|
||||||
thumbnail_path
|
thumbnail_path
|
||||||
]
|
]
|
||||||
self.log.debug("thumbnail args:: {}".format(args))
|
self.log.debug("thumbnail args:: {}".format(args))
|
||||||
output = run_subprocess(args)
|
_output = run_subprocess(args)
|
||||||
instance.data["representations"].append({
|
instance.data["representations"].append({
|
||||||
"name": "thumbnail",
|
"name": "thumbnail",
|
||||||
"ext": "jpg",
|
"ext": "jpg",
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ from openpype.lib.transcoding import (
|
||||||
convert_ffprobe_fps_to_float,
|
convert_ffprobe_fps_to_float,
|
||||||
)
|
)
|
||||||
from openpype.lib.profiles_filtering import filter_profiles
|
from openpype.lib.profiles_filtering import filter_profiles
|
||||||
from openpype.lib.transcoding import IMAGE_EXTENSIONS, VIDEO_EXTENSIONS
|
from openpype.lib.transcoding import VIDEO_EXTENSIONS
|
||||||
|
|
||||||
|
|
||||||
class IntegrateFtrackInstance(pyblish.api.InstancePlugin):
|
class IntegrateFtrackInstance(pyblish.api.InstancePlugin):
|
||||||
|
|
@ -454,9 +454,9 @@ class IntegrateFtrackInstance(pyblish.api.InstancePlugin):
|
||||||
try:
|
try:
|
||||||
streams = get_ffprobe_streams(component_path)
|
streams = get_ffprobe_streams(component_path)
|
||||||
except Exception:
|
except Exception:
|
||||||
self.log.debug((
|
self.log.debug(
|
||||||
"Failed to retrieve information about input {}"
|
"Failed to retrieve information about "
|
||||||
).format(component_path))
|
"input {}".format(component_path))
|
||||||
|
|
||||||
# Find video streams
|
# Find video streams
|
||||||
video_streams = [
|
video_streams = [
|
||||||
|
|
@ -500,9 +500,9 @@ class IntegrateFtrackInstance(pyblish.api.InstancePlugin):
|
||||||
input_framerate
|
input_framerate
|
||||||
)
|
)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
self.log.warning((
|
self.log.warning(
|
||||||
"Could not convert ffprobe fps to float \"{}\""
|
"Could not convert ffprobe "
|
||||||
).format(input_framerate))
|
"fps to float \"{}\"".format(input_framerate))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
stream_width = tmp_width
|
stream_width = tmp_width
|
||||||
|
|
@ -583,9 +583,9 @@ class IntegrateFtrackInstance(pyblish.api.InstancePlugin):
|
||||||
try:
|
try:
|
||||||
streams = get_ffprobe_streams(component_path)
|
streams = get_ffprobe_streams(component_path)
|
||||||
except Exception:
|
except Exception:
|
||||||
self.log.debug((
|
self.log.debug(
|
||||||
"Failed to retrieve information about intput {}"
|
"Failed to retrieve information "
|
||||||
).format(component_path))
|
"about input {}".format(component_path))
|
||||||
|
|
||||||
for stream in streams:
|
for stream in streams:
|
||||||
if "width" in stream and "height" in stream:
|
if "width" in stream and "height" in stream:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue