上一页 1 2 3 4 5 6 7 ··· 22 下一页
摘要: 涉及的接口有: IMMDeviceEnumerator IMMDevice IAudioClient IAudioCaptureClient 主要过程: 创建多媒体设备枚举器(IMMDeviceEnumerator) 通过多媒体设备枚举器获取声卡接口(IMMDevice) 通过声卡接口获取声卡客户端 阅读全文
posted @ 2017-09-05 17:05 poisson_notes 阅读(6879) 评论(3) 推荐(1)
摘要: #include "stdafx.h" /************************音频的输入输出设备**************************/ #include #include #include #define EXIT_ON_ERROR(hres) \ if (FAILED(hres)) { goto Exit; } #defin... 阅读全文
posted @ 2017-09-01 14:15 poisson_notes 阅读(1525) 评论(0) 推荐(0)
摘要: 一、安装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 阅读(596) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-08-16 15:24 poisson_notes 阅读(249) 评论(0) 推荐(0)
摘要: 将YUV进行x264编码的时候,建议将 i_threads 参数设置成 X264_SYNC_LOOKAHEAD_AUTO//* 取空缓冲区继续使用不死锁的保证. 否则有可能编码出来的数据会出现IDR_SLICE集中在一起的情况, 这样会导致rtmp推流出去的数据出现乱码,类似下面的情况 阅读全文
posted @ 2017-08-15 14:09 poisson_notes 阅读(476) 评论(0) 推荐(0)
摘要: 在使用dshow抓取摄像头数据,调用dshow的回调函数,如果发现SampleTime一直为0,如下图 那极有可能是使用RenderStream函数连接Filter时,指定的第一个参数为 PIN_CATEGORY_PREVIEW 如下图 要让回调函数时间不为零,要把参数设置为 PIN_CATEGOR 阅读全文
posted @ 2017-08-10 15:07 poisson_notes 阅读(434) 评论(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 阅读(3160) 评论(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 阅读(4606) 评论(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 阅读(403) 评论(0) 推荐(0)
摘要: 鉴于x264的参数众多,各种参数的配合复杂,为了使用者方便,x264建议如无特别需要可使用preset和tune设置。这套开发者推荐的参数较为合理,可在此基础上在调整一些具体参数以符合自己需要,手动设定的参数会覆盖preset和tune里的参数。 --preset的参数主要调节编码速度和质量的平衡, 阅读全文
posted @ 2017-05-25 16:50 poisson_notes 阅读(6696) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 22 下一页