else
{
print "No configuration file $config_file found. You might want to create one.\n";
+ print "This is not an error, just a friendly reminder... Check the man page.\n\n";
}
if (!defined $cfg{AUDIOSINK}) { $cfg{AUDIOSINK} = "osssink"; }
if (!defined $cfg{VIDEOSINK}) { $cfg{VIDEOSINK} = "colorspace ! xvideosink"; }
sub playfile($$)
{
my ($file, $ext) = @_;
+ my $command;
+ my $pipe;
+
$ext = lc $ext;
- my $pipe;
if ($cfg{VISUALIZER} && ($pipe = $pipes{"vis." . $ext}))
{
$command = "gst-launch filesrc location=\"$file\" ! $pipe";
my $ext = extension ($file);
if (!$ext) {
print "file $file doesn't have an extension !\n";
- return -1;
+ exit;
}
if ($ext eq 'm3u')
{
\fBgst\-launch\-ext\fR \fIfilename [filename...]\fR
.SH "DESCRIPTION"
.LP
-\fIgst\-launch\-ext\fP is a tool that is used to run a basic predefined \fIGStreamer\fP pipeline.
+\fIgst\-launch\-ext\fP is a tool that is used to run a basic predefined
+\fIGStreamer\fP pipeline. This application is only used as a quick test to
+ensure proper working of codecs and GStreamer. It doesn't handle more advanced
+features like synchronisation.
All supported formats in GStreamer should be playable by simply typing:
gst\-launch\-ext filename
+It will also print out the pipeline it uses, so you can customize it using
+cut and paste.
+
+.SH "CONFIGURATION"
+.LP
+\fIgst\-launch\-ext\fP can be configured by creating a .gst file in your
+home directory. This is a perl-style configuration file and can override
+the defaults for audio and video output sinks.
+
+Here is an example .gst file that implements the same defaults as hard-coded
+in the script :
+
+$cfg{AUDIOSINK} = "osssink";
+$cfg{VIDEOSINK} = "colorspace ! xvideosink";
+
+You can change osssink to any of esdsink, alsasink, jacksink (if you have
+the plug-in), and you can change xvideosink to aasink or sdlvideosink.
+
+Other plug-ins might be used as well if GStreamer has them.
.SH "SEE ALSO"
.BR gst\-guilaunch (1),