[FFmpeg-cvslog] r23043 - trunk/ffmpeg.c

Vitor Sessak vitor1001
Fri May 7 12:17:28 CEST 2010


Michael Niedermayer wrote:
> On Fri, May 07, 2010 at 11:46:02AM +0200, Vitor Sessak wrote:
>> michael wrote:
>>> Author: michael
>>> Date: Fri May  7 11:43:21 2010
>>> New Revision: 23043
>>> Log:
>>> avfilter support for ffmpeg
>> \o/
> 
> thanks for volnteering to look into the padtop bug (mxf-d10 regtest failure)

Known bug, -padxxx is incompatible with lavfi. The solution is to do the 
same hack as done with cropping:

> +    if(ost->video_crop) {
> +        char crop_args[255];
> +        AVFilterContext *filt_crop;
> +        snprintf(crop_args, 255, "%d:%d:%d:%d", ost->leftBand, ost->topBand,
> +                 codec->width -  (frame_padleft + frame_padright),
> +                 codec->height - (frame_padtop + frame_padbottom));
> +        filt_crop = avfilter_open(avfilter_get_by_name("crop"), NULL);
> +        if (!filt_crop)
> +            return -1;
> +        if (avfilter_init_filter(filt_crop, crop_args, NULL))
> +            return -1;
> +        if (avfilter_link(curr_filter, 0, filt_crop, 0))
> +            return -1;
> +        curr_filter = filt_crop;
> +        avfilter_graph_add_filter(filt_graph_all, curr_filter);
> +    }

-Vitor



More information about the ffmpeg-cvslog mailing list