Possibility to define Crops for Clips? #1707
Closed
philipph77
started this conversation in
General
Replies: 1 comment
-
Hi, @philipph77 "All" otio objects have a example: cl = otio.schema.Clip(
name=clipname,
media_reference=otio.schema.ExternalReference(
target_url=clip_file,
available_range=otio.opentime.TimeRange(
start_time=otio.opentime.RationalTime(0, clip_fps),
duration=otio.opentime.RationalTime(clip_duration*clip_fps, clip_fps),
)
),
source_range=otio.opentime.TimeRange(
start_time=otio.opentime.RationalTime(0, clip_fps),
duration=otio.opentime.RationalTime(clip_duration*clip_fps, clip_fps),
)
)
crop_details = {
"coordinates": (left_coordinate, right_coordinate, bottom_coordinate, top_coordinate),
"rescaling_factor": rescaling_factor
}
cl.metadata['my_application'] = crop_details |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
for my current otio project, I have clips of varying aspect ratios. Thus, in my current workflow I am first rescaling and cropping all clips to the right size, exporting them as files and then linking them against the otio timeline. Of course, cropping and exporting all clips takes a lot of time.
Thus, I was wondering:
Is there a way to define a crop (and rescaling factor) for a clip, so that cropping could be done in a final video exporting step?
Here is some sample code in Python showing how I image doing this:
Beta Was this translation helpful? Give feedback.
All reactions