summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2002-02-04 22:09:40 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2002-02-04 22:09:40 +0000
commit1c6b00f624dfb25254980dde5e15cb1257de579e (patch)
tree923e36d0ab090254480b38805b8f61dab308505f /tools
parent79ab7003417718a9b2cb615a7780787a8b5d34b0 (diff)
does this matter ?
Original commit message from CVS: does this matter ?
Diffstat (limited to 'tools')
-rwxr-xr-xtools/gst-launch-ext9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/gst-launch-ext b/tools/gst-launch-ext
index 74e9caa1..7a5dc124 100755
--- a/tools/gst-launch-ext
+++ b/tools/gst-launch-ext
@@ -13,7 +13,7 @@ use File::Basename;
sub extension
{
my $path = shift;
- my $ext = (fileparse ($path, '\..*'))[2];
+ my $ext = (fileparse ($path, '\..*?'))[2];
$ext =~ s/^\.//;
return $ext;
}
@@ -58,9 +58,10 @@ read_config ();
my %pipes = (
"mp3", "mad ! $cfg{AUDIOSINK}",
"ogg", "vorbisdec ! $cfg{AUDIOSINK}",
- "mpg", "mpegdemux audio_00! { queue ! mad ! $cfg{AUDIOSINK} } mpegdemux0.video_00! { queue ! mpeg2dec ! $cfg{VIDEOSINK} }",
+ "mpg", "mpegdemux video_00! { queue ! mpeg2dec ! $cfg{VIDEOSINK} } mpegdemux0.audio_00! { queue ! mad ! $cfg{AUDIOSINK} }",
"avi", "avidemux video_00! { queue ! windec ! $cfg{VIDEOSINK} }",
- "vob", "mpegdemux video_00! { queue ! mpeg2dec ! $cfg{VIDEOSINK} }",
+ "vob", "mpegdemux video_00! { queue ! mpeg2dec ! $cfg{VIDEOSINK} } mpegdemux0.audio_00! { queue ! a52dec ! $cfg{AUDIOSINK} }",
+ "wav", "wavparse ! $cfg{AUDIOSINK}",
);
my $file = shift @ARGV or die "Please give a file name !";
@@ -71,7 +72,7 @@ if ($pipe = $pipes{$ext})
{
$command = "gst-launch filesrc location=\"$file\" ! $pipe";
print "Running $command\n";
- system ("PATH=\$PATH:".$cfg{CVS_PATH}."/gstreamer/tools/gst-launch $command");
+ system ("PATH=\$PATH:".$cfg{CVS_PATH}."/gstreamer/tools $command");
}
else
{