revert ffmpeg frame calculation

This commit is contained in:
Milan Kolar 2020-03-15 16:28:10 +01:00
parent 317c25a7c5
commit 58b563ad04

View file

@ -183,12 +183,8 @@ class ExtractReview(pyblish.api.InstancePlugin):
frame_start_handle, fps))
else:
if no_handles:
# start_sec = float(handle_start) / fps
input_args.append(
"-start_number {0} -framerate {1}".format(
handle_start, fps
)
)
start_sec = float(handle_start) / fps
input_args.append("-ss {:0.2f}".format(start_sec))
frame_start_handle = frame_start
frame_end_handle = frame_end