[FFmpeg-user] Is there any workaround to set drawbox color conditionally?

윤여경 zzzzz.co.kr at gmail.com
Thu May 16 09:51:01 EEST 2024


Hi, i want to know if it is possible that setting drawbox color
conditionally as drawtext like below
ffmpeg -hide_banner -fflags nobuffer -y -i - \
-filter_complex "drawtext=textfile=max_temp.txt: \
reload=16: \
x=640: y=264: fontsize=36: fontcolor=red, \
drawbox=x=640:y=300:w=640:h=480:color=red" \
...

I want to change box color if the value of max_temp.txt is higher than 50
or can i read color value from an external file just like textfile of
drawtext?


More information about the ffmpeg-user mailing list