本文简单分析FFmpeg的avcodec_open2()函数。该函数用于初始化一个视音频编解码器的AVCodecContext。...
分类:
其他好文 时间:
2015-03-08 01:28:04
阅读次数:
674
附录 Andoird/NDK环境下FFmpeg及相关库的编译
本篇介绍在Android/Ndk环境下FFmpeg的编译及使用, FFmpeg自带了H264、AAC、MP3的解码器,但却没有(或没有好的)相应的编码器。相应的编码器需要使用第三方库。推荐使用的第三方库为x264(H264编码) 、FDK_AAC(AAC编码),lame(MP3编码)。
在顺序上,应该先编译好第三方库,最后再编...
分类:
移动开发 时间:
2015-03-07 18:44:02
阅读次数:
236
tbn= the time base in AVStream that has come from the containertbc= the time base in AVCodecContext for the codec used for a particular streamtbr= tbr...
分类:
其他好文 时间:
2015-03-07 15:25:09
阅读次数:
227
本文简单分析FFmpeg的avformat_close_input()函数。该函数用于关闭一个AVFormatContext,一般情况下是和avformat_open_input()成对使用的。...
分类:
其他好文 时间:
2015-03-07 11:36:51
阅读次数:
281
av_dup_packet函数av_dup_packet会为destruct指针为av_destruct_packet_nofree的AVPacket新建一个缓冲区,将原有的缓冲区数据拷贝至新缓冲区,置data的值为新缓冲区的地址,同时设置destruct指针为av_destruct_packet,...
分类:
其他好文 时间:
2015-03-07 11:22:56
阅读次数:
302
使用ffmpeg类库进行开发的时候,打开流媒体(或本地文件)的函数是avformat_open_input()。其中打开网络流的话,前面要加上函数avformat_network_init()。一般情况下,只要传入流媒体的url就可以了。但是在打开某些流媒体的时候,可能需要附加一些参数。例如在播放中...
分类:
其他好文 时间:
2015-03-06 14:11:34
阅读次数:
175
本文简单分析FFmpeg中一个常用的函数:avformat_find_stream_info()。该函数可以读取一部分视音频数据并且获得一些相关的信息。...
分类:
其他好文 时间:
2015-03-06 12:50:11
阅读次数:
428
本文记录FFmpeg的两个API函数:avcodec_find_encoder()和avcodec_find_decoder()。avcodec_find_encoder()用于查找FFmpeg的编码器,avcodec_find_decoder()用于查找FFmpeg的解码器。...
分类:
Web程序 时间:
2015-03-06 12:44:00
阅读次数:
480
http://blog.csdn.net/qq_19079937/article/details/43191211在MP4结构体系里面,hdlr字段(具体在root->moov->trak->mdia->hdlr)里面包含了该流是视频or音频or字母。ffmpeg代码:在ffmpeg代码里面,使用流...
分类:
其他好文 时间:
2015-03-05 18:57:00
阅读次数:
195
followstepsfrom:http://scateu.me/2014/03/06/compile-ffmpeg-on-linux-with-x264-and-x265-support.htmltarfilefromhttp://download.videolan.org/contrib/安装x265https://bitbucket.org/multicoreware/x265/wiki/Homesudoapt-getinstallmercurialcmakecmake-curses-guibuil..
分类:
系统相关 时间:
2015-03-05 07:01:27
阅读次数:
216