码迷,mamicode.com
首页 >  
搜索关键字:avcodec    ( 58个结果
FFMPEG:压缩之H264编码(YUV420P->H264)
void CTest0Dlg::OnButton5() { // TODO: Add your control notification handler code here int nWidth = 720; int nHeight= 576; av_register_all(); avcodec_register_all(); AVFrame *m_pYUVFrame = new AVFrame...
分类:其他好文   时间:2014-11-26 16:43:12    阅读次数:454
FFMPEG:H264解码-SDL显示(RGB32、RGB24、YUV420P、YUV422)
//添加的库:avcodec.lib avdevice.lib avfilter.lib avformat.lib avutil.lib swscale.lib   SDL.lib extern "C"{ #include #include #include #include #include };void SaveFrame(AVFrame *pFrame, int width, int...
分类:其他好文   时间:2014-11-25 18:34:02    阅读次数:401
ffmpeg源码分析五:ffmpeg调用x264编码器的过程分析 (转5)
原帖地址:http://blog.csdn.net/austinblog/article/details/25127533该文将以X264编码器为例,解释说明FFMPEG是怎么调用第三方编码器来进行编码的。所有编码器和解码器都是在avcodec_register_all()函数中注册的。从中可以找到...
分类:其他好文   时间:2014-11-04 19:34:11    阅读次数:294
FFMPEG H264/H265 编码延迟问题
最新使用FFmpeg进行H264的编码时,发现视频编码有延迟,不是实时编码,进过一番研究发现,只要在调用avcodec_open2函数 打开编码器时,设置AVDictionary参数即可,关键代码如下: avcodec_open2函数: int avcodec_open2(AVCodecContext *avctx, const AVCodec *codec, AVDiction...
分类:其他好文   时间:2014-10-23 16:26:29    阅读次数:648
ffmpeg编码
1. 注册所有容器格式和CODEC:av_register_all()2. 打开文件:av_open_input_file()3. 从文件中提取流信息:av_find_stream_info()4. 穷举所有的流,查找其中种类为CODEC_TYPE_VIDEO5. 查找对应的解码器:avcodec_...
分类:其他好文   时间:2014-08-26 18:57:56    阅读次数:344
FFMPEG more samples than frame size (avcodec_encode_audio2) 的解决方案
在实际的项目中,从音频设备采集到的音频的类型和编码器类型(aac ,amr)通常是不一致的。那么我们首先需要做重采样的过程。利用swr_convert 重新采样。这时候我们可能会遇到另外一个问题。就是在encode_audio的时候遇到more samples than frame size (av...
分类:其他好文   时间:2014-06-13 13:55:45    阅读次数:405
FFmpeg SDK开发模型之一:解码器
简介 本例讲解了如何使用ffmpeg SDK解码媒体文件; 一、源代码 #include #include #include #include #ifdef HAVE_AV_CONFIG_H #undef HAVE_AV_CONFIG_H #endif #include "libavcodec/avcodec.h" #define INBUF_SIZE 4...
分类:其他好文   时间:2014-05-10 08:38:17    阅读次数:479
从ffmpeg filter里出来的数据直接送给avcodec_encode_audio2编码,写文件有错。
http://hi.baidu.com/mingyuejingque/item/78e71aff57ae9ec5a835a2e4感谢mingyuejingquest = avformat_new_stream( m_oc, NULL); if (!st) { fprintf(stderr, ...
分类:其他好文   时间:2014-04-29 10:41:46    阅读次数:441
58条   上一页 1 ... 4 5 6
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!