• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>theoraparse: GStreamer Base Plugins 1.0 Plugins Reference Manual</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="index.html" title="GStreamer Base Plugins 1.0 Plugins Reference Manual">
8<link rel="up" href="ch01.html" title="gst-plugins-base Elements">
9<link rel="prev" href="gst-plugins-base-plugins-theoraenc.html" title="theoraenc">
10<link rel="next" href="gst-plugins-base-plugins-timeoverlay.html" title="timeoverlay">
11<meta name="generator" content="GTK-Doc V1.28 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13</head>
14<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16<td width="100%" align="left" class="shortcuts">
17<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span18                  <a href="#gst-plugins-base-plugins-theoraparse.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span19                  <a href="#gst-plugins-base-plugins-theoraparse.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
20</td>
21<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
22<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
23<td><a accesskey="p" href="gst-plugins-base-plugins-theoraenc.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
24<td><a accesskey="n" href="gst-plugins-base-plugins-timeoverlay.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
25</tr></table>
26<div class="refentry">
27<a name="gst-plugins-base-plugins-theoraparse"></a><div class="titlepage"></div>
28<div class="refnamediv"><table width="100%"><tr>
29<td valign="top">
30<h2><span class="refentrytitle"><a name="gst-plugins-base-plugins-theoraparse.top_of_page"></a>theoraparse</span></h2>
31<p>theoraparse</p>
32</td>
33<td class="gallery_image" valign="top" align="right"></td>
34</tr></table></div>
35<a name="GstTheoraParse"></a><div class="refsect1">
36<a name="gst-plugins-base-plugins-theoraparse.other"></a><h2>Types and Values</h2>
37<div class="informaltable"><table class="informaltable" width="100%" border="0">
38<colgroup>
39<col width="150px" class="name">
40<col class="description">
41</colgroup>
42<tbody><tr>
43<td class="datatype_keyword">struct</td>
44<td class="function_name"><a class="link" href="gst-plugins-base-plugins-theoraparse.html#GstTheoraParse-struct" title="struct GstTheoraParse">GstTheoraParse</a></td>
45</tr></tbody>
46</table></div>
47</div>
48<div class="refsect1">
49<a name="gst-plugins-base-plugins-theoraparse.object-hierarchy"></a><h2>Object Hierarchy</h2>
50<pre class="screen">    <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
51    <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
52        <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstObject.html#GstObject-struct">GstObject</a>
53            <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct">GstElement</a>
54                <span class="lineart">╰──</span> GstTheoraParse
55</pre>
56</div>
57<div class="refsect1">
58<a name="gst-plugins-base-plugins-theoraparse.description"></a><h2>Description</h2>
59<p>The theoraparse element will parse the header packets of the Theora
60stream and put them as the streamheader in the caps. This is used in the
61multifdsink case where you want to stream live theora streams to multiple
62clients, each client has to receive the streamheaders first before they can
63consume the theora packets.</p>
64<p>This element also makes sure that the buffers that it pushes out are properly
65timestamped and that their offset and offset_end are set. The buffers that
66theoraparse outputs have all of the metadata that oggmux expects to receive,
67which allows you to (for example) remux an ogg/theora file.</p>
68<p>In addition, this element allows you to fix badly synchronized streams. You
69pass in an array of (granule time, buffer time) synchronization points via
70the synchronization-points GValueArray property, and this element will adjust
71the granulepos values that it outputs. The adjustment will be made by
72offsetting all buffers that it outputs by a specified amount, and updating
73that offset from the value array whenever a keyframe is processed.</p>
74<div class="refsect3">
75<a name="id-1.2.101.6.5"></a><h4>Example pipelines</h4>
76<div class="informalexample">
77  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
78    <tbody>
79      <tr>
80        <td class="listing_lines" align="right"><pre>1</pre></td>
81        <td class="listing_code"><pre class="programlisting">gst<span class="gtkdoc opt">-</span>launch<span class="gtkdoc opt">-</span><span class="number">1.0</span> <span class="gtkdoc opt">-</span>v filesrc location<span class="gtkdoc opt">=</span>video<span class="gtkdoc opt">.</span>ogg <span class="gtkdoc opt">!</span> oggdemux <span class="gtkdoc opt">!</span> theoraparse <span class="gtkdoc opt">!</span> fakesink</pre></td>
82      </tr>
83    </tbody>
84  </table>
85</div>
86
87<p>
88 This pipeline shows that the streamheader is set in the caps, and that each
89buffer has the timestamp, duration, offset, and offset_end set.</p>
90<div class="informalexample">
91  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
92    <tbody>
93      <tr>
94        <td class="listing_lines" align="right"><pre>1
952</pre></td>
96        <td class="listing_code"><pre class="programlisting">gst<span class="gtkdoc opt">-</span>launch<span class="gtkdoc opt">-</span><span class="number">1.0</span> filesrc location<span class="gtkdoc opt">=</span>video<span class="gtkdoc opt">.</span>ogg <span class="gtkdoc opt">!</span> oggdemux <span class="gtkdoc opt">!</span> theoraparse \
97           <span class="gtkdoc opt">!</span> oggmux <span class="gtkdoc opt">!</span> filesink location<span class="gtkdoc opt">=</span>video<span class="gtkdoc opt">-</span>remuxed<span class="gtkdoc opt">.</span>ogg</pre></td>
98      </tr>
99    </tbody>
100  </table>
101</div>
102
103<p>
104 This pipeline shows remuxing. video-remuxed.ogg might not be exactly the same
105as video.ogg, but they should produce exactly the same decoded data.</p>
106</div>
107<div class="refsynopsisdiv">
108<h2>Synopsis</h2>
109<div class="refsect2">
110<a name="id-1.2.101.6.6.1"></a><h3>Element Information</h3>
111<div class="variablelist"><table border="0" class="variablelist">
112<colgroup>
113<col align="left" valign="top">
114<col>
115</colgroup>
116<tbody>
117<tr>
118<td><p><span class="term">plugin</span></p></td>
119<td>
120            <a class="link" href="gst-plugins-base-plugins-plugin-theora.html#plugin-theora">theora</a>
121          </td>
122</tr>
123<tr>
124<td><p><span class="term">author</span></p></td>
125<td>Andy Wingo &lt;wingo@pobox.com&gt;</td>
126</tr>
127<tr>
128<td><p><span class="term">class</span></p></td>
129<td>Codec/Parser/Video</td>
130</tr>
131</tbody>
132</table></div>
133</div>
134<hr>
135<div class="refsect2">
136<a name="id-1.2.101.6.6.2"></a><h3>Element Pads</h3>
137<div class="variablelist"><table border="0" class="variablelist">
138<colgroup>
139<col align="left" valign="top">
140<col>
141</colgroup>
142<tbody>
143<tr>
144<td><p><span class="term">name</span></p></td>
145<td>sink</td>
146</tr>
147<tr>
148<td><p><span class="term">direction</span></p></td>
149<td>sink</td>
150</tr>
151<tr>
152<td><p><span class="term">presence</span></p></td>
153<td>always</td>
154</tr>
155<tr>
156<td><p><span class="term">details</span></p></td>
157<td>video/x-theora</td>
158</tr>
159</tbody>
160</table></div>
161<div class="variablelist"><table border="0" class="variablelist">
162<colgroup>
163<col align="left" valign="top">
164<col>
165</colgroup>
166<tbody>
167<tr>
168<td><p><span class="term">name</span></p></td>
169<td>src</td>
170</tr>
171<tr>
172<td><p><span class="term">direction</span></p></td>
173<td>source</td>
174</tr>
175<tr>
176<td><p><span class="term">presence</span></p></td>
177<td>always</td>
178</tr>
179<tr>
180<td><p><span class="term">details</span></p></td>
181<td>video/x-theora</td>
182</tr>
183</tbody>
184</table></div>
185</div>
186</div>
187</div>
188<div class="refsect1">
189<a name="gst-plugins-base-plugins-theoraparse.functions_details"></a><h2>Functions</h2>
190<p></p>
191</div>
192<div class="refsect1">
193<a name="gst-plugins-base-plugins-theoraparse.other_details"></a><h2>Types and Values</h2>
194<div class="refsect2">
195<a name="GstTheoraParse-struct"></a><h3>struct GstTheoraParse</h3>
196<pre class="programlisting">struct GstTheoraParse;</pre>
197<p>Opaque data structure.</p>
198</div>
199</div>
200<div class="refsect1">
201<a name="gst-plugins-base-plugins-theoraparse.see-also"></a><h2>See Also</h2>
202<p>theoradec, oggdemux, vorbisparse</p>
203</div>
204</div>
205<div class="footer">
206<hr>Generated by GTK-Doc V1.28</div>
207</body>
208</html>