RSMEENA
RSMEENA

Reputation: 51

How to use multi colors in drawtext FFmpeg

How can i use multi colors in drawtext ffmpeg. for example text='NATIONAL PARK' , now i want 'NATIONAL' in blue and 'PARK' in red.

How can i do that in FFmpeg.

Upvotes: 4

Views: 2228

Answers (1)

user12656282
user12656282

Reputation: 41

try this :


ffmpeg -hide_banner -i inp.jpg \
    -vf "drawtext=text='BLUE':fontcolor=blue:fontsize=20:x=10:y=10:,  drawtext=text='RED':fontcolor=red:fontsize=20:x=10+60+10:y=10:" \
    -y out.jpg

;-)

Upvotes: 2

Related Questions