摘要: 1 AVPackettypedefstructAVPacket {/*** Presentation timestamp in AVStream->time_base units; the time at which* the decompressed packet will be presented to the user.* Can be AV_NOPTS_VALUE if it is not stored in the file.* pts MUST be larger or equal to dts as presentation cannot happen before* de 阅读全文
posted @ 2013-05-28 16:05 lixq0203 阅读(407) 评论(0) 推荐(0) 编辑
摘要: 转:http://blog.chinaunix.net/uid-21564437-id-3027618.html1 avcodec_find_decoder()/*** Find a registered decoder with a matching codec ID.** @param id CodecID of the requested decoder* @return A decoder if one was found, NULL otherwise.*/AVCodec *avcodec_find_decoder(enumCodecID id);// 通过code ID查找一个已经 阅读全文
posted @ 2013-05-28 16:04 lixq0203 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 转自http://blog.chinaunix.net/uid-21564437-id-3027617.html本文对在使用ffmpeg进行音视频编解码时使用到的一些函数做一个简单介绍,我当前使用的ffmpeg版本为:0.8.5,因为本人发现在不同的版本中,有些函数名称会有点小改动,所以在此有必要说明下ffmpeg的版本号。 ffmpeg本人也是刚接触,本文将采用累加的方法逐个介绍我使用到的函数,如有不妥之处,还望谅解! 头文件引入方法:extern"C"{#include"libavcodec/avcodec.h"#include"libav 阅读全文
posted @ 2013-05-28 16:03 lixq0203 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 转自:http://my.oschina.net/cmffire/blog/11290引言:摄像头基本的功能还是视频传输,那么它是依靠怎样的原理来实现的呢?所谓视频传输:就是将图片一张张传到屏幕,由于传输速度很快,所以可以让大家看到连续动态的画面,就像放电影一样。一般当画面的传输数量达到每秒24帧时,画面就有了连续性。下边我们将介绍摄像头视频采集压缩及传输的整个过程。一.摄像头的工作原理(获取视频数据)摄像头的工作原理大致为:景物通过镜头(LENS)生成的光学图像投射到图像传感器表面上,然后转为电信号,经过A/D(模数转换)转换后变为数字图像信号,再送到数字信号处理芯片(DSP)中加工处理,再 阅读全文
posted @ 2013-05-28 13:19 lixq0203 阅读(390) 评论(0) 推荐(0) 编辑