📄 install.dshow.html
字号:
<html>
<head>
<title>Installing videoIO on Windows</title>
<style type="text/css">
body { font-family: cambria,roman,times,serif }
h1 { font-family: candara,"arial narrow",arial,helvetica,sans-serif }
h2 { font-family: candara,"arial narrow",arial,helvetica,sans-serif; border-top: solid medium black; padding-top:0.25em; margin-top:1.5em }
h3 { font-family: candara,"arial narrow",arial,helvetica,sans-serif; padding-top:0.75em; padding-bottom:0px; margin-bottom:0px }
tt { background-color:#eeEEff; font-family: consolas,"lucida console","courier new",monospace; font-size:small }
pre { background-color:#eeEEff; font-family: consolas,"lucida console","courier new",monospace; font-size:small }
div.quick { font-style:italic; border: solid thin black; background-color:#9999ff; margin:1em; padding:0.5em }
div.expl { background-color:#ccCCff; border: solid thin black; margin:1em; padding:0.5em }
td.expl { background-color:#ccCCff; padding:0.5em; }
td { padding:0px; vertical-align:top }
blockquote { margin-top:0px; margin-bottom:0px }
pre { margin-top:0px; margin-bottom:0px }
ul.left { padding-left:1.25em; }
li { padding-bottom:0.5em; padding-top:0.5em }
li.tight { padding-bottom:0px; padding-top:0px; padding-right:1em }
</style>
<script type="text/javascript">
var os = "all";
var matlab = "all";
var vs = "all";
function isXp() { return os=='xp32' || os=='xp64'; }
function mightBeXp() { return os=='xp32' || os=='xp64' || os=='all'; }
function isVista() { return os=='vista32' || os=='vista64'; }
function mightBeVista() { return os=='vista32' || os=='vista64' || os=='all'; }
function mightBeWin32() { return os=='vista32' || os=='xp32' || os=='all'; }
function mightBeWin64() { return os=='vista64' || os=='xp64' || os=='all'; }
function mightBeMat32() { return matlab=='mat32' || matlab=='all'; }
function mightBeMat64() { return matlab=='mat64' || matlab=='all'; }
function mightBeVs2003() { return vs=='vs2003' || vs=='all'; }
function mightBeVs2005() { return vs=='vs2005' || vs=='all'; }
function mightBeVs2008() { return vs=='vs2008' || vs=='all'; }
function updateVisElm(self,visstyle) {
var cond = self.getAttribute('cond');
var doshow = eval(cond);
if (doshow) {
self.style.display = visstyle;
} else {
self.style.display = 'none';
}
}
function updateVisibilityForATag(tagname,visstyle) {
var elms = document.getElementsByTagName(tagname);
for (var i=0; i<elms.length; i++) {
if ("vis" == elms[i].id) {
updateVisElm(elms[i],visstyle);
}
}
}
function updateVisibility() {
updateVisibilityForATag('p', 'block');
updateVisibilityForATag('div', 'block');
updateVisibilityForATag('span', 'inline');
}
function onChange() {
// extract checkbox values
for (var i=0; i<document.forms[0].elements.length; i++) {
var elm = document.forms[0].elements[i];
if (elm.checked) {
eval(elm.name + "='" + elm.value + "'");
}
}
// update display attributes
updateVisibility();
}
</script>
</head>
<body onload="onChange()">
<!-- ####################################################################### -->
<!-- ####################################################################### -->
<!-- ####################################################################### -->
<h1>Installing videoIO on Windows</h1>
<a href="http://sourceforge.net/projects/videoio">videoIO</a> is a library
written by <a href="http://people.csail.mit.edu/dalleyg/">Gerald Dalley</a>
designed to allow easy and efficient reading and
writing of video files in Matlab on Windows and Linux. It is designed to
enhance and/or complement other options that are available as of February
2008.
<p>This file describes how to set up the videoIO toolbox on a 32-bit or 64-bit
Windows platform. See <a href="README.txt">README.txt</a> for a more general
description of this library and tips on using it.
<p>Users of Windows XP, Windows Server 2003, or Windows Vista may try skipping to
the <a href="#matpath">Matlab Path</a> section of this document since
precompiled binary mex files are provided with this distribution. If there are
any errors in running the test script, read this whole document.
<noscript>
<p><b>Javascript appears to be disabled in your browser. If you use a
Javascript-enabled browser and enable Javascript, this document will
auto-adjust to the machine configuration you specify.
</b></p>
</noscript>
<!-- ####################################################################### -->
<!-- ####################################################################### -->
<!-- ####################################################################### -->
<a name="prereq">
<h2>Prerequisites Overview</h2>
<div class="quick">Quick: at least skim all of this section. Select
appropriate radio buttons to simplify the rest of the document.</div>
This installation procedure has been tested with a number of different
configurations. All supported combinations are given below. To remove steps
that do not apply to your computer, select the closest matches to your system.
<br/><br/>
<form name="selform">
<table>
<tr>
<td colspan="2"><h3>Knowledge</h3></td>
</tr>
<tr>
<td>
</td>
<td class="expl">
We assume you have at least a passing familiarity with compiling
C/C++ programs and that you know what environment variables are (or
can <a href="#env">follow directions</a> exactly).
</td>
</tr>
<tr>
<td colspan="2"><h3>Operating System</h3></td>
</tr>
<tr>
<td>
<nobr><input type="radio" name="os" onchange="onChange()" value="xp32">Windows XP Pro 32-bit</input> </nobr><br/>
<nobr><input type="radio" name="os" onchange="onChange()" value="xp64">Windows XP Pro 64-bit</input> (untested) </nobr><br/>
<nobr><input type="radio" name="os" onchange="onChange()" value="vista32">Windows Vista 32-bit</input> (untested) </nobr><br/>
<nobr><input type="radio" name="os" onchange="onChange()" value="vista64">Windows Vista 64-bit</input> </nobr><br/>
<nobr><input type="radio" name="os" onchange="onChange()" value="all" checked="checked">Show all</input> </nobr>
</td>
<td class="expl">
You will probably need administrative privileges to install the 3rd
party libraries.
<p>The videoIO toolbox should work without modification on any version of
Vista, on 64-bit XP Pro, and on any version of Windows Server 2003. It should
work with Win2k+, maybe even Win95. To try it out, you'll need to modify
the <tt>WINVER</tt> macro in a few source files.
<p>If you use 64-bit Windows and 64-bit Matlab, you can only use
64-bit codecs. If you use 32-bit Matlab (on either 32-bit or 64-bit
Windows), you can only use 32-bit codecs.
<p>We assume the user has already installed the desired operating system.</p>
</td>
</tr>
<tr>
<td colspan="2"><h3>Matlab</h3></td>
</tr>
<tr>
<td>
<nobr><input type="radio" name="matlab" onchange="onChange()" value="mat32"></input>32-bit Matlab (R2006a or later) </nobr><br/>
<nobr><input type="radio" name="matlab" onchange="onChange()" value="mat64"></input>64-bit Matlab (R2006a or later) </nobr><br/>
<nobr><input type="radio" name="matlab" onchange="onChange()" value="all" checked="checked">Show all</input> </nobr>
</td>
<td class="expl">
videoIO should work on Matlab 6.5 or later, but it has not been tested.
<p>Reminder: If you use 64-bit Matlab, you can only use 64-bit codecs
(and 32-bit Matlab can only use 32-bit codecs).
<p>We assume the user has already installed Matlab.</p>
</td>
</tr>
<tr>
<td colspan="2"><h3>Compiler</h3></td>
</tr>
<tr>
<td>
<nobr><input type="radio" name="vs" onchange="onChange()" value="vs2003"></input>Microsoft Visual Studio 2003 </nobr><br/>
<nobr><input type="radio" name="vs" onchange="onChange()" value="vs2005"></input>Microsoft Visual Studio 2005 </nobr><br/>
<input type="radio" name="vs" onchange="onChange()" value="vs2008"></input>Microsoft Visual Studio 2008<br/> (untested) <br/>
<nobr><input type="radio" name="vs" onchange="onChange()" value="all" checked="checked">Show all</input> </nobr>
</td>
<td class="expl">
videoIO may work on Visual Studio 6. It will probably not work with even
older versions. Let us know if you get it to work with an older version
or if you get it to work with the Express editions.
<p>Visual Studio 2003 has not been tested for 64-bit builds.</p>
<p><a href="#vs">Installation and configuration</a> instructions are given below.</p>
</td>
</tr>
<tr>
<a name="winsdksel"></a>
<td colspan="2"><h3>SDKs from Microsoft</h3></td>
</tr>
<tr>
<td>
<ul class="left">
<span cond="mightBeXp()" id="vis"><li class="tight"><nobr>Microsoft Windows SDK
<span cond="mightBeVista()" id="vis"><br/><em>(for Vista only)</em></span></nobr></li></span>
<span cond="mightBeVista()" id="vis"><li class="tight">Microsoft Windows Server<br/>
2003 R2 Platform SDK <span cond="mightBeXp()" id="vis"><br/><em>(for XP and 2003 only)</em></span></li></span>
<li>Microsoft DirectX SDK</li>
</ul>
</td>
<td class="expl">
<p cond="os=='all'" id="vis">
If you are using Vista, you need the "Windows SDK", not the "Platform
SDK". XP and Server 2003 need the Platform SDK instead.</p>
<p cond="mightBeXp()" id="vis">
Make sure you use the latest version of the Platform SDK (R2 as of
February 2008). Older versions require manually fixing some compiler
incompatibilities in Microsoft's source code.
</p>
<p>These SDKs provide important libraries for communicating with
DirectShow. Detailed installation instructions are given below.</p>
<p>
Installation instructions for
<span cond="mightBeXp()" id="vis">the <a href="#platformsdk">Platform SDK</a>, </span>
<span cond="mightBeVista()" id="vis">the <a href="#windowssdk">Windows SDK</a>, </span>
and the <a href="#dxsdk">DirectX SDK</a> are given below.
</p>
</td>
</tr>
<tr>
<td colspan="2"><h3>Codecs</h3></td>
</tr>
<tr>
<td>
<ul class="left">
<li class="tight">Windows Media 9 codec</li>
<li class="tight">An MPEG4 codec such as DivX, XviD, 3ivx, or ffdshow</li>
<li class="tight">An H264-compatible codec such as x2644 or ffdshow</li>
</ul>
</td>
<td class="expl">
<p>DirectShow provides a platform for encoders and decoders (codecs).
To encode or decode a particular video file, one must have the appropriate
codec installed. Given a compression ratio, modern MPEG4 and H264 codecs
can be fast and produce much higher quality results relative to
older codecs. The Windows Media 9 codec family is a set of codecs that
are proprietary Microsoft adaptations of MPEG4 and H264.
<p>Use <a href="http://update.microsoft.com">Windows Update</a> to
obtain the most recent version of Windows Media Player. The Windows
Media 9 (wmv3) codec will installed automatically. This codec is needed for
some tests, but otherwise is not necessary for using the library.
<p>Like Windows Media 9, the MPEG4 and H264 codecs are not strictly
necessary, but some tests will softly fail if they are not installed.
Here are some places to go for fully legal and free codecs (as of February
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -