[FFmpeg-user] Add white padding with filter_complex

Paul B Mahol onemda at gmail.com
Wed Apr 10 01:25:44 CEST 2013


On 4/9/13, Fernando Irias Escher <fernandoiriase at gmail.com> wrote:
> I'm using this command to generate a white padding for a grid:
> *
> *
>
> *ffmpeg -i 1.mp4   -filter_complex "[0:0]pad=iw*2:ih*2::0:0:0xFFFFFF" -c:v
> libx264 -preset:v veryfast -threads 0 -s 640:360        -map 0:a -c:a
> libfaac -b:a 96k grid.mp4*
>
> Here is the output if it is somehow useful: http://dpaste.com/1052902/
>
> The problem is that it is still showing the default black padding instead
> of a white one. Any hints what might be going on?

Your example does not work here.

This works fine:

ffplay -f lavfi -i testsrc -vf "pad=iw*2:ih*2:iw/2:ih/2:0xFFFFFF"

>
> ----
> Fernando Irias Escher
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list