文章分类 - ffmpeg
摘要:本 文分析一下ffmpeg注册编解码器等的函数avcodec_register_all()(注意不是av_register_all(),那是注册所有 东西的)。该函数在所有基于ffmpeg的应用程序中几乎都是第一个被调用的。只有调用了该函数,才能使用编解码器等。之前已经写过一篇文章了:ffmpeg ...
阅读全文
摘要:前一阵子看了一下ffmpeg的源代码,并且做了一些注释,在此贴出来以作备忘。本文分析一下ffmpeg注册复用器,编码器等的函数av_register_all()。该函数在所有基于ffmpeg的应用程序中几乎都是第一个被调用的。只有调用了该函数,才能使用复用器,编码器等。可见解复用器注册都是用REGI...
阅读全文
摘要:转码一般过程 _______ ______________| | | || input | demuxer | encoded data | decoder| file | ---------> | p...
阅读全文
摘要:#include #include #include #include #include #include #include void pstrcpy(char *buf, int buf_size, const char *str){ int c;//why int here char...
阅读全文
摘要:#include "libavformat/avformat.h" #include "libswscale/swscale.h" #include #include #include #include #include #include #include ...
阅读全文
摘要:av_register_all();//初始化ffmpeg库,如果系统里面的ffmpeg没配置好这里会出错 avformat_open_input(); avformat_find_stream_info();//查找文件的流信息 av_dump_format();//dump只是个调试函数,输出文...
阅读全文
摘要:#include "libavformat/avformat.h" #include "libswscale/swscale.h" //#include #include #include #include #include #include #include ...
阅读全文
摘要:#include "stdafx.h" #include "libavformat/avformat.h" #include "libswscale/swscale.h" //#include #include #include #include #include #...
阅读全文
摘要:---恢复内容开始---原文链接:http://my.oschina.net/u/555701/blog/56616ffmpeg是编解码的利器,用了很久,以前看过dranger 的教程,非常精彩,受益颇多,是学习ffmpeg api很好的材料。可惜的是其针对的ffmpeg版本已经比较老了,而ffmp...
阅读全文
摘要:原文链接 http://bbs.csdn.net/topics/390765390#include "stdafx.h"#include #include #include "Stream2Mp4.h"#include #include #include #include #include #inc...
阅读全文
摘要:原文链接:http://my.oschina.net/u/555701/blog/56748 AVCodecContext这是一个描述编解码器上下文的数据结构,包含了众多编解码器需要的参数信息,如下列出了部分比较重要的域:typedef struct AVCodecContext { .....
阅读全文

浙公网安备 33010602011771号