[FFmpeg-devel] [PATCH] avfilter/vf_crop: make it possible to use frame metadata when cropping

Paul B Mahol onemda at gmail.com
Tue Jan 26 20:03:58 CET 2016


On 1/26/16, Stefano Sabatini <stefasab at gmail.com> wrote:
> On date Sunday 2016-01-17 20:15:45 +0100, Paul B Mahol encoded:
>> Signed-off-by: Paul B Mahol <onemda at gmail.com>
>> ---
>>  doc/filters.texi      |  6 ++++++
>>  libavfilter/vf_crop.c | 54
>> +++++++++++++++++++++++++++++++++++++++------------
>>  2 files changed, 48 insertions(+), 12 deletions(-)
>>
>> diff --git a/doc/filters.texi b/doc/filters.texi
>> index f4bda6a..aee4e66 100644
>> --- a/doc/filters.texi
>> +++ b/doc/filters.texi
>> @@ -4621,6 +4621,11 @@ This expression is evaluated per-frame.
>>  If set to 1 will force the output display aspect ratio
>>  to be the same of the input, by changing the output sample aspect
>>  ratio. It defaults to 0.
>> +
>
>> + at item metadata
>> +If set to 1 it will use frame metadata instead to obtain all parameters.
>> +To make use of this feature you need to start @ref{cropdetect} filter
>> before
>> +this filter.
>
> Suggestion: to make this more extensible, allow to set the metadata
> fields to read, for example so that you can have something like:
> metadata=facedetect or metadata=cropdetect.

Sure.


More information about the ffmpeg-devel mailing list