View Bug Details

IDProjectCategoryView StatusLast Update
0003008DCP-o-maticFeaturespublic2025-04-16 15:49
Reporterconnor Assigned Tocarl  
PrioritynormalSeverityminorReproducibilityhave not tried
Status feedbackResolutionopen 
Summary0003008: CLI: option to specify crop-fill
Description

CLI option to have input video fill frame completely (whether that be cropping top and bottom or left and right to fill frame)

Example: input video (1.78) crops top and bottom to fit inside a Flat (1.85) container.

Example: input video (2.39) crops left and right to fit inside a Flat (1.85) - not that this would happen often, but still would be nice to have as a feature.

Example: input video (1.85) withe interior aspect ratio of 2.39 crops top and bottom and fits left to right to fit inside a scope (2.39) container.

TagsNo tags attached.
Branch
Estimated weeks required
Estimated work required

Activities

connor

2025-04-15 06:39

reporter   ~0006927

Is this something that can be added in the next version?

carl

2025-04-15 08:33

administrator   ~0006928

As far as I know this is a fairly unusual use-case - I don't remember it being requested in the GUI, for example. Most people are quite averse to cropping a picture just to make it fit a "standard" container, as far as I know.

Would --crop-left, --crop-right etc. CLI options be enough for you, or is the calculation of the required crops also valuable for your use-case?

Can you say a bit more about what you will use this for?

connor

2025-04-16 04:47

reporter   ~0006930

I actually do create quite a bit of DCPs where the file is 3840x2160 with DCI Scope black bars that are baked in. Then I would want to output a DCI scope DCP that crops accordingly. The auto-crop I'm not sure how accurate that is to do that? Where as it is really easy to set the container size to scope and then say fill the container. That is what I would do in DaVinci Resolve is set image to fill frame with crop. This also is the case if I have a 3840x2160 video that I want to create a DCI flat DCP. I would want to create a crop of the video on top and bottom and fill to frame rather than having pillars on the left and right. Just depends from a creative perspective what I want the output to be. The only solution I can think of right now would be to re-encode the video before running through the CLI for dcp-o-matic, but I feel like that is a bit excessive for a small crop.

carl

2025-04-16 14:16

administrator   ~0006931

The way the DCP-o-matic GUI approaches this is that if you crop the black parts off your source image, everything else should be taken care of. Auto-crop should work for this, or I could also add --crop-left, --crop-right etc. so with a 3840x2160 (1.78:1) source has black top and bottom you could say

--container-ratio 239 --crop-top 276 --crop-bottom 276

Or maybe better would be something "automatic" like --crop-for-source-ratio 185 --container-ratio 239.

Any thoughts?

Bug History

Date Modified Username Field Change
2025-03-26 16:07 connor New Bug
2025-04-15 06:39 connor Note Added: 0006927
2025-04-15 08:33 carl Note Added: 0006928
2025-04-15 08:33 carl Assigned To => carl
2025-04-15 08:33 carl Status new => feedback
2025-04-16 04:47 connor Note Added: 0006930
2025-04-16 04:47 connor Status feedback => assigned
2025-04-16 14:16 carl Note Added: 0006931
2025-04-16 15:49 carl Status assigned => feedback