mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
updates
Original commit message from CVS: updates
This commit is contained in:
parent
42e05727a0
commit
cdbc5ea65c
2 changed files with 28 additions and 3 deletions
|
@ -51,6 +51,7 @@ sub read_config
|
|||
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"; }
|
||||
|
@ -60,9 +61,11 @@ sub read_config
|
|||
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";
|
||||
|
@ -123,7 +126,7 @@ while ($file = shift @ARGV) {
|
|||
my $ext = extension ($file);
|
||||
if (!$ext) {
|
||||
print "file $file doesn't have an extension !\n";
|
||||
return -1;
|
||||
exit;
|
||||
}
|
||||
if ($ext eq 'm3u')
|
||||
{
|
||||
|
|
|
@ -5,12 +5,34 @@ gst\-launch\-ext \- Run a predefined GStreamer pipeline
|
|||
\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),
|
||||
|
|
Loading…
Reference in a new issue