[FFmpeg-user] how to use drawtext?

Richard Duran ricdur2 at gmail.com
Thu Oct 31 21:49:00 CET 2013


On Thu, Oct 31, 2013 at 5:11 AM, Frank Tetzel <
s1445051 at mail.zih.tu-dresden.de> wrote:

> Am Wed, 30 Oct 2013 18:36:34 -0600
> schrieb Richard Duran <ricdur2 at gmail.com>:
> -filter_complex "[0:v] setpts=PTS-STARTPTS, pad=iw*2+10:ih+24:0:12 [v1];
> [1:v] setpts=PTS-STARTPTS [v2]; [v1][v2] overlay=w+10:12,
> drawtext=fontcolor=white:text=Header:x=(w-text_w)/2:y=0,
> drawtext=fontcolor=white:text='First Panel':x=(((w-10)/2)-text_w)/2:y=h-12,
> drawtext=fontcolor=white:text='Second
> Panel':x=((((w-10)/2)-text_w)/2)+((w+10)/2):y=h-12"
>
> This is all one line. There's a 10 pixel gap between the videos and 12
> pixels above and below for the text.
>

This was exactly what I was needing. The only thing that was missing was
the fontfile.

Thank you so very much.


More information about the ffmpeg-user mailing list