[gnome-video-effects] add a small tool to generate previews for all effects
- From: Daniel G. Siegel <dgsiegel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-video-effects] add a small tool to generate previews for all effects
- Date: Sun, 30 Jan 2011 17:51:40 +0000 (UTC)
commit ec1ab2145a6c402876206b51107361c44b1694e7
Author: daniel g. siegel <dgsiegel gnome org>
Date: Sun Jan 30 18:50:39 2011 +0100
add a small tool to generate previews for all effects
.gitignore | 1 +
tools/create_effect_previews.sh | 57 +++++++++++++++++++++++++++++++++++++++
2 files changed, 58 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 1db625c..5e7de1d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -30,3 +30,4 @@ _build_
*.swp
*.effect
gnome-video-effects.pc
+previews
diff --git a/tools/create_effect_previews.sh b/tools/create_effect_previews.sh
new file mode 100644
index 0000000..327925f
--- /dev/null
+++ b/tools/create_effect_previews.sh
@@ -0,0 +1,57 @@
+#!/bin/bash
+# small script to generate previews of all effects. to generate them,
+# you need a folder "preview" in $srcdir with a file "normal.jpg" in it.
+
+srcdir=`pwd`
+effectsdir="$srcdir/effects"
+previewdir="$srcdir/previews"
+suffix="effect.in"
+# effects, which need movement or have problems with no real video stream
+ignore_effects="quarktv radioactv streaktv vertigotv ripple"
+
+test -z "$srcdir" && srcdir=.
+
+PKG_NAME="gnome-video-effects"
+
+(test -f $srcdir/configure.ac) || {
+ echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
+ echo " top-level $PKG_NAME directory"
+ exit 1
+}
+
+for i in $(ls $effectsdir/*.$suffix); do
+ name=$(basename ${i%.$suffix})
+
+ if [ ! -e "$previewdir/$name.jpg" ]; then
+ if [[ ! "$ignore_effects" =~ "${name}" ]]; then
+ echo -e "\n\nCreating preview for $name"
+ gst-launch filesrc location=$previewdir/normal.jpg ! jpegdec ! ffmpegcolorspace ! \
+ $(grep PipelineDescription "$i" | sed "s/^PipelineDescription=//") ! \
+ ffmpegcolorspace ! jpegenc ! filesink location="$previewdir/$name.jpg"
+ fi
+ fi
+done
+
+echo "= List of GNOME Video Effects =
+
+<<Anchor(normal)>>
+== Normal ==
+No effect applied
+
+{{attachment:normal.jpg}}
+"
+
+for i in $(ls $effectsdir/*.$suffix); do
+ name=$(basename ${i%.$suffix})
+
+ echo "<<Anchor($name)>>"
+ echo "== $(grep Name "$i" | sed "s/^_Name=//") ($name.effect) =="
+ echo "$(grep Comment "$i" | sed "s/^_Comment=//")"
+ echo
+ if [[ ! "$ignore_effects" =~ "${name}" ]]; then
+ echo "{{attachment:$name.jpg}}"
+ else
+ echo "see [[http://effectv.sourceforge.net/$(echo $name | sed "s/actv//" | sed "s/tv$//").html]]"
+ fi
+ echo
+done
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]