摘要: 1 AVPackettypedef struct AVPacket { /** * Presentation timestamp in AVStream->time_base units; the time at which * the decompressed packet will be pre... 阅读全文
posted @ 2013-08-22 18:04 毛毛虫的薄刻 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1 avcodec_find_decoder()/*** Find a registered decoder with a matching codec ID.** @param id CodecID of the requested decoder* @return A decoder if on... 阅读全文
posted @ 2013-08-22 18:03 毛毛虫的薄刻 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 本文对在使用ffmpeg进行音视频编解码时使用到的一些函数做一个简单介绍,我当前使用的ffmpeg版本为:0.8.5,因为本人发现在不同的版本中,有些函数名称会有点小改动,所以在此有必要说明下ffmpeg的版本号。 ffmpeg本人也是刚接触,本文将采用累加的方法逐个介绍我使用到的函数,如有不妥之处... 阅读全文
posted @ 2013-08-22 18:01 毛毛虫的薄刻 阅读(154) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include void SaveFrame(AVFrame *pFrame, int width, int height, int iFrame) { FILE *pFile; char szFilename[32]; int y; // ... 阅读全文
posted @ 2013-08-22 17:54 毛毛虫的薄刻 阅读(159) 评论(0) 推荐(0) 编辑