View Bug Details

IDProjectCategoryView StatusLast Update
0000365DCP-o-maticFeaturespublic2022-01-16 12:49
Reportermhm Assigned Tocarl  
PrioritylowSeverityfeatureReproducibilityhave not tried
Status acknowledgedResolutionopen 
Summary0000365: Use ffmpeg cropdetect filter when analyzing source
Description

I often use the cropdetect filter to figure out how to crop and scale a source file. It would be useful if dcpomatic used this during analyzing and displayed the results to the user.

Depending on the source format, it can take som time. Maybe it would be best to take make sample measurements at intervals (depending on source file length) to keep the analyze time down.

Here is a command line example of how I use this functionality:

$ ffmpeg -i The\ Invisible\ Woman-73929989.mp4 -vf cropdetect=24:2:0 -f null - |& grep -o crop=.:.:.:. | sort | uniq -c | sort -rn
159862 crop=640:272:0:46
23 crop=-638:-362:640:364
7 crop=640:268:0:48
1 crop=640:270:0:48
1 crop=640:188:0:84
1 crop=6:-362:440:364
1 crop=446:20:0:88
1 crop=222:-362:224:364
1 crop=0:-362:446:364

This source is letterboxed scope inside a 640x364 container.

In this case I would first crop to 640x268 and then scale to 2048x858.

Thanks!

TagsNo tags attached.
Branch
Estimated weeks required
Estimated work requiredAverage

Activities

carl

2022-01-16 12:49

administrator   ~0004765

main branch now has auto-crop, which is similar to this but not so sophisticated (it uses the playhead position rather than scanning the whole file).

Bug History

Date Modified Username Field Change
2014-06-07 03:33 mhm New Bug
2014-06-10 14:30 carl Assigned To => carl
2014-06-10 14:30 carl Status new => acknowledged
2015-06-12 12:20 carl Severity minor => feature
2015-06-12 16:30 carl Estimated work required => Average
2015-06-12 16:30 carl Priority normal => low
2015-08-27 16:56 carl Target Version => 2.x
2022-01-16 12:49 carl Note Added: 0004765