[FFmpeg-user] how to use drawtext?

Richard Duran ricdur2 at gmail.com
Tue Oct 29 23:06:35 CET 2013


Hello,

I've finally figured out how to create a movie that combines an audio track
with two videos side-by-side (with a spacer between the videos). Now I'd
like to add text above and below the videos. The text will remain constant
for the entire length of the movie. I've started looking at drawtext, but
would like to see some examples.

My current command is as follows:

ffmpeg -i video1.avi -i video2.avi -i audio.wav -filter_complex
"[0:v]setpts=PTS-STARTPTS, pad=iw*2.1:ih[bg]; [1:v]setpts=PTS-STARTPTS[fg];
[bg][fg]overlay=w*1.1" -apad -shortest movie.avi

How would I use drawtext to:
 - create a label centered above the combined videos
 - create a label centered below each of the two videos

TIA


More information about the ffmpeg-user mailing list