美文网首页
简单的基于FFmpeg的AVfilter的例子 & FFmpeg

简单的基于FFmpeg的AVfilter的例子 & FFmpeg

作者: 路漫漫其修远兮Wzt | 来源:发表于2019-06-14 20:06 被阅读0次

    1.最简单的基于FFmpeg的AVfilter的例子-纯净版
    2.简单的基于FFmpeg的AVfilter的例子-修正版本
    3.ffmpeg:将YUV原始数据编码封装为mp4格式
    4.FFmpeg开发实战(六):使用 FFmpeg 将YUV数据编码为视频文件
    5.mac系统编译 ffmpeg ios 静态库
    6.FreeType-ERROR: libass not found using pkg-config
    Ref: http://www.linuxfromscratch.org/blfs/view/svn/general/freetype2.html


    作者:Kernel-Tomposon
    来源:CSDN
    原文:https://blog.csdn.net/shixin_0125/article/details/78400252
    版权声明:本文为博主原创文章,转载请附上博文链接!


    1.调用avfilter_get_by_name("ffbuffersink")时在新版本的ffmpeg要修改为avfilter_get_by_name("buffersink");否则返回指针为空,调用avfilter_graph_create_filter返回-12,在以前的版本则没有这个问题。

    2.调用avfilter_graph_parse_ptr解析字幕水印时返回-22,ffmpeg报错No such filter: 'drawtext',这是由于编译的时候没有开启FreeType字体引擎库,编译的时候./configure--enable-libfreetype。

    3.调用avfilter_graph_parse_ptr解析参数时返回-2,drawtext=fontfile=arial.ttf:fontcolor=red:fontsize=30:text='Lei Xiaohua':x=50:y=50里面的arial.ttf是字体文件,要保证字体文件在程序可以找到的目录,冒号在里面是分隔符,路径中不能带冒号。

    4.编译完ffmpeg后可能没有libpostproc.so这个库,编译的时候加入开启这个库的编译选项--enable-postproc。

    相关文章

      网友评论

          本文标题:简单的基于FFmpeg的AVfilter的例子 & FFmpeg

          本文链接:https://www.haomeiwen.com/subject/eikmfctx.html