08 2017 档案

摘要:一、安装DirectShow。 我装的是DirectShow SDK 9.0b。安装程序名为DXSDK_Jun10.exe。 下载地址:https://pan.baidu.com/s/1kURma3t 下载地址:https://pan.baidu.com/s/1slfmSMD 二、准备需要的静态链接 阅读全文
posted @ 2017-08-31 17:47 poisson_notes 阅读(607) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-08-16 15:24 poisson_notes 阅读(250) 评论(0) 推荐(0)
摘要:将YUV进行x264编码的时候,建议将 i_threads 参数设置成 X264_SYNC_LOOKAHEAD_AUTO//* 取空缓冲区继续使用不死锁的保证. 否则有可能编码出来的数据会出现IDR_SLICE集中在一起的情况, 这样会导致rtmp推流出去的数据出现乱码,类似下面的情况 阅读全文
posted @ 2017-08-15 14:09 poisson_notes 阅读(481) 评论(0) 推荐(0)
摘要:在使用dshow抓取摄像头数据,调用dshow的回调函数,如果发现SampleTime一直为0,如下图 那极有可能是使用RenderStream函数连接Filter时,指定的第一个参数为 PIN_CATEGORY_PREVIEW 如下图 要让回调函数时间不为零,要把参数设置为 PIN_CATEGOR 阅读全文
posted @ 2017-08-10 15:07 poisson_notes 阅读(442) 评论(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 阅读(3168) 评论(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 阅读(4613) 评论(0) 推荐(0)