ffmpeg drawtext

写多行文字



ffmpeg -i bg.mp4 -filter_complex [0]drawtext=ft_load_flags=render:shadowcolor=0xaaaaaa66:shadowx=5:shadowy=2:fontcolor=white:fontsize=80:text='A':x=1033:y=77:enable='between(t,5.1,8.0)'[aa];[aa]drawtext=ft_load_flags=render:shadowcolor=0xaaaaaa66:shadowx=5:shadowy=2:fontcolor=white:fontsize=80:text='B':x=1033:y=177:enable='between(t,5.6,8.0)'[bb];[bb]drawtext=ft_load_flags=render:shadowcolor=0xaaaaaa66:shadowx=5:shadowy=2:fontcolor=white:fontsize=80:text='c':x=1033:y=277:enable='between(t,6.0,8.0)'[cc];[cc]drawtext=ft_load_flags=render:shadowcolor=0xaaaaaa66:shadowx=5:shadowy=2:fontcolor=white:fontsize=80:text='d':x=1033:y=377:enable='between(t,6.4,8.0)' -t 27 show2.mp4

参考文档

https://ffmpeg.org/ffmpeg-filters.html#drawtext-1

你可能感兴趣的:(ffmpeg)