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>oss4src: GStreamer Good 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 Good Plugins 1.0 Plugins Reference Manual"> 8<link rel="up" href="ch01.html" title="gst-plugins-good Elements"> 9<link rel="prev" href="gst-plugins-good-plugins-oss4sink.html" title="oss4sink"> 10<link rel="next" href="gst-plugins-good-plugins-osssink.html" title="osssink"> 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">|</span> 18 <a href="#gst-plugins-good-plugins-oss4src.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> 19 <a href="#gst-plugins-good-plugins-oss4src.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces"> <span class="dim">|</span> 20 <a href="#gst-plugins-good-plugins-oss4src.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span><span id="nav_properties"> <span class="dim">|</span> 21 <a href="#gst-plugins-good-plugins-oss4src.properties" class="shortcut">Properties</a></span> 22</td> 23<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> 24<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> 25<td><a accesskey="p" href="gst-plugins-good-plugins-oss4sink.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> 26<td><a accesskey="n" href="gst-plugins-good-plugins-osssink.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> 27</tr></table> 28<div class="refentry"> 29<a name="gst-plugins-good-plugins-oss4src"></a><div class="titlepage"></div> 30<div class="refnamediv"><table width="100%"><tr> 31<td valign="top"> 32<h2><span class="refentrytitle"><a name="gst-plugins-good-plugins-oss4src.top_of_page"></a>oss4src</span></h2> 33<p>oss4src</p> 34</td> 35<td class="gallery_image" valign="top" align="right"></td> 36</tr></table></div> 37<div class="refsect1"> 38<a name="gst-plugins-good-plugins-oss4src.properties"></a><h2>Properties</h2> 39<div class="informaltable"><table class="informaltable" border="0"> 40<colgroup> 41<col width="150px" class="properties_type"> 42<col width="300px" class="properties_name"> 43<col width="200px" class="properties_flags"> 44</colgroup> 45<tbody> 46<tr> 47<td class="property_type"> 48<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td> 49<td class="property_name"><a class="link" href="gst-plugins-good-plugins-oss4src.html#GstOss4Source--device" title="The “device” property">device</a></td> 50<td class="property_flags">Read / Write</td> 51</tr> 52<tr> 53<td class="property_type"> 54<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</td> 55<td class="property_name"><a class="link" href="gst-plugins-good-plugins-oss4src.html#GstOss4Source--device-name" title="The “device-name” property">device-name</a></td> 56<td class="property_flags">Read</td> 57</tr> 58</tbody> 59</table></div> 60</div> 61<a name="GstOss4Source"></a><div class="refsect1"> 62<a name="gst-plugins-good-plugins-oss4src.other"></a><h2>Types and Values</h2> 63<div class="informaltable"><table class="informaltable" width="100%" border="0"> 64<colgroup> 65<col width="150px" class="name"> 66<col class="description"> 67</colgroup> 68<tbody><tr> 69<td class="datatype_keyword">struct</td> 70<td class="function_name"><a class="link" href="gst-plugins-good-plugins-oss4src.html#GstOss4Source-struct" title="struct GstOss4Source">GstOss4Source</a></td> 71</tr></tbody> 72</table></div> 73</div> 74<div class="refsect1"> 75<a name="gst-plugins-good-plugins-oss4src.object-hierarchy"></a><h2>Object Hierarchy</h2> 76<pre class="screen"> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a> 77 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a> 78 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstObject.html#GstObject-struct">GstObject</a> 79 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct">GstElement</a> 80 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-libs-1.0/GstBaseSrc.html#GstBaseSrc-struct">GstBaseSrc</a> 81 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-libs-1.0/GstPushSrc.html#GstPushSrc-struct">GstPushSrc</a> 82 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gst-plugins-base-libs-1.0/GstAudioBaseSrc.html#GstAudioBaseSrc-struct">GstAudioBaseSrc</a> 83 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gst-plugins-base-libs-1.0/GstAudioSrc.html#GstAudioSrc-struct">GstAudioSrc</a> 84 <span class="lineart">╰──</span> GstOss4Source 85</pre> 86</div> 87<div class="refsect1"> 88<a name="gst-plugins-good-plugins-oss4src.implemented-interfaces"></a><h2>Implemented Interfaces</h2> 89<p> 90GstOss4Source implements 91 GstImplementsInterface, GstMixer and GstPropertyProbe.</p> 92</div> 93<div class="refsect1"> 94<a name="gst-plugins-good-plugins-oss4src.description"></a><h2>Description</h2> 95<p>This element lets you record sound using the Open Sound System (OSS) 96version 4.</p> 97<div class="refsect2"> 98<a name="id-1.2.107.8.3"></a><h3>Example pipelines</h3> 99<div class="informalexample"> 100 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0"> 101 <tbody> 102 <tr> 103 <td class="listing_lines" align="right"><pre>1</pre></td> 104 <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 oss4src <span class="gtkdoc opt">!</span> queue <span class="gtkdoc opt">!</span> audioconvert <span class="gtkdoc opt">!</span> vorbisenc <span class="gtkdoc opt">!</span> oggmux <span class="gtkdoc opt">!</span> filesink location<span class="gtkdoc opt">=</span>mymusic<span class="gtkdoc opt">.</span>ogg</pre></td> 105 </tr> 106 </tbody> 107 </table> 108</div> 109 will record sound from your sound card using OSS4 and encode it to an 110Ogg/Vorbis file (this will only work if your mixer settings are right 111and the right inputs areenabled etc.) 112</div> 113<div class="refsynopsisdiv"> 114<h2>Synopsis</h2> 115<div class="refsect2"> 116<a name="id-1.2.107.8.4.1"></a><h3>Element Information</h3> 117<div class="variablelist"><table border="0" class="variablelist"> 118<colgroup> 119<col align="left" valign="top"> 120<col> 121</colgroup> 122<tbody> 123<tr> 124<td><p><span class="term">plugin</span></p></td> 125<td> 126 <a class="link" href="gst-plugins-good-plugins-plugin-oss4.html#plugin-oss4">oss4</a> 127 </td> 128</tr> 129<tr> 130<td><p><span class="term">author</span></p></td> 131<td>Tim-Philipp Müller <tim centricular net></td> 132</tr> 133<tr> 134<td><p><span class="term">class</span></p></td> 135<td>Source/Audio</td> 136</tr> 137</tbody> 138</table></div> 139</div> 140<hr> 141<div class="refsect2"> 142<a name="id-1.2.107.8.4.2"></a><h3>Element Pads</h3> 143<div class="variablelist"><table border="0" class="variablelist"> 144<colgroup> 145<col align="left" valign="top"> 146<col> 147</colgroup> 148<tbody> 149<tr> 150<td><p><span class="term">name</span></p></td> 151<td>src</td> 152</tr> 153<tr> 154<td><p><span class="term">direction</span></p></td> 155<td>source</td> 156</tr> 157<tr> 158<td><p><span class="term">presence</span></p></td> 159<td>always</td> 160</tr> 161<tr> 162<td><p><span class="term">details</span></p></td> 163<td>audio/x-alaw, rate=(int)[ 1, 192000 ], channels=(int)[ 1, 4096 ]</td> 164</tr> 165<tr> 166<td><p><span class="term"></span></p></td> 167<td> audio/x-mulaw, rate=(int)[ 1, 192000 ], channels=(int)[ 1, 4096 ]</td> 168</tr> 169<tr> 170<td><p><span class="term"></span></p></td> 171<td> audio/x-raw, format=(string){ S32LE, S32BE, S24_32LE, S24_32BE, S24LE, S16LE, S16BE, U16LE, U16BE, S8, U8 }, layout=(string)interleaved, rate=(int)[ 1, 192000 ], channels=(int)[ 1, 4096 ]</td> 172</tr> 173</tbody> 174</table></div> 175</div> 176</div> 177</div> 178<div class="refsect1"> 179<a name="gst-plugins-good-plugins-oss4src.functions_details"></a><h2>Functions</h2> 180<p></p> 181</div> 182<div class="refsect1"> 183<a name="gst-plugins-good-plugins-oss4src.other_details"></a><h2>Types and Values</h2> 184<div class="refsect2"> 185<a name="GstOss4Source-struct"></a><h3>struct GstOss4Source</h3> 186<pre class="programlisting">struct GstOss4Source;</pre> 187</div> 188</div> 189<div class="refsect1"> 190<a name="gst-plugins-good-plugins-oss4src.property-details"></a><h2>Property Details</h2> 191<div class="refsect2"> 192<a name="GstOss4Source--device"></a><h3>The <code class="literal">“device”</code> property</h3> 193<pre class="programlisting"> “device” <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre> 194<p>OSS4 device (e.g. /dev/oss/hdaudio0/pcm0 or /dev/dspN) (NULL = use first available device).</p> 195<p>Flags: Read / Write</p> 196<p>Default value: NULL</p> 197</div> 198<hr> 199<div class="refsect2"> 200<a name="GstOss4Source--device-name"></a><h3>The <code class="literal">“device-name”</code> property</h3> 201<pre class="programlisting"> “device-name” <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *</pre> 202<p>Human-readable name of the sound device.</p> 203<p>Flags: Read</p> 204<p>Default value: NULL</p> 205</div> 206</div> 207</div> 208<div class="footer"> 209<hr>Generated by GTK-Doc V1.28</div> 210</body> 211</html>