Click here to Skip to main content
11,481,404 members (63,405 online)
Click here to Skip to main content
Add your own
alternative version

Capturing Video from Web-camera on Windows 7 and 8 by using Media Foundation

, 10 Apr 2013 CPOL 43.8K 24.8K 51
Simple lib for capturing video from web-camera by using Media Foundation
SimpleCapture-exe.zip
Release
msvcp110.dll
msvcr110.dll
SimpleCapture.exe
SimpleCaptureVS2012.zip
SimpleCapture
Backup
SimpleCapture.aps
SimpleCapture.v11.suo
SimpleCapture.vcxproj.filters
SimpleCapture.vcxproj.user
videoInput.lib
TestVideoInputVS2012x86-noexe.zip
TestVideoInput
Debug
TestVideoInput.ilk
ipch
testvideoinput-d1a6bc1c
testvideoinput-2a8f7f73.ipch
TestVideoInput.v11.suo
TestVideoInput
include
opencv
opencv2
calib3d
contrib
core
features2d
flann
gpu
device
detail
highgui
imgproc
legacy
ml
nonfree
objdetect
ocl
photo
stitching
detail
superres
ts
video
videostab
lib
opencv_core248d.lib
opencv_highgui248d.lib
TestVideoInput.vcxproj.filters
videoInput
videoInput.vcxproj.filters
videoInput.vcxproj.user
TestVideoInputVS2012x86.zip
opencv_core248d.dll
opencv_highgui248d.dll
TestVideoInput.exe
TestVideoInput.ilk
testvideoinput-2a8f7f73.ipch
TestVideoInput.v11.suo
opencv_core248d.lib
opencv_highgui248d.lib
TestVideoInput.vcxproj.filters
videoInput.vcxproj.filters
videoInput.vcxproj.user
videoinput-staticlib-vs2012x86-noexe.zip
videoInput.lib
videoInput-staticlib-VS2012x86.zip
videoInput.lib
videoInputVS2012.zip
videoInput
videoInput.vcxproj.filters
videoInput.vcxproj.user
SimpleCapture Sample
================================
Demonstrates how to preview video from a capture device using Media Foundation.


Sample Language Implementations
===============================
C++

Files:
=============================================
Preview.cpp
Preview.h
readme.txt
resource.h
SimpleCapture.rc
SimpleCapture.sln
SimpleCapture.vcproj
winmain.cpp


To build the sample using the command prompt:
=============================================
     1. Open the Command Prompt window and navigate to the SimpleCapture directory.
     2. Type msbuild SimpleCapture.sln.


To build the sample using Visual Studio (preferred method):
===========================================================
     1. Open Windows Explorer and navigate to the SimpleCapture directory.
     2. Double-click the icon for the SimpleCapture.sln file to open the file in Visual Studio.
     3. In the Build menu, select Build Solution. The application will be built in the default \Debug or \Release directory.


To run the sample:
=================
     1. Navigate to the directory that contains the new executable, using the command prompt or Windows Explorer.
     2. Type SimpleCapture.exe at the command line, or double-click the icon for SimpleCapture.exe to launch it from Windows Explorer.
     

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Evgeny Pereguda
Software Developer
Australia Australia
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150520.1 | Last Updated 10 Apr 2013
Article Copyright 2013 by Evgeny Pereguda
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid