[FFmpeg-user] how to use drawtext?

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


On Wed, Oct 30, 2013 at 2:20 PM, Richard Duran <ricdur2 at gmail.com> wrote:

> On Wed, Oct 30, 2013 at 4:19 AM, Frank Tetzel <
> s1445051 at mail.zih.tu-dresden.de> wrote:
>
>> Hi,
>>
>> have a look at the filter documentation. There are many examples:
>> http://ffmpeg.org/ffmpeg-filters.html#Examples-8
>>
>> The third one should help you.
>>
>> Regards,
>> Frank.
>>
>
> So I tried appending ";
> drawtext=fontsize=30:fontfile=arial.ttf:text='hello
> world':x=(w-text_w)/2:y=(h-text_h-line_h)/2" to my "complex" filter, and
> got the following error:
>
>
Interesting. I changed the semi-colon at the front of this string to a
comma, and it gave me the result I wanted.

This was, of course, not the first thing I tried. I tried putting each of
the following between the semi-colon and "drawtext":

  [fg][bg] - too many inputs
  [fg] - invalid stream specifier
  [bg] - invalid stream specifier
  [0:v] - no error, but no text either
  [1:v] - no error, but no text either

Regards,
-richard


More information about the ffmpeg-user mailing list