mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:26:14 +00:00
manual: add something about uridecodebin
This commit is contained in:
parent
a6b75fb322
commit
36c47c89eb
4 changed files with 55 additions and 9 deletions
|
@ -10,7 +10,7 @@
|
||||||
by looking at all available elements in a system. This process is called
|
by looking at all available elements in a system. This process is called
|
||||||
autoplugging, and &GStreamer; contains high-quality autopluggers. If
|
autoplugging, and &GStreamer; contains high-quality autopluggers. If
|
||||||
you're looking for an autoplugger, don't read any further and go to
|
you're looking for an autoplugger, don't read any further and go to
|
||||||
<xref linkend="chapter-components"/>. This chapter will explain the
|
<xref linkend="chapter-playback-components"/>. This chapter will explain the
|
||||||
<emphasis>concept</emphasis> of autoplugging and typefinding. It will
|
<emphasis>concept</emphasis> of autoplugging and typefinding. It will
|
||||||
explain what systems &GStreamer; includes to dynamically detect the
|
explain what systems &GStreamer; includes to dynamically detect the
|
||||||
type of a media stream, and how to generate a pipeline of decoder
|
type of a media stream, and how to generate a pipeline of decoder
|
||||||
|
@ -235,8 +235,8 @@ main (gint argc,
|
||||||
<sect1 id="section-dynamic">
|
<sect1 id="section-dynamic">
|
||||||
<title>Dynamically autoplugging a pipeline</title>
|
<title>Dynamically autoplugging a pipeline</title>
|
||||||
<para>
|
<para>
|
||||||
See <xref linkend="chapter-components"/> for using the high level
|
See <xref linkend="chapter-playback-components"/> for using the high
|
||||||
object that you can use to dynamically construct pipelines.
|
level object that you can use to dynamically construct pipelines.
|
||||||
</para>
|
</para>
|
||||||
</sect1>
|
</sect1>
|
||||||
</chapter>
|
</chapter>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<chapter id="chapter-components">
|
<chapter id="chapter-playback-components">
|
||||||
<title>Components</title>
|
<title>Playback Components</title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
&GStreamer; includes several higher-level components to simplify an
|
&GStreamer; includes several higher-level components to simplify an
|
||||||
|
@ -366,11 +366,57 @@ main (gint argc,
|
||||||
command <command>gst-launch-1.0 filesrc location=file.ogg ! decodebin
|
command <command>gst-launch-1.0 filesrc location=file.ogg ! decodebin
|
||||||
! audioconvert ! audioresample ! autoaudiosink</command>.
|
! audioconvert ! audioresample ! autoaudiosink</command>.
|
||||||
</para>
|
</para>
|
||||||
|
</sect1>
|
||||||
|
|
||||||
|
<sect1 id="section-components-uridecodebin">
|
||||||
|
<title>URIDecodebin</title>
|
||||||
<para>
|
<para>
|
||||||
The uridecodebin element is very similar to decodebin, only that it
|
The uridecodebin element is very similar to decodebin, only that it
|
||||||
automatically plugs a source plugin based on the protocol of the URI
|
automatically plugs a source plugin based on the protocol of the URI
|
||||||
given.
|
given.
|
||||||
</para>
|
</para>
|
||||||
|
<para>
|
||||||
|
Uridecodebin will also automatically insert buffering elements when
|
||||||
|
the uri is a slow network source. The buffering element will post
|
||||||
|
BUFFERING messages that the application needs to handle as explained
|
||||||
|
in <xref linkend="chapter-buffering"/>.
|
||||||
|
The following properties can be used to configure the buffering method:
|
||||||
|
</para>
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
The buffer-size property allows you to configure a maximum size in
|
||||||
|
bytes for the buffer element.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
The buffer-duration property allows you to configure a maximum size
|
||||||
|
in time for the buffer element. The time will be estimated based on
|
||||||
|
the bitrate of the network.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
With the download property you can enable the download buffering
|
||||||
|
method as described in <xref linkend="section-buffering-download"/>.
|
||||||
|
Setting this option to TRUE will only enable download buffering
|
||||||
|
for selected formats such as quicktime, flash video, avi and
|
||||||
|
webm.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
You can also enable buffering on the parsed/demuxed data with the
|
||||||
|
use-buffering property. This is interesting to enable buffering
|
||||||
|
on slower random access media such as a network file server.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
<para>
|
||||||
|
URIDecodebin can be easily tested on the commandline, e.g. by using the
|
||||||
|
command <command>gst-launch-1.0 uridecodebin uri=file:///file.ogg !
|
||||||
|
! audioconvert ! audioresample ! autoaudiosink</command>.
|
||||||
|
</para>
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
</chapter>
|
</chapter>
|
|
@ -48,7 +48,7 @@
|
||||||
<!ENTITY DATAACCESS SYSTEM "advanced-dataaccess.xml">
|
<!ENTITY DATAACCESS SYSTEM "advanced-dataaccess.xml">
|
||||||
|
|
||||||
<!-- Part 4: Higher-level interfaces -->
|
<!-- Part 4: Higher-level interfaces -->
|
||||||
<!ENTITY COMPONENTS SYSTEM "highlevel-components.xml">
|
<!ENTITY PLAYBACK SYSTEM "highlevel-playback.xml">
|
||||||
|
|
||||||
<!-- Appendices -->
|
<!-- Appendices -->
|
||||||
<!ENTITY PROGRAMS SYSTEM "appendix-programs.xml">
|
<!ENTITY PROGRAMS SYSTEM "appendix-programs.xml">
|
||||||
|
@ -201,7 +201,7 @@
|
||||||
</para>
|
</para>
|
||||||
</partintro>
|
</partintro>
|
||||||
|
|
||||||
&COMPONENTS;
|
&PLAYBACK;
|
||||||
|
|
||||||
</part>
|
</part>
|
||||||
|
|
||||||
|
|
|
@ -110,7 +110,7 @@ dynformat.c: $(top_srcdir)/docs/manual/advanced-dataaccess.xml
|
||||||
effectswitch.c: $(top_srcdir)/docs/manual/advanced-dataaccess.xml
|
effectswitch.c: $(top_srcdir)/docs/manual/advanced-dataaccess.xml
|
||||||
$(PERL_PATH) $(srcdir)/extract.pl $@ $<
|
$(PERL_PATH) $(srcdir)/extract.pl $@ $<
|
||||||
|
|
||||||
playbin.c decodebin.c: $(top_srcdir)/docs/manual/highlevel-components.xml
|
playbin.c decodebin.c: $(top_srcdir)/docs/manual/highlevel-playback.xml
|
||||||
$(PERL_PATH) $(srcdir)/extract.pl $@ $<
|
$(PERL_PATH) $(srcdir)/extract.pl $@ $<
|
||||||
|
|
||||||
testrtpool.c: $(top_srcdir)/docs/manual/advanced-threads.xml
|
testrtpool.c: $(top_srcdir)/docs/manual/advanced-threads.xml
|
||||||
|
|
Loading…
Reference in a new issue