Skip to content

5455945/VideoCapture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Windows
Build status

传统方式编译

Windows Video Audio Capture, Save BMP file

by QQ:39539883 2016-12-04

VideoCapture 是使用 DirectShow 开发的 windows视频、音频捕获demo。 重点是视频捕获截图功能。

build目录提供了vs2005 vs2008 vs2010 vs2012 vs2013 vs2015 的项目文件

提供了 ISampleGrabberCB接口,ISampleGrabber接口的定义头文件 qedit.h。

在win10下,win32/x64的各个版本测试通过,截图文件保存在%temp%\CaptureBmp\目录下面。

因为DirectShow需要对应的sdk,所以vs2010(含以下)需要正确安装sdk。我使用的vs2005的sdk。 vs2015是不需要单独安装sdk的。直接可以编译调试。

cmake编译

  1. Download VideoCapture(https://github.com/5455945/VideoCapture.git)
git clone --recursive https://github.com/5455945/VideoCapture.git
  1. Build VideoCapture.

on windows

cd VideoCapture

mkdir build1 & cd build1

cmake -G "Visual Studio 14 2015 Win64" ..

# cmake --build . --config Release

cmake --build . --config Debug
  1. run
# Release\VideoCapture.exe

Debug\VideoCapture.exe