1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>multifilesrc</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7 <link rel="home" href="index.html" title="GStreamer Good Plugins 0.10 Plugins Reference Manual">
8 <link rel="up" href="ch01.html" title="gst-plugins-good Elements">
9 <link rel="prev" href="gst-plugins-good-plugins-multifilesink.html" title="multifilesink">
10 <link rel="next" href="gst-plugins-good-plugins-multipartdemux.html" title="multipartdemux">
11 <meta name="generator" content="GTK-Doc V1.17 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
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="2">
17 <td><a accesskey="p" href="gst-plugins-good-plugins-multifilesink.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <th width="100%" align="center">GStreamer Good Plugins 0.10 Plugins Reference Manual</th>
21 <td><a accesskey="n" href="gst-plugins-good-plugins-multipartdemux.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#gst-plugins-good-plugins-multifilesrc.synopsis" class="shortcut">Top</a>
26 <a href="#gst-plugins-good-plugins-multifilesrc.description" class="shortcut">Description</a>
28 <a href="#gst-plugins-good-plugins-multifilesrc.object-hierarchy" class="shortcut">Object Hierarchy</a>
30 <a href="#gst-plugins-good-plugins-multifilesrc.properties" class="shortcut">Properties</a>
33 <div class="refentry">
34 <a name="gst-plugins-good-plugins-multifilesrc"></a><div class="titlepage"></div>
35 <div class="refnamediv"><table width="100%"><tr>
37 <h2><span class="refentrytitle"><a name="gst-plugins-good-plugins-multifilesrc.top_of_page"></a>multifilesrc</span></h2>
38 <p>multifilesrc — Read a sequentially named set of files into buffers</p>
40 <td valign="top" align="right"></td>
42 <div class="refsynopsisdiv">
43 <a name="gst-plugins-good-plugins-multifilesrc.synopsis"></a><h2>Synopsis</h2>
44 <a name="GstMultiFileSrc"></a><pre class="synopsis">struct <a class="link" href="gst-plugins-good-plugins-multifilesrc.html#GstMultiFileSrc-struct" title="struct GstMultiFileSrc">GstMultiFileSrc</a>;
47 <div class="refsect1">
48 <a name="gst-plugins-good-plugins-multifilesrc.object-hierarchy"></a><h2>Object Hierarchy</h2>
49 <pre class="synopsis">
50 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
51 +----<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstObject.html">GstObject</a>
52 +----<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html">GstElement</a>
53 +----<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-libs/html/GstBaseSrc.html">GstBaseSrc</a>
54 +----<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-libs/html/GstPushSrc.html">GstPushSrc</a>
58 <div class="refsect1">
59 <a name="gst-plugins-good-plugins-multifilesrc.properties"></a><h2>Properties</h2>
60 <pre class="synopsis">
61 "<a class="link" href="gst-plugins-good-plugins-multifilesrc.html#GstMultiFileSrc--caps" title='The "caps" property'>caps</a>" <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstCaps.html#GstCaps"><span class="type">GstCaps</span></a>* : Read / Write
62 "<a class="link" href="gst-plugins-good-plugins-multifilesrc.html#GstMultiFileSrc--index" title='The "index" property'>index</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
63 "<a class="link" href="gst-plugins-good-plugins-multifilesrc.html#GstMultiFileSrc--location" title='The "location" property'>location</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write
66 <div class="refsect1">
67 <a name="gst-plugins-good-plugins-multifilesrc.description"></a><h2>Description</h2>
69 Reads buffers from sequentially named files. If used together with an image
70 decoder, one needs to use the <a class="link" href="gst-plugins-good-plugins-multifilesrc.html#GstMultiFileSrc--caps" title='The "caps" property'><span class="type">"caps"</span></a> property or a capsfilter
71 to force to caps containing a framerate. Otherwise image decoders send EOS
72 after the first picture.
75 File names are created by replacing "%d" with the index using <code class="function">printf()</code>.
79 <div class="refsect2">
80 <a name="idp17219552"></a><h3>Example launch line</h3>
81 <div class="informalexample">
82 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
85 <td class="listing_lines" align="right"><pre>1
88 <td class="listing_code"><pre class="programlisting">gst<span class="gtkdoc opt">-</span>launch multifilesrc location<span class="gtkdoc opt">=</span><span class="string">"img.%04d.png"</span> index<span class="gtkdoc opt">=</span><span class="number">0</span> caps<span class="gtkdoc opt">=</span><span class="string">"image/png,framerate=\(fraction\)12/1"</span> <span class="gtkdoc opt">!</span> \
89 pngdec <span class="gtkdoc opt">!</span> ffmpegcolorspace <span class="gtkdoc opt">!</span> theoraenc <span class="gtkdoc opt">!</span> oggmux <span class="gtkdoc opt">!</span> \
90 filesink location<span class="gtkdoc opt">=</span><span class="string">"images.ogg"</span></pre></td>
95 This pipeline creates a video file "images.ogg" by joining multiple PNG
96 files named img.0000.png, img.0001.png, etc.
100 <div class="refsynopsisdiv">
102 <div class="refsect2">
103 <a name="idp14479728"></a><h3>Element Information</h3>
104 <div class="variablelist"><table border="0">
105 <col align="left" valign="top">
108 <td><p><span class="term">plugin</span></p></td>
110 <a class="link" href="gst-plugins-good-plugins-plugin-multifile.html#plugin-multifile">multifile</a>
114 <td><p><span class="term">author</span></p></td>
115 <td>David Schleef <ds@schleef.org></td>
118 <td><p><span class="term">class</span></p></td>
125 <div class="refsect2">
126 <a name="idp13861680"></a><h3>Element Pads</h3>
127 <div class="variablelist"><table border="0">
128 <col align="left" valign="top">
131 <td><p><span class="term">name</span></p></td>
135 <td><p><span class="term">direction</span></p></td>
139 <td><p><span class="term">presence</span></p></td>
143 <td><p><span class="term">details</span></p></td>
153 <div class="refsect1">
154 <a name="gst-plugins-good-plugins-multifilesrc.details"></a><h2>Details</h2>
155 <div class="refsect2">
156 <a name="GstMultiFileSrc-struct"></a><h3>struct GstMultiFileSrc</h3>
157 <pre class="programlisting">struct GstMultiFileSrc;</pre>
162 <div class="refsect1">
163 <a name="gst-plugins-good-plugins-multifilesrc.property-details"></a><h2>Property Details</h2>
164 <div class="refsect2">
165 <a name="GstMultiFileSrc--caps"></a><h3>The <code class="literal">"caps"</code> property</h3>
166 <pre class="programlisting"> "caps" <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstCaps.html#GstCaps"><span class="type">GstCaps</span></a>* : Read / Write</pre>
167 <p>Caps describing the format of the data.</p>
170 <div class="refsect2">
171 <a name="GstMultiFileSrc--index"></a><h3>The <code class="literal">"index"</code> property</h3>
172 <pre class="programlisting"> "index" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre>
173 <p>Index to use with location property to create file names. The index is incremented by one for each buffer read.</p>
174 <p>Allowed values: >= 0</p>
175 <p>Default value: 0</p>
178 <div class="refsect2">
179 <a name="GstMultiFileSrc--location"></a><h3>The <code class="literal">"location"</code> property</h3>
180 <pre class="programlisting"> "location" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre>
181 <p>Pattern to create file names of input files. File names are created by calling sprintf() with the pattern and the current index.</p>
182 <p>Default value: "%05d"</p>
185 <div class="refsect1">
186 <a name="gst-plugins-good-plugins-multifilesrc.see-also"></a><h2>See Also</h2>
187 <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-plugins/html/gstreamer-plugins-filesrc.html#GstFileSrc"><span class="type">GstFileSrc</span></a>
192 Generated by GTK-Doc V1.17</div>