源地址:http://bbs.chinaffmpeg.com/forum.php?mod=viewthread&tid=359&extra=
//我还没测试,先保存下
| 1.环境:ubuntu16.04 64位 |
2.编解码使用nvidia的硬件加速接口
3.使用方式ffmpeg api调用;
4.video_filter_spec定义如下:
char *video_filter_spec = "drawtext=fontfile=FreeSerif.ttf:\
fontsize=36: \
fontcolor=yellow@1.0: \
x='if(gte(t,5), (main_w-mod(t*30,main_w+text_w)), NAN)':\
y=500:\
text='Hello, this is drawtext function,any more questsion can concat su.gao( sugao_cn@163.com )!' [text]; \
movie=/root/mscore/extern/source/logo/test.png [wm]; \
[text] [wm] overlay=0:0 [out]";
3698

被折叠的 条评论
为什么被折叠?



