上一页 1 2 3 4 5 6 7 ··· 22 下一页
摘要: 阅读全文
posted @ 2017-08-16 15:24 poisson_notes 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 将YUV进行x264编码的时候,建议将 i_threads 参数设置成 X264_SYNC_LOOKAHEAD_AUTO//* 取空缓冲区继续使用不死锁的保证. 否则有可能编码出来的数据会出现IDR_SLICE集中在一起的情况, 这样会导致rtmp推流出去的数据出现乱码,类似下面的情况 阅读全文
posted @ 2017-08-15 14:09 poisson_notes 阅读(454) 评论(0) 推荐(0) 编辑
摘要: 在使用dshow抓取摄像头数据,调用dshow的回调函数,如果发现SampleTime一直为0,如下图 那极有可能是使用RenderStream函数连接Filter时,指定的第一个参数为 PIN_CATEGORY_PREVIEW 如下图 要让回调函数时间不为零,要把参数设置为 PIN_CATEGOR 阅读全文
posted @ 2017-08-10 15:07 poisson_notes 阅读(423) 评论(0) 推荐(0) 编辑
摘要: BOOL RGB2YUV(LPBYTE RgbBuf, UINT nWidth, UINT nHeight, LPBYTE yuvBuf, unsigned long *len) { if (RgbBuf == NULL) { return FALSE; } int i, j; unsigned char*bufY, *bufU,... 阅读全文
posted @ 2017-08-09 16:43 poisson_notes 阅读(3131) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h" #include #include #include #define CHECK_HR(s) if (FAILED(s)) {return 1;} #define SAFE_RELEASE(p) do { if ((p)) { (p)->Release(); (p) = NULL; } } while(0) LRE... 阅读全文
posted @ 2017-08-08 14:32 poisson_notes 阅读(4470) 评论(0) 推荐(0) 编辑
摘要: YUV与RGB表现图像的方法不同,其采用的是一个亮度信号加两个色差信号的方式来表现图像。其中UV表示的是CbCr,常见的YUV格式有:YUV4:2:0,YUV4:2:2,YUV4:1:1,YUV4:4:4,其代表的是不同的图像压缩方式。YUV的存储方式分为打包模式(packed)和平面模式(plan 阅读全文
posted @ 2017-06-15 16:24 poisson_notes 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 鉴于x264的参数众多,各种参数的配合复杂,为了使用者方便,x264建议如无特别需要可使用preset和tune设置。这套开发者推荐的参数较为合理,可在此基础上在调整一些具体参数以符合自己需要,手动设定的参数会覆盖preset和tune里的参数。 --preset的参数主要调节编码速度和质量的平衡, 阅读全文
posted @ 2017-05-25 16:50 poisson_notes 阅读(6457) 评论(0) 推荐(0) 编辑
摘要: libx264 版本是 128libfaac 版本是 1.28 1、帧的划分 1.1 H.264 帧 对于 H.264 而言每帧的界定符为 00 00 00 01 或者 00 00 01。 比如下面的 h264 文件片断这就包含三帧数据: 第一帧是 00 00 00 01 67 42 C0 28 D 阅读全文
posted @ 2017-05-25 16:30 poisson_notes 阅读(2760) 评论(0) 推荐(0) 编辑
摘要: FFMPEG的很多结构中有AVRational time_base;这样的一个成员,它是AVRational结构的 typedef struct AVRational{ int num; ///< numerator int den; ///< denominator } AVRational; AVRational这个结构标识一个分数,num为分数,den为分母。 ... 阅读全文
posted @ 2017-05-25 15:36 poisson_notes 阅读(711) 评论(0) 推荐(0) 编辑
摘要: C++有六个默认函数:分别是 1、default构造函数; 2、默认拷贝构造函数; 3、默认析构函数; 4、赋值运算符; 5、取值运算符; 6、取值运算符const; 阅读全文
posted @ 2017-03-16 20:01 poisson_notes 阅读(273) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 22 下一页