[FFmpeg-trac] #7917(undetermined:new): how can i show ':' in text
FFmpeg
trac at avcodec.org
Wed May 22 09:54:01 EEST 2019
#7917: how can i show ':' in text
-------------------------------------+-------------------------------------
Reporter: hezhixiong | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: text with : | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
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
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7917>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list