ffmpeg
minpin171_sjd
这个作者很懒,什么都没留下…
展开
-
ffmpeg学习:avformat_open_input函数
ffmpeg版本4.11、概述int avformat_open_input(AVFormatContext **ps, const char *url, AVInputFormat *fmt, AVDictionary **options);函数打开输入流,url指向打开的流的路径,如本地文件路径或rtsp地址,fmt参数强制指定输入流格式。2、源码分析int av...翻译 2019-02-27 15:27:29 · 537 阅读 · 0 评论 -
ffmpeg学习:时间关系转换
ffmpeg版本:4.11、ffmpeg提供了不同时间基准间的转换函数,函数在libavutil/mathematics.c中实现,提供以下常用接口:int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq);int64_t av_rescale_q_rnd(int64_t a, AVRational bq, AVRati...翻译 2019-02-25 13:34:26 · 230 阅读 · 0 评论 -
ffmpeg学习:avformat_alloc_context函数
ffmpeg版本:4.11、概述AVFormatContext *avformat_alloc_context(void)函数用来申请AVFormatContext类型变量并初始化默认参数。申请的空间通过void avformat_free_context(AVFormatContext *s)函数释放。 2、源码分析AVFormatContext *avformat_al...翻译 2019-02-27 11:21:00 · 1297 阅读 · 0 评论