Reputation: 51
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
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