Opened 6 years ago
Closed 6 years ago
#7917 closed defect (fixed)
how can i show ':' in text
Reported by: | hezhixiong | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | unspecified | Keywords: | text with : |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
as below A, the text just show "123456", but, as below B, the text show "中国:123456". how can i show ':' in text?
A: ffmpeg -y -i input.mp4 -i logo.png -filter_complex "[1:v]scale=110:40[logo];[0:v][logo]overlay=x='if(lt(t,9),48,main_w-overlay_w-20)':y='if(lt(t,9),20,main_h-overlay_h-43)',drawtext=text='中国:123456':x='if(lt(t,18/2),20,w-tw-20)':y='if(lt(t,18/2),65,h-th-20)':fontfile=msyh.ttf:fontsize=20:fontcolor=white" output.mp4
B: ffmpeg -y -i input.mp4 -i logo.png -filter_complex "[1:v]scale=110:40[logo];[0:v][logo]overlay=x='if(lt(t,9),48,main_w-overlay_w-20)':y='if(lt(t,9),20,main_h-overlay_h-43)',drawtext=text='中国:123456':x='if(lt(t,18/2),20,w-tw-20)':y='if(lt(t,18/2),65,h-th-20)':fontfile=msyh.ttf:fontsize=20:fontcolor=white" output.mp4
i have solved it.
text='中国:123456' => text='中国\:123456'