[gegl] tests: add Makefile.am for ffmpeg smoke tests
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] tests: add Makefile.am for ffmpeg smoke tests
- Date: Fri, 27 Nov 2015 03:21:54 +0000 (UTC)
commit b56b5f2911a6c539a3fc5d4b1bf3ac5e33026c49
Author: Øyvind Kolås <pippin gimp org>
Date: Fri Nov 27 03:20:54 2015 +0100
tests: add Makefile.am for ffmpeg smoke tests
examples/video-invert.c | 5 +----
tests/ff-load-save/Makefile.am | 38 ++++++++++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+), 4 deletions(-)
---
diff --git a/examples/video-invert.c b/examples/video-invert.c
index 4077eeb..494f478 100644
--- a/examples/video-invert.c
+++ b/examples/video-invert.c
@@ -36,10 +36,7 @@ main (gint argc,
gegl_enc = gegl_node_new ();
load_buf = gegl_node_new_child (gegl_enc, "operation", "gegl:buffer-source", NULL);
- //invert = gegl_node_new_child (gegl_enc, "operation", "gegl:snn-mean", NULL);
- invert = gegl_node_new_child (gegl_enc, "operation", "gegl:mblur", NULL);
- invert2 = gegl_node_new_child (gegl_enc, "operation", "gegl:snn-mean", NULL);
- invert3 = gegl_node_new_child (gegl_enc, "operation", "gegl:snn-mean", NULL);
+ invert = gegl_node_new_child (gegl_enc, "operation", "gegl:gray", NULL);
encode = gegl_node_new_child (gegl_dec, "operation", "gegl:ff-save", "path", output_path, NULL);
gegl_node_link_many (load_buf, invert, /*invert2, invert3,*/ encode, NULL);
diff --git a/tests/ff-load-save/Makefile.am b/tests/ff-load-save/Makefile.am
new file mode 100644
index 0000000..c31910c
--- /dev/null
+++ b/tests/ff-load-save/Makefile.am
@@ -0,0 +1,38 @@
+
+if HAVE_AVFORMAT
+# List of tests.
+
+TESTS:
+
+EXTRA_DIST = $(TESTS)
+
+check: vids images
+
+images:
+ for a in *.avi *.mp4 *.ogv *.webm;do \
+ GEGL_PATH=$(top_builddir)/operations $(top_builddir)/examples/gegl-video \
+ $$a -s 74 -e 74 -of $$a- ;\
+ done
+
+vids: $(TESTS) $(top_builddir)/examples/frame-counter
+ GEGL_PATH=$(top_builddir)/operations $(top_builddir)/examples/frame-counter \
+ --video-codec mpeg4 --video-bit-rate 128 mpeg4-128kb.avi
+ GEGL_PATH=$(top_builddir)/operations $(top_builddir)/examples/frame-counter \
+ --video-codec mpeg4 --video-bit-rate 512 mpeg4-512kb.avi
+ GEGL_PATH=$(top_builddir)/operations $(top_builddir)/examples/frame-counter \
+ --video-codec mpeg4 --video-bit-rate 512 512kb.mp4
+ GEGL_PATH=$(top_builddir)/operations $(top_builddir)/examples/frame-counter \
+ --video-codec mpeg4 --video-bit-rate 128 128kb.mp4
+ GEGL_PATH=$(top_builddir)/operations $(top_builddir)/examples/frame-counter \
+ --video-codec mpeg4 --fps 12 --video-bit-rate 128 128kb-12fps.mp4
+ GEGL_PATH=$(top_builddir)/operations $(top_builddir)/examples/frame-counter \
+ --video-codec mpeg4 --fps 100 --video-bit-rate 128 128kb-100fps.mp4
+ GEGL_PATH=$(top_builddir)/operations $(top_builddir)/examples/frame-counter \
+ --fps 28 --video-bit-rate 512 512kb-28fps.ogv
+ GEGL_PATH=$(top_builddir)/operations $(top_builddir)/examples/frame-counter \
+ --fps 28 --video-bit-rate 512 512kb-28fps.webm
+
+clean-local:
+ rm -f *.png *.avi *.ogv *.mp4 *.webm
+
+endif # HAVE_AVFORMAT
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]