码迷,mamicode.com
首页 >  
搜索关键字:AVFrame    ( 27个结果
ffmpeg实现音频resample(重采样)(二)
本篇文章将增加AVFifoBuffer和音频样本是av_sample_fmt_is_planar的样式采样率讲解,下面上代码 AVFifoBuffer * m_fifo = NULL; SwrContext * init_pcm_resample(AVFrame *in_frame, AVFrame *out_frame) { SwrContext * swr_ctx = NULL;...
分类:其他好文   时间:2015-08-06 17:00:23    阅读次数:1227
FFMPEG解码过程
AVFormatContext* m_pFormatCtx; AVCodecContext * m_pCodecCtx; AVCodec* m_pCodec;AVFrame* m_pFrame;AVPacket m_AVPkt;// 注册库av_register_all();avformat_net...
分类:其他好文   时间:2015-07-16 13:16:04    阅读次数:296
FFmpeg源代码简单分析:常见结构体(AVFormatContext,AVFrame等)的初始化和销毁
本文简单分析FFmpeg常见结构体的初始化和销毁函数的源代码。常见的结构体在文章:《FFMPEG中最关键的结构体之间的关系》中已经有过叙述,包括:AVFormatContext:统领全局的基本结构体。主要用于处理封装格式(FLV/MKV/RMVB等)。AVIOContext:输入输出对应的结构体,用于输入输出(读写文件,RTMP协议等)。AVStream,AVCodecContext:视音频流对应...
分类:其他好文   时间:2015-03-03 16:37:40    阅读次数:6534
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
AVPicture、AVFrame和AVPacket
http://blog.csdn.net/ym012/article/details/6540065从定义上可知,AVPicture是AVFrame的一个子集,他们都是数据流在编解过程中用来保存数据缓存的对像,从int av_read_frame(AVFormatContext *s, AVPack...
分类:其他好文   时间:2014-10-29 14:22:33    阅读次数:283
如何强制ffmpeg编码时输出一个关键帧
http://blog.csdn.net/ashlingr/article/details/7829429如何强制ffmpeg编码时输出一个关键帧如何强制ffmpeg编码时输出一个关键帧AVCodecContext *c //编码器环境句柄AVFrame* f ...
分类:其他好文   时间:2014-05-09 11:12:10    阅读次数:373
27条   上一页 1 2 3
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!