From 227be98c0b65a1616c0d0689db6fa7576bcbe434 Mon Sep 17 00:00:00 2001 From: Tim-Philipp Müller Date: Sat, 18 Aug 2012 21:36:09 +0100 Subject: tools: remove gst-visualise script Bit pointless really and clearly unused since the 0.8 days. Also simplify Makefile while we're at it. --- tools/.gitignore | 2 -- tools/Makefile.am | 19 ++++-------- tools/gst-discoverer-1.0.1 | 37 ++++++++++++++++++++++ tools/gst-discoverer.1.in | 37 ---------------------- tools/gst-visualise-m.m | 77 ---------------------------------------------- tools/gst-visualise.1.in | 31 ------------------- 6 files changed, 43 insertions(+), 160 deletions(-) create mode 100644 tools/gst-discoverer-1.0.1 delete mode 100644 tools/gst-discoverer.1.in delete mode 100644 tools/gst-visualise-m.m delete mode 100644 tools/gst-visualise.1.in (limited to 'tools') diff --git a/tools/.gitignore b/tools/.gitignore index a2650b52f..b6276e635 100644 --- a/tools/.gitignore +++ b/tools/.gitignore @@ -1,3 +1 @@ -gst-visualise-?.* -gst-visualise-?.*.1 gst-discoverer-* diff --git a/tools/Makefile.am b/tools/Makefile.am index 946b1f9b2..99392f86b 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -1,8 +1,6 @@ -bin_SCRIPTS = \ - gst-visualise-@GST_API_VERSION@ +bin_SCRIPTS = man_MANS = \ - gst-visualise-@GST_API_VERSION@.1 \ gst-discoverer-@GST_API_VERSION@.1 bin_PROGRAMS = \ @@ -10,10 +8,10 @@ bin_PROGRAMS = \ gst_discoverer_@GST_API_VERSION@_SOURCES = gst-discoverer.c -CLEANFILES = $(man_MANS) $(bin_SCRIPTS) $(bin_PROGRAMS) +CLEANFILES = $(bin_SCRIPTS) $(bin_PROGRAMS) EXTRA_DIST = \ - gst-visualise-m.m gst-visualise.1.in gst-discoverer.1.in + gst-discoverer.1.in LDADD = $(top_builddir)/gst-libs/gst/pbutils/libgstpbutils-@GST_API_VERSION@.la \ @@ -24,11 +22,6 @@ LDADD = $(top_builddir)/gst-libs/gst/pbutils/libgstpbutils-@GST_API_VERSION@.la AM_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) -# generate versioned scripts from templates -%-@GST_API_VERSION@: %-m.m - $(AM_V_GEN)sed -e s,\@GST_API_VERSION\@,@GST_API_VERSION@,g $< > $@ && \ - chmod +x $@ - # generate man pages %-@GST_API_VERSION@.1: %.1.in $(AM_V_GEN)sed \ @@ -38,12 +31,12 @@ AM_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_BASE_CFLAGS) $(GST_CFLAGS) all: all-am chmod chmod: $(bin_SCRIPTS) - @chmod +x $^ +# @chmod +x $^ Android.mk: Makefile.am - androgenizer -:PROJECT gst-discoverer \ + androgenizer -:PROJECT gst-discoverer-@GST_API_VERSION@ \ -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \ - -:EXECUTABLE gst-discoverer -:TAGS eng debug \ + -:EXECUTABLE gst-discoverer-@GST_API_VERSION@ -:TAGS eng debug \ -:SOURCES $(gst_discoverer_@GST_API_VERSION@_SOURCES) \ -:CFLAGS $(DEFS) $(AM_CFLAGS) \ -:LDFLAGS -lgstpbutils-@GST_API_VERSION@ -lgstvideo-@GST_API_VERSION@ \ diff --git a/tools/gst-discoverer-1.0.1 b/tools/gst-discoverer-1.0.1 new file mode 100644 index 000000000..c266596b8 --- /dev/null +++ b/tools/gst-discoverer-1.0.1 @@ -0,0 +1,37 @@ +.TH "GStreamer" "1" "August 2012" "" "" +.SH "NAME" +gst\-discoverer\-1.0 \- Display file metadata and stream information +.SH "SYNOPSIS" +\fBgst\-discoverer\-1.0\fR \fIFILE|DIRECTORY|URI [FILE2|DIRECTORY2|URI2]\fR +.SH "DESCRIPTION" +.LP +\fIgst\-discoverer\-1.0\fP is a tool that can be used to print +basic metadata and stream information about a media file. It can be run on +individual files or whole directories. It will recurse into sub-directories +in that case. + +.SH "OPTIONS" +.l +\fIgst\-discoverer\-1.0\fP accepts the following options: +.TP 8 +.B \-\-help +Print help synopsis and available FLAGS +.TP 8 +.B \-v, \-\-verbose +Output all available information +.TP 8 +.B \-a, \-\-async +Use asynchronous code path +.TP 8 +.B \-t, \-\-timeout=T +Specify timeout in seconds (default: 10 seconds) +.TP 8 +.B \-c, \-\-toc +Output TOC (chapters and editions) if available +.TP 8 + +.SH "SEE ALSO" +.BR gst\-inspect\-1.0 (1), +.BR gst\-launch\-1.0 (1), +.SH "AUTHOR" +The GStreamer team at http://gstreamer.freedesktop.org/ diff --git a/tools/gst-discoverer.1.in b/tools/gst-discoverer.1.in deleted file mode 100644 index c266596b8..000000000 --- a/tools/gst-discoverer.1.in +++ /dev/null @@ -1,37 +0,0 @@ -.TH "GStreamer" "1" "August 2012" "" "" -.SH "NAME" -gst\-discoverer\-1.0 \- Display file metadata and stream information -.SH "SYNOPSIS" -\fBgst\-discoverer\-1.0\fR \fIFILE|DIRECTORY|URI [FILE2|DIRECTORY2|URI2]\fR -.SH "DESCRIPTION" -.LP -\fIgst\-discoverer\-1.0\fP is a tool that can be used to print -basic metadata and stream information about a media file. It can be run on -individual files or whole directories. It will recurse into sub-directories -in that case. - -.SH "OPTIONS" -.l -\fIgst\-discoverer\-1.0\fP accepts the following options: -.TP 8 -.B \-\-help -Print help synopsis and available FLAGS -.TP 8 -.B \-v, \-\-verbose -Output all available information -.TP 8 -.B \-a, \-\-async -Use asynchronous code path -.TP 8 -.B \-t, \-\-timeout=T -Specify timeout in seconds (default: 10 seconds) -.TP 8 -.B \-c, \-\-toc -Output TOC (chapters and editions) if available -.TP 8 - -.SH "SEE ALSO" -.BR gst\-inspect\-1.0 (1), -.BR gst\-launch\-1.0 (1), -.SH "AUTHOR" -The GStreamer team at http://gstreamer.freedesktop.org/ diff --git a/tools/gst-visualise-m.m b/tools/gst-visualise-m.m deleted file mode 100644 index eea4b598c..000000000 --- a/tools/gst-visualise-m.m +++ /dev/null @@ -1,77 +0,0 @@ -#!/usr/bin/perl -w - -# launch a gst-launch pipeline to display a visualisation of the -# input audio. -# make use of default input srcs. -# visualisation plugin is specified on command line. - -### packages - - -my (%pipes, %cfg); - -sub read_config -{ - my $config_file = `echo -n ~`."/.gst"; - if (-e $config_file) - { - open CONFIG, $config_file; - while () - { - chomp; - s/#.*//; - s/\s+$//; - next unless length; - my ($var, $value) = split (/\s*=\s*/, $_, 2); - $cfg{$var} = $value; - } - if (!($cfg{AUDIOSRC})) - { - print "Please add an AUDIOSRC to $config_file !\n"; - } - if (!($cfg{VIDEOSINK})) - { - print "Please add a VIDEOSINK to $config_file !\n"; - } - } - else - { - print "No configuration file $config_file found. You might want to create one.\n"; - } - if (!defined $cfg{AUDIOSRC}) { $cfg{AUDIOSRC} = "osssrc"; } - if (!defined $cfg{VIDEOSINK}) { $cfg{VIDEOSINK} = "xvimagesink"; } - if (!defined $cfg{CVS_PATH}) { $cfg{CVS_PATH} = `echo -n ~`."/gst/cvs"; } -} - -sub visualise(@) -{ - my $vis = $cfg{VISUALIZER}; - $vis = shift() if ($#_ != -1); - $vis = "goom" unless $vis; - - my $pipe; - $pipe = $vis unless $pipe = $pipes{$vis}; - - $command = "gst-launch-@GST_API_VERSION@ $cfg{AUDIOSRC} ! $pipe ! { queue ! videoconvert ! $cfg{VIDEOSINK} }"; - print "Running $command\n"; - system ("PATH=\$PATH:".$cfg{CVS_PATH}."/gstreamer/tools $command"); -} - -### main - -read_config (); - -%pipes = ( - "goom", "goom", - "chart", "audioconvert ! chart", - "synaesthesia", "synaesthesia", - "monoscope", "audioconvert ! monoscope" -); - -if ($#ARGV > 0) { - print STDERR "Usage: gst-visualise [visualiser]\n"; - exit 1; -} - -visualise(@ARGV); - diff --git a/tools/gst-visualise.1.in b/tools/gst-visualise.1.in deleted file mode 100644 index 4b7b3e3d9..000000000 --- a/tools/gst-visualise.1.in +++ /dev/null @@ -1,31 +0,0 @@ -.TH "GStreamer" "1" "February 2002" "" "" -.SH "NAME" -gst\-visualise \- Run a GStreamer pipeline to display an audio visualisation -.SH "SYNOPSIS" -\fBgst\-visualise\fR \fI[visualiser]\fR -.SH "DESCRIPTION" -.LP -\fIgst\-visualise\fP is a tool that is used to run a basic \fIGStreamer\fP pipeline, to display a graphical visualisation of an audio stream. - -By default, the audio stream is read from ESD (the Enlightened Sound Daemon), -but this can be changed by setting the AUDIOSRC parameter in ~/.gst. For -example, you might set "AUDIOSRC=osssrc" to display a visualisation of the -sound input to your soundcard. - -You can select a visualiser by providing a parameter naming the visualiser. -For example: - - gst\-visualise synaesthesia - -will use the synaesthesia plugin. If no visualiser is named, the VISUALIZER -property in ~/.gst will be used. If this is not specified either, the goom -visualiser will be used. - -The videosink to use to display the visualisation will be read from the -VIDEOSINK parameter in ~/.gst, defaulting to sdlvideosink. - -.SH "SEE ALSO" -.BR gst\-inspect (1), -.BR gst\-launch (1), -.SH "AUTHOR" -The GStreamer team at http://gstreamer.net/ -- cgit v1.2.3