Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: carsti on January 27, 2022, 04:01:46 PM

Title: Feature request: crop filter with interpolation between several crop areas..?
Post by: carsti on January 27, 2022, 04:01:46 PM
Hi,

I love the new Crop Filter with 2.8.0. Especially the "lock aspect ratio" feature and the better usability.

What I would really like is a new feature where you could define several crop areas instead of only one for the whole video.

The filter would then slowly interpolate (move) between the positions of these crop areas.

I often want to crop out to show only a person in the video. Sometimes this person moves to a different position. I would like to define crop areas for different timestamps in the video which would allow me to "follow" that person.
Title: Re: Feature request: crop filter with interpolation between several crop areas..?
Post by: eumagga0x2a on January 27, 2022, 06:08:37 PM
Except for smooth panning, unavailable whatsoever, you could use multiple partialized instances of the "zoom" filter to (sort of) track an object.
Title: Re: Feature request: crop filter with interpolation between several crop areas..?
Post by: carsti on January 31, 2022, 02:12:21 PM
A pity. This would be such a huge addition to the crop filter. I doubt it would be a difficult task to interpolate the position of the crop are between two crop area positions.
Title: Re: Feature request: crop filter with interpolation between several crop areas..?
Post by: carsti on February 02, 2022, 09:10:45 PM
Is the Crop-plugin just Python code which I could modify? Or could I use the scripting feature to fine-tine the Crop plugin?
Title: Re: Feature request: crop filter with interpolation between several crop areas..?
Post by: eumagga0x2a on February 02, 2022, 09:55:34 PM
Avidemux and its plugins are mostly C++ under GPL, so everyone can modify the code as long as she or he provides the modified source under GPL as well when publishing generated binaries. You will find the source of the crop filter here (https://github.com/mean00/avidemux2/tree/master/avidemux_plugins/ADM_videoFilters6/crop), but the zoom (https://github.com/mean00/avidemux2/tree/master/avidemux_plugins/ADM_videoFilters6/zoom) filter by szlldm may be a better starting point.

You should use Linux or macOS as development platform in order to work on Avidemux comfortably. You need Linux to generate Avidemux builds for Windows (native build with Microsoft Visual Studio is also possible but complicated).