[FFmpeg-devel] [PATCH, v3] fftools/ffmpeg_filter: add -autoscale to disable/enable the default scale

Gyan ffmpeg at gyani.pro
Sat Jul 20 10:54:13 EEST 2019



On 20-07-2019 01:16 PM, Nicolas George wrote:
> Gyan (12019-07-20):
>> Since the auto scaling happens at the end of the graph
> Are you sure? IIRC, the scaling happens just after buffersrc.

 From the patch,

1)

 >  @@ -469,7 +469,7 @@ static int 
configure_output_video_filter(FilterGraph *fg, OutputFilter *ofilter,
 >       if (ret < 0)
 >           return ret;
 >
 >  -    if (ofilter->width || ofilter->height) {
 >  +    if ((ofilter->width || ofilter->height) && fg->autoscale) {

and

2)

> +    { "autoscale",        HAS_ARG | OPT_BOOL | OPT_SPEC |
> +                          OPT_EXPERT | OPT_INPUT,                                { .off = OFFSET(autoscale) },
> +        "automatically insert a scale filter at the end of the filter graph if a resolution"



Gyan



More information about the ffmpeg-devel mailing list