|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
%version-entities;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
]>
|
|
Packit Service |
963350 |
<refentry id="gst-running" revision="08 Oct 2005">
|
|
Packit Service |
963350 |
<refmeta>
|
|
Packit Service |
963350 |
<refentrytitle>Running GStreamer Applications</refentrytitle>
|
|
Packit Service |
963350 |
<manvolnum>3</manvolnum>
|
|
Packit Service |
963350 |
<refmiscinfo>GStreamer Core</refmiscinfo>
|
|
Packit Service |
963350 |
</refmeta>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<refnamediv>
|
|
Packit Service |
963350 |
<refname>Running GStreamer Applications</refname>
|
|
Packit Service |
963350 |
<refpurpose>
|
|
Packit Service |
963350 |
How to run and debug your GStreamer application
|
|
Packit Service |
963350 |
</refpurpose>
|
|
Packit Service |
963350 |
</refnamediv>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<refsect1>
|
|
Packit Service |
963350 |
<title>Running and debugging GStreamer Applications</title>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<refsect2>
|
|
Packit Service |
963350 |
<title>Environment variables</title>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
GStreamer inspects a few of environment variables in addition to standard
|
|
Packit Service |
963350 |
variables like <envar>LANG</envar>, <envar>PATH</envar> or <envar>HOME</envar>.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<formalpara id="GST_PLUGIN_SYSTEM_PATH">
|
|
Packit Service |
963350 |
<title><envar>GST_PLUGIN_SYSTEM_PATH</envar>,
|
|
Packit Service |
963350 |
<envar>GST_PLUGIN_SYSTEM_PATH_1_0</envar></title>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
This environment variable can be set to a colon-separated list of paths (or
|
|
Packit Service |
963350 |
semicolon-separated list on Windows).
|
|
Packit Service |
963350 |
If this variable is not set, GStreamer will fill in this list for you
|
|
Packit Service |
963350 |
with
|
|
Packit Service |
963350 |
<itemizedlist>
|
|
Packit Service |
963350 |
<listitem>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
plug-ins in the user's home directory, or rather the user's "data home"
|
|
Packit Service |
963350 |
directory according to the xdg base dir specification. Usually this will be
|
|
Packit Service |
963350 |
a directory called
|
|
Packit Service |
963350 |
<filename>plugins</filename> inside the
|
|
Packit Service |
963350 |
<filename>.local/share/gstreamer-&GST_API_VERSION;</filename> directory in
|
|
Packit Service |
963350 |
the user's home directory by default, though this search path may change if
|
|
Packit Service |
963350 |
the XDG_DATA_HOME environment variable is set.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</listitem>
|
|
Packit Service |
963350 |
<listitem>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
plug-ins installed system-wide. On this system, they are stored in
|
|
Packit Service |
963350 |
<filename>&GST_PLUGINS_DIR;</filename>.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
</listitem>
|
|
Packit Service |
963350 |
</itemizedlist>
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
GStreamer will scan these paths for GStreamer plug-ins. These plug-ins will
|
|
Packit Service |
963350 |
be loaded after the plug-ins in the GST_PLUGIN_PATH variable below.
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
The paths are scanned in the given order. This allows a user to override
|
|
Packit Service |
963350 |
system-installed plug-ins with his own versions.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
The GST_PLUGIN_SYSTEM_PATH_1_0 variant is useful if both the old GStreamer 0.10
|
|
Packit Service |
963350 |
version and the new GStreamer 1.0 version need to be pointed to new plugin
|
|
Packit Service |
963350 |
paths. The latter will use the _1_0 variant over the non-versioned one if
|
|
Packit Service |
963350 |
it is set.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Setting this variable to an empty string will cause GStreamer not to scan any
|
|
Packit Service |
963350 |
system paths at all for plug-ins. This can be useful if you're running
|
|
Packit Service |
963350 |
uninstalled (for development purposes) or while running testsuites.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
</formalpara>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<formalpara id="GST_PLUGIN_PATH">
|
|
Packit Service |
963350 |
<title><envar>GST_PLUGIN_PATH</envar>, <envar>GST_PLUGIN_PATH_1_0</envar></title>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
This environment variable can be set to a colon-separated list of paths (or a
|
|
Packit Service |
963350 |
semicolon-separated list on Windows).
|
|
Packit Service |
963350 |
GStreamer will scan these paths for GStreamer plug-ins. These plug-ins will
|
|
Packit Service |
963350 |
be loaded in addition to, and before, the plug-ins in the system paths.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
The GST_PLUGIN_PATH_1_0 variant is useful if both the old GStreamer 0.10
|
|
Packit Service |
963350 |
version and the new GStreamer 1.0 version need to be pointed to new plugin
|
|
Packit Service |
963350 |
paths. The latter will use the _1_0 variant over the non-versioned one if
|
|
Packit Service |
963350 |
it is set.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</formalpara>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<formalpara id="GST_DEBUG">
|
|
Packit Service |
963350 |
<title><envar>GST_DEBUG</envar></title>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
If GStreamer has been configured with <option>--enable-gst-debug=yes</option>,
|
|
Packit Service |
963350 |
this variable can be set to a list of debug options, which cause GStreamer
|
|
Packit Service |
963350 |
to print out different types of debugging information to stderr.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
The variable takes a comma-separated list of "category_name:level" pairs
|
|
Packit Service |
963350 |
to set specific levels for the individual categories.
|
|
Packit Service |
963350 |
The level value ranges from 0 (nothing) to 9 (MEMDUMP).
|
|
Packit Service |
963350 |
<variablelist>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<varlistentry>
|
|
Packit Service |
963350 |
<term>1 - <option>ERROR</option></term>
|
|
Packit Service |
963350 |
<listitem>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Logs all fatal errors. These are errors that do not allow the core or elements
|
|
Packit Service |
963350 |
to perform the requested action. The application can still recover if
|
|
Packit Service |
963350 |
programmed to handle the conditions that triggered the error.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</listitem>
|
|
Packit Service |
963350 |
</varlistentry>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<varlistentry>
|
|
Packit Service |
963350 |
<term>2 - <option>WARNING</option></term>
|
|
Packit Service |
963350 |
<listitem>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Logs all warnings. Typically these are non-fatal, but user-visible problems
|
|
Packit Service |
963350 |
are expected to happen.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</listitem>
|
|
Packit Service |
963350 |
</varlistentry>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<varlistentry>
|
|
Packit Service |
963350 |
<term>3 - <option>FIXME</option></term>
|
|
Packit Service |
963350 |
<listitem>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Logs all fixme messages. Fixme messages are messages that indicate that something
|
|
Packit Service |
963350 |
in the executed code path is not fully implemented or handled yet. The purpose
|
|
Packit Service |
963350 |
of this message is to make it easier to spot incomplete/unfinished pieces of
|
|
Packit Service |
963350 |
code when reading the debug log.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</listitem>
|
|
Packit Service |
963350 |
</varlistentry>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<varlistentry>
|
|
Packit Service |
963350 |
<term>4 - <option>INFO</option></term>
|
|
Packit Service |
963350 |
<listitem>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Logs all informational messages. These are typically used for events in
|
|
Packit Service |
963350 |
the system that only happen once, or are important and rare enough to be
|
|
Packit Service |
963350 |
logged at this level.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</listitem>
|
|
Packit Service |
963350 |
</varlistentry>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<varlistentry>
|
|
Packit Service |
963350 |
<term>5 - <option>DEBUG</option></term>
|
|
Packit Service |
963350 |
<listitem>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Logs all debug messages. These are general debug messages for events
|
|
Packit Service |
963350 |
that happen only a limited number of times during an object's lifetime;
|
|
Packit Service |
963350 |
these include setup, teardown, change of parameters, ...
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</listitem>
|
|
Packit Service |
963350 |
</varlistentry>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<varlistentry>
|
|
Packit Service |
963350 |
<term>6 - <option>LOG</option></term>
|
|
Packit Service |
963350 |
<listitem>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Logs all log messages. These are messages for events
|
|
Packit Service |
963350 |
that happen repeatedly during an object's lifetime;
|
|
Packit Service |
963350 |
these include streaming and steady-state conditions.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</listitem>
|
|
Packit Service |
963350 |
</varlistentry>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<varlistentry>
|
|
Packit Service |
963350 |
<term>7 - <option>TRACE</option></term>
|
|
Packit Service |
963350 |
<listitem>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Logs all trace messages. These messages for events
|
|
Packit Service |
963350 |
that happen repeatedly during an object's lifetime such as the
|
|
Packit Service |
963350 |
ref/unref cycles.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</listitem>
|
|
Packit Service |
963350 |
</varlistentry>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<varlistentry>
|
|
Packit Service |
963350 |
<term>9 - <option>MEMDUMP</option></term>
|
|
Packit Service |
963350 |
<listitem>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Log all memory dump messages. Memory dump messages are used to log
|
|
Packit Service |
963350 |
(small) chunks of data as memory dumps in the log. They will be displayed
|
|
Packit Service |
963350 |
as hexdump with ASCII characters.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</listitem>
|
|
Packit Service |
963350 |
</varlistentry>
|
|
Packit Service |
963350 |
</variablelist>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
The category_name can contain "<option>*"</option> as a wildcard.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
For example, setting <envar>GST_DEBUG</envar> to
|
|
Packit Service |
963350 |
<option>GST_AUTOPLUG:6,GST_ELEMENT_*:4</option>, will cause the
|
|
Packit Service |
963350 |
<option>GST_AUTOPLUG</option> category to be logged at full
|
|
Packit Service |
963350 |
<option>LOG</option> level, while all categories starting with
|
|
Packit Service |
963350 |
<option>GST_ELEMENT_</option> will be logged at <option>INFO</option> level.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
To get all possible debug output, set
|
|
Packit Service |
963350 |
<envar>GST_DEBUG</envar>
|
|
Packit Service |
963350 |
to <option>*:9</option>. For debugging purposes a <option>*:6</option> debug
|
|
Packit Service |
963350 |
log is usually the most useful, as it contains all important information, but
|
|
Packit Service |
963350 |
hides a lot of noise such as refs/unrefs. For bug reporting purposes, a
|
|
Packit Service |
963350 |
<option>*:6</option> log is also what will be requested usually. It's often
|
|
Packit Service |
963350 |
also worth running with <option>*:3</option> to see if there are any
|
|
Packit Service |
963350 |
non-fatal errors or warnings that might be related to the problem at hand.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Since GStreamer 1.2 it is also possible to specify debug levels by name,
|
|
Packit Service |
963350 |
e.g. GST_DEBUG=*:WARNING,*audio*:LOG
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
</formalpara>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<formalpara id="GST_DEBUG_NO_COLOR">
|
|
Packit Service |
963350 |
<title><envar>GST_DEBUG_NO_COLOR</envar></title>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Set this environment variable to any value ("1" typically) to switch off
|
|
Packit Service |
963350 |
colouring in GST_DEBUG output. This has the same effect as specifying the
|
|
Packit Service |
963350 |
<option>--gst-debug-no-color</option> or
|
|
Packit Service |
963350 |
<option>--gst-debug-color-mode</option>=off command line option to
|
|
Packit Service |
963350 |
well-behaved GStreamer applications (ie. those that pass command-line
|
|
Packit Service |
963350 |
options correctly to GStreamer).
|
|
Packit Service |
963350 |
This is particularly useful to reduce the size of debug output and also allows
|
|
Packit Service |
963350 |
for the output to be compressed much better than with colours turned on.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Has the same effect as setting GST_DEBUG_COLOR_MODE environment variable to
|
|
Packit Service |
963350 |
"off".
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
</formalpara>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<formalpara id="GST_DEBUG_COLOR_MODE">
|
|
Packit Service |
963350 |
<title><envar>GST_DEBUG_COLOR_MODE</envar></title>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Set this environment variable to change log colouring in GST_DEBUG output.
|
|
Packit Service |
963350 |
Possible values:
|
|
Packit Service |
963350 |
<variablelist>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<varlistentry>
|
|
Packit Service |
963350 |
<term><option>on</option></term>
|
|
Packit Service |
963350 |
<listitem>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Enables debug log output coloring. Uses default coloring method for current
|
|
Packit Service |
963350 |
platform. This is the default.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</listitem>
|
|
Packit Service |
963350 |
</varlistentry>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<varlistentry>
|
|
Packit Service |
963350 |
<term><option>off</option></term>
|
|
Packit Service |
963350 |
<listitem>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Disables debug log output coloring. This has the same effect as specifying the
|
|
Packit Service |
963350 |
<option>--gst-debug-color-mode</option>=off command line option to
|
|
Packit Service |
963350 |
well-behaved GStreamer applications (ie. those that pass command-line
|
|
Packit Service |
963350 |
options correctly to GStreamer).
|
|
Packit Service |
963350 |
This is particularly useful to reduce the size of debug output and also allows
|
|
Packit Service |
963350 |
for the output to be compressed much better than with colours turned on.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Has the same effect as setting GST_DEBUG_NO_COLOR environment variable to
|
|
Packit Service |
963350 |
any value.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</listitem>
|
|
Packit Service |
963350 |
</varlistentry>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<varlistentry>
|
|
Packit Service |
963350 |
<term><option>auto</option></term>
|
|
Packit Service |
963350 |
<listitem>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Same as <option>on</option>.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</listitem>
|
|
Packit Service |
963350 |
</varlistentry>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<varlistentry>
|
|
Packit Service |
963350 |
<term><option>disable</option></term>
|
|
Packit Service |
963350 |
<listitem>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Same as <option>off</option>.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</listitem>
|
|
Packit Service |
963350 |
</varlistentry>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<varlistentry>
|
|
Packit Service |
963350 |
<term><option>unix</option></term>
|
|
Packit Service |
963350 |
<listitem>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Enables debug log output coloring and forces the use of UNIX termial codes
|
|
Packit Service |
963350 |
for coloring, even if this method is not normally used on current platform.
|
|
Packit Service |
963350 |
This has the same effect as specifying the
|
|
Packit Service |
963350 |
<option>--gst-debug-color-mode</option>=unix command line option to
|
|
Packit Service |
963350 |
well-behaved GStreamer applications (ie. those that pass command-line options
|
|
Packit Service |
963350 |
correctly to GStreamer).
|
|
Packit Service |
963350 |
This is particularly useful to dump debug output into a file on non-UNIX
|
|
Packit Service |
963350 |
platforms to be sent to developers who have viewers that support UNIX terminal
|
|
Packit Service |
963350 |
codes.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</listitem>
|
|
Packit Service |
963350 |
</varlistentry>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
</variablelist>
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
</formalpara>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<formalpara id="GST_DEBUG_OPTIONS">
|
|
Packit Service |
963350 |
<title><envar>GST_DEBUG_OPTIONS</envar></title>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
This environment variable can be used to tweak the behaviour of the debugging
|
|
Packit Service |
963350 |
system. Currently the only options supported are "pretty-tags" and "full-tags".
|
|
Packit Service |
963350 |
In "pretty-tags" mode (the default), taglists in the debug log will be
|
|
Packit Service |
963350 |
serialized so that only the first few and last few bytes of a buffer-type tag
|
|
Packit Service |
963350 |
will be serialized into the log, to avoid dumping hundreds of lines of useless
|
|
Packit Service |
963350 |
output into the log in case of large image tags and the like.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
</formalpara>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<formalpara id="GST_DEBUG_DUMP_DOT_DIR">
|
|
Packit Service |
963350 |
<title><envar>GST_DEBUG_DUMP_DOT_DIR</envar></title>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Set this environment variable to a path to turn on all
|
|
Packit Service |
963350 |
#GST_DEBUG_BIN_TO_DOT_FILE or #GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS calls
|
|
Packit Service |
963350 |
and have the dot files in that location.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
This will only work if the application in question makes these calls in
|
|
Packit Service |
963350 |
strategic places (like when the pipeline state changes or an error occurs).
|
|
Packit Service |
963350 |
gst-launch-&GST_API_VERSION; is one such application.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
When gst-launch-&GST_API_VERSION; changes state through NULL to PLAYING
|
|
Packit Service |
963350 |
and back to NULL, a dot file is generated on each state change. To have
|
|
Packit Service |
963350 |
gst-launch-&GST_API_VERSION; write a snapshot of the pipeline state, send
|
|
Packit Service |
963350 |
a SIGHUP to the gst-launch-&GST_API_VERSION; process.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
These .dot files can then be turned into images using the 'dot' utility
|
|
Packit Service |
963350 |
from the graphviz set of tools, like this:
|
|
Packit Service |
963350 |
<command>dot foo.dot -Tsvg -o foo.svg</command> or
|
|
Packit Service |
963350 |
<command>dot foo.dot -Tpng -o foo.png</command> or
|
|
Packit Service |
963350 |
<command>dot foo.dot -Tjpg -o foo.jpg</command>.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
There is also a utility called <command>xdot</command> which allows you to
|
|
Packit Service |
963350 |
view the dot file directly without converting it first.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
</formalpara>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<formalpara id="GST_REGISTRY">
|
|
Packit Service |
963350 |
<title><envar>GST_REGISTRY</envar>, <envar>GST_REGISTRY_1_0</envar></title>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Set this environment variable to make GStreamer use a different file for the
|
|
Packit Service |
963350 |
plugin cache / registry than the default one. This is useful when operating
|
|
Packit Service |
963350 |
in a separate environment which should not affect the default cache in the
|
|
Packit Service |
963350 |
user's home directory.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
</formalpara>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<formalpara id="GST_REGISTRY_FORK">
|
|
Packit Service |
963350 |
<title><envar>GST_REGISTRY_FORK</envar></title>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Set this environment variable to "no" to prevent GStreamer from forking on
|
|
Packit Service |
963350 |
startup in order to update the plugin registry. This is useful for debugging
|
|
Packit Service |
963350 |
purposes, but should not be used under normal circumstances, since it means
|
|
Packit Service |
963350 |
that plugins may be loaded into memory even if they are not needed by the
|
|
Packit Service |
963350 |
application.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
</formalpara>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<formalpara id="GST_REGISTRY_UPDATE">
|
|
Packit Service |
963350 |
<title><envar>GST_REGISTRY_UPDATE</envar></title>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Set this environment variable to "no" to prevent GStreamer from updating the
|
|
Packit Service |
963350 |
plugin registry. This is useful for embedded device which is not updating the
|
|
Packit Service |
963350 |
plugins frequently, it will save time when doing gst_init().
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
</formalpara>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<formalpara id="GST_TRACE">
|
|
Packit Service |
963350 |
<title><envar>GST_TRACE</envar></title>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Enable memory allocation tracing. Most GStreamer objects have support for
|
|
Packit Service |
963350 |
tracing the number of unfreed objects and their memory pointers.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
The variable takes a comma-separated list of tracing options to enable.
|
|
Packit Service |
963350 |
<variablelist>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<varlistentry>
|
|
Packit Service |
963350 |
<term>live</term>
|
|
Packit Service |
963350 |
<listitem>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Counts all live objects and dumps an overview of the number of unfreed
|
|
Packit Service |
963350 |
objects at program exit.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</listitem>
|
|
Packit Service |
963350 |
</varlistentry>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<varlistentry>
|
|
Packit Service |
963350 |
<term>mem-live</term>
|
|
Packit Service |
963350 |
<listitem>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Keep track of the unfreed memory pointers and dump an overview of all unfreed
|
|
Packit Service |
963350 |
memory at program exit. Together with a level 9 debug log this can be used to
|
|
Packit Service |
963350 |
follow the lifecycle of leaked objects in order to track down where they are
|
|
Packit Service |
963350 |
leaked. This can be useful for debugging memory leaks in situations where
|
|
Packit Service |
963350 |
tools such as valgrind are not available, or not an option.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</listitem>
|
|
Packit Service |
963350 |
</varlistentry>
|
|
Packit Service |
963350 |
</variablelist>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
Use <option>all</option> to enable all tracing flags.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</formalpara>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<formalpara id="GST_DEBUG_FILE">
|
|
Packit Service |
963350 |
<title><envar>GST_DEBUG_FILE</envar></title>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Set this variable to a file path to redirect all GStreamer debug
|
|
Packit Service |
963350 |
messages to this file. If left unset, debug messages with be output
|
|
Packit Service |
963350 |
unto the standard error.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
</formalpara>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<formalpara id="ORC_CODE">
|
|
Packit Service |
963350 |
<title><envar>ORC_CODE</envar></title>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Useful Orc environment variable. Set ORC_CODE=debug to enable debuggers
|
|
Packit Service |
963350 |
such as gdb to create useful backtraces from Orc-generated code. Set
|
|
Packit Service |
963350 |
ORC_CODE=backup or ORC_CODE=emulate if you suspect Orc's SIMD code
|
|
Packit Service |
963350 |
generator is producing incorrect code (Quite a few important
|
|
Packit Service |
963350 |
GStreamer plugins like videotestsrc, audioconvert or audioresample use Orc).
|
|
Packit Service |
963350 |
One can also combine flags like ORC_CODE=backup,debug.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
</formalpara>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<formalpara id="G_DEBUG">
|
|
Packit Service |
963350 |
<title><envar>G_DEBUG</envar></title>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Useful GLib environment variable. Set G_DEBUG=fatal_warnings to make
|
|
Packit Service |
963350 |
GStreamer programs abort when a critical warning such as an assertion failure
|
|
Packit Service |
963350 |
occurs. This is useful if you want to find out which part of the code caused
|
|
Packit Service |
963350 |
that warning to be triggered and under what circumstances. Simply set G_DEBUG
|
|
Packit Service |
963350 |
as mentioned above and run the program in gdb (or let it core dump). Then get
|
|
Packit Service |
963350 |
a stack trace in the usual way.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
</formalpara>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<formalpara id="G_SLICE">
|
|
Packit Service |
963350 |
<title><envar>G_SLICE</envar></title>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Useful GLib environment variable. Set G_SLICE=always-malloc when running
|
|
Packit Service |
963350 |
GStreamer programs in valgrind, or debugging memory leaks with other tools.
|
|
Packit Service |
963350 |
See the GLib API reference for more details.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
</formalpara>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<formalpara id="GST_TAG_ENCODING">
|
|
Packit Service |
963350 |
<title><envar>GST_TAG_ENCODING</envar></title>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Try this character encoding first for tag-related strings where the encoding
|
|
Packit Service |
963350 |
is not defined and which are not UTF-8 already. By default the current locale
|
|
Packit Service |
963350 |
will be tried (if not UTF-8).
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</formalpara>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<formalpara id="GST_TAG_ID3_ENCODING">
|
|
Packit Service |
963350 |
<title><envar>GST_TAG_ID3_ENCODING</envar></title>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Try this character encoding first for ID3 tag-related strings where the
|
|
Packit Service |
963350 |
encoding is not defined and which are not UTF-8 already. By default the current
|
|
Packit Service |
963350 |
locale will be tried (if not UTF-8).
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</formalpara>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<formalpara id="GST_TAG_ID3V1_ENCODING">
|
|
Packit Service |
963350 |
<title><envar>GST_TAG_ID3V1_ENCODING</envar></title>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Try this character encoding first for ID3v1 tag-related strings where the
|
|
Packit Service |
963350 |
encoding does not look like UTF-8.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</formalpara>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<formalpara id="GST_GL_WINDOW">
|
|
Packit Service |
963350 |
<title><envar>GST_GL_WINDOW</envar></title>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Influences the window system to use by the GStreamer OpenGL library.
|
|
Packit Service |
963350 |
Common values are 'x11', 'wayland', 'win32' or 'cocoa'.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</formalpara>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<formalpara id="GST_GL_PLATFORM">
|
|
Packit Service |
963350 |
<title><envar>GST_GL_PLATFORM</envar></title>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Influences the OpenGL platform to use by the GStreamer OpenGL library.
|
|
Packit Service |
963350 |
Common values are 'egl', 'glx', 'wgl' or 'cgl'.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</formalpara>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
<formalpara id="GST_GL_API">
|
|
Packit Service |
963350 |
<title><envar>GST_GL_API</envar></title>
|
|
Packit Service |
963350 |
<para>
|
|
Packit Service |
963350 |
Influences the OpenGL API requested by the OpenGL platform.
|
|
Packit Service |
963350 |
Common values are 'opengl' or 'gles2'.
|
|
Packit Service |
963350 |
</para>
|
|
Packit Service |
963350 |
</formalpara>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
</refsect2>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
</refsect1>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
</refentry>
|