VirtualBox

source: vbox/trunk/src/libs/ffmpeg-20060710/doc/hooks.html@ 5776

Last change on this file since 5776 was 5776, checked in by vboxsync, 17 years ago

ffmpeg: exported to OSE

File size: 10.1 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
2<html>
3<!-- Created on June, 30 2006 by texi2html 1.76 -->
4<!--
5Written by: Lionel Cons <[email protected]> (original author)
6 Karl Berry <[email protected]>
7 Olaf Bachmann <[email protected]>
8 and many others.
9Maintained by: Many creative people <[email protected]>
10Send bugs and suggestions to <[email protected]>
11
12-->
13<head>
14<title>Video Hook Documentation: 1. Introduction</title>
15
16<meta name="description" content="Video Hook Documentation: 1. Introduction">
17<meta name="keywords" content="Video Hook Documentation: 1. Introduction">
18<meta name="resource-type" content="document">
19<meta name="distribution" content="global">
20<meta name="Generator" content="texi2html 1.76">
21<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
22<style type="text/css">
23<!--
24a.summary-letter {text-decoration: none}
25pre.display {font-family: serif}
26pre.format {font-family: serif}
27pre.menu-comment {font-family: serif}
28pre.menu-preformatted {font-family: serif}
29pre.smalldisplay {font-family: serif; font-size: smaller}
30pre.smallexample {font-size: smaller}
31pre.smallformat {font-family: serif; font-size: smaller}
32pre.smalllisp {font-size: smaller}
33span.sansserif {font-family:sans-serif; font-weight:normal;}
34ul.toc {list-style: none}
35-->
36</style>
37
38
39</head>
40
41<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
42
43<a name="SEC1"></a>
44<table cellpadding="1" cellspacing="1" border="0">
45<tr><td valign="middle" align="left">[ &lt; ]</td>
46<td valign="middle" align="left">[<a href="#SEC2" title="Next section in reading order"> &gt; </a>]</td>
47<td valign="middle" align="left"> &nbsp; </td>
48<td valign="middle" align="left">[ &lt;&lt; ]</td>
49<td valign="middle" align="left">[ Up ]</td>
50<td valign="middle" align="left">[ &gt;&gt; ]</td>
51<td valign="middle" align="left"> &nbsp; </td>
52<td valign="middle" align="left"> &nbsp; </td>
53<td valign="middle" align="left"> &nbsp; </td>
54<td valign="middle" align="left"> &nbsp; </td>
55<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
56<td valign="middle" align="left">[Contents]</td>
57<td valign="middle" align="left">[Index]</td>
58<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
59</tr></table>
60<h1 class="chapter"> 1. Introduction </h1>
61
62
63<p>The video hook functionality is designed (mostly) for live video. It allows
64the video to be modified or examined between the decoder and the encoder.
65</p>
66<p>Any number of hook modules can be placed inline, and they are run in the
67order that they were specified on the ffmpeg command line.
68</p>
69<p>Three modules are provided and are described below. They are all intended to
70be used as a base for your own modules.
71</p>
72<p>Modules are loaded using the -vhook option to ffmpeg. The value of this parameter
73is a space separated list of arguments. The first is the module name, and the rest
74are passed as arguments to the Configure function of the module.
75</p>
76<hr size="6">
77<a name="SEC2"></a>
78<table cellpadding="1" cellspacing="1" border="0">
79<tr><td valign="middle" align="left">[<a href="#SEC1" title="Previous section in reading order"> &lt; </a>]</td>
80<td valign="middle" align="left">[<a href="#SEC3" title="Next section in reading order"> &gt; </a>]</td>
81<td valign="middle" align="left"> &nbsp; </td>
82<td valign="middle" align="left">[<a href="#SEC1" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
83<td valign="middle" align="left">[<a href="#SEC1" title="Up section"> Up </a>]</td>
84<td valign="middle" align="left">[ &gt;&gt; ]</td>
85<td valign="middle" align="left"> &nbsp; </td>
86<td valign="middle" align="left"> &nbsp; </td>
87<td valign="middle" align="left"> &nbsp; </td>
88<td valign="middle" align="left"> &nbsp; </td>
89<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
90<td valign="middle" align="left">[Contents]</td>
91<td valign="middle" align="left">[Index]</td>
92<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
93</tr></table>
94<h2 class="section"> 1.1 null.c </h2>
95
96<p>This does nothing. Actually it converts the input image to RGB24 and then converts
97it back again. This is meant as a sample that you can use to test your setup.
98</p>
99<hr size="6">
100<a name="SEC3"></a>
101<table cellpadding="1" cellspacing="1" border="0">
102<tr><td valign="middle" align="left">[<a href="#SEC2" title="Previous section in reading order"> &lt; </a>]</td>
103<td valign="middle" align="left">[<a href="#SEC4" title="Next section in reading order"> &gt; </a>]</td>
104<td valign="middle" align="left"> &nbsp; </td>
105<td valign="middle" align="left">[<a href="#SEC1" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
106<td valign="middle" align="left">[<a href="#SEC1" title="Up section"> Up </a>]</td>
107<td valign="middle" align="left">[ &gt;&gt; ]</td>
108<td valign="middle" align="left"> &nbsp; </td>
109<td valign="middle" align="left"> &nbsp; </td>
110<td valign="middle" align="left"> &nbsp; </td>
111<td valign="middle" align="left"> &nbsp; </td>
112<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
113<td valign="middle" align="left">[Contents]</td>
114<td valign="middle" align="left">[Index]</td>
115<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
116</tr></table>
117<h2 class="section"> 1.2 fish.c </h2>
118
119<p>This implements a 'fish detector'. Essentially it converts the image into HSV
120space and tests whether more than a certain percentage of the pixels fall into
121a specific HSV cuboid. If so, then the image is saved into a file for processing
122by other bits of code.
123</p>
124<p>Why use HSV? It turns out that HSV cuboids represent a more compact range of
125colors than would an RGB cuboid.
126</p>
127<hr size="6">
128<a name="SEC4"></a>
129<table cellpadding="1" cellspacing="1" border="0">
130<tr><td valign="middle" align="left">[<a href="#SEC3" title="Previous section in reading order"> &lt; </a>]</td>
131<td valign="middle" align="left">[ &gt; ]</td>
132<td valign="middle" align="left"> &nbsp; </td>
133<td valign="middle" align="left">[<a href="#SEC1" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
134<td valign="middle" align="left">[<a href="#SEC1" title="Up section"> Up </a>]</td>
135<td valign="middle" align="left">[ &gt;&gt; ]</td>
136<td valign="middle" align="left"> &nbsp; </td>
137<td valign="middle" align="left"> &nbsp; </td>
138<td valign="middle" align="left"> &nbsp; </td>
139<td valign="middle" align="left"> &nbsp; </td>
140<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
141<td valign="middle" align="left">[Contents]</td>
142<td valign="middle" align="left">[Index]</td>
143<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
144</tr></table>
145<h2 class="section"> 1.3 imlib2.c </h2>
146
147<p>This allows a caption to be placed onto each frame. It supports inserting the
148time and date. By using the imlib functions, it would be easy to add your own
149graphical logo, add a frame/border, etc.
150</p>
151
152<hr size="6">
153<a name="SEC_About"></a>
154<table cellpadding="1" cellspacing="1" border="0">
155<tr><td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
156<td valign="middle" align="left">[Contents]</td>
157<td valign="middle" align="left">[Index]</td>
158<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
159</tr></table>
160<h1>About This Document</h1>
161<p>
162 This document was generated on <i>June, 30 2006</i> using <a href="http://texi2html.cvshome.org/"><i>texi2html 1.76</i></a>.
163</p>
164<p>
165 The buttons in the navigation panels have the following meaning:
166</p>
167<table border="1">
168 <tr>
169 <th> Button </th>
170 <th> Name </th>
171 <th> Go to </th>
172 <th> From 1.2.3 go to</th>
173 </tr>
174 <tr>
175 <td align="center"> [ &lt; ] </td>
176 <td align="center">Back</td>
177 <td>previous section in reading order</td>
178 <td>1.2.2</td>
179 </tr>
180 <tr>
181 <td align="center"> [ &gt; ] </td>
182 <td align="center">Forward</td>
183 <td>next section in reading order</td>
184 <td>1.2.4</td>
185 </tr>
186 <tr>
187 <td align="center"> [ &lt;&lt; ] </td>
188 <td align="center">FastBack</td>
189 <td>beginning of this chapter or previous chapter</td>
190 <td>1</td>
191 </tr>
192 <tr>
193 <td align="center"> [ Up ] </td>
194 <td align="center">Up</td>
195 <td>up section</td>
196 <td>1.2</td>
197 </tr>
198 <tr>
199 <td align="center"> [ &gt;&gt; ] </td>
200 <td align="center">FastForward</td>
201 <td>next chapter</td>
202 <td>2</td>
203 </tr>
204 <tr>
205 <td align="center"> [Top] </td>
206 <td align="center">Top</td>
207 <td>cover (top) of document</td>
208 <td> &nbsp; </td>
209 </tr>
210 <tr>
211 <td align="center"> [Contents] </td>
212 <td align="center">Contents</td>
213 <td>table of contents</td>
214 <td> &nbsp; </td>
215 </tr>
216 <tr>
217 <td align="center"> [Index] </td>
218 <td align="center">Index</td>
219 <td>index</td>
220 <td> &nbsp; </td>
221 </tr>
222 <tr>
223 <td align="center"> [ ? ] </td>
224 <td align="center">About</td>
225 <td>about (help)</td>
226 <td> &nbsp; </td>
227 </tr>
228</table>
229
230<p>
231 where the <strong> Example </strong> assumes that the current position is at <strong> Subsubsection One-Two-Three </strong> of a document of the following structure:
232</p>
233
234<ul>
235 <li> 1. Section One
236 <ul>
237 <li>1.1 Subsection One-One
238 <ul>
239 <li>...</li>
240 </ul>
241 </li>
242 <li>1.2 Subsection One-Two
243 <ul>
244 <li>1.2.1 Subsubsection One-Two-One</li>
245 <li>1.2.2 Subsubsection One-Two-Two</li>
246 <li>1.2.3 Subsubsection One-Two-Three &nbsp; &nbsp;
247 <strong>&lt;== Current Position </strong></li>
248 <li>1.2.4 Subsubsection One-Two-Four</li>
249 </ul>
250 </li>
251 <li>1.3 Subsection One-Three
252 <ul>
253 <li>...</li>
254 </ul>
255 </li>
256 <li>1.4 Subsection One-Four</li>
257 </ul>
258 </li>
259</ul>
260
261<hr size="1">
262<p>
263 <font size="-1">
264 This document was generated on <i>June, 30 2006</i> using <a href="http://texi2html.cvshome.org/"><i>texi2html 1.76</i></a>.
265 </font>
266 <br>
267
268</p>
269</body>
270</html>
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette