summaryrefslogtreecommitdiff
path: root/example-scripts/misc
diff options
context:
space:
mode:
authorMaZderMind <git@mazdermind.de>2015-12-06 20:28:02 +0100
committerMaZderMind <git@mazdermind.de>2015-12-06 20:28:57 +0100
commit39c8cb3a0e3813ef77c61c601d0028281c04ad2d (patch)
tree8e4798e9b70732f1c28f180457e962c63f1a20ec /example-scripts/misc
parentb2b0e458a59ef8ede58b369a5d5194939021165d (diff)
[example-scripts] overhaul and test all example scripts, fixes #5
Diffstat (limited to 'example-scripts/misc')
-rwxr-xr-xexample-scripts/misc/benchmark.sh13
-rwxr-xr-xexample-scripts/misc/demo-local.sh15
-rwxr-xr-xexample-scripts/misc/perf.sh12
3 files changed, 40 insertions, 0 deletions
diff --git a/example-scripts/misc/benchmark.sh b/example-scripts/misc/benchmark.sh
new file mode 100755
index 0000000..70b8cfa
--- /dev/null
+++ b/example-scripts/misc/benchmark.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+../../voctocore/voctocore.py &
+PID=$!
+echo "PID=$PID"
+sleep 1
+../control-server/set-composite-side-by-side-equal.sh >/dev/null 2>/dev/null
+../ffmpeg/source-testvideo-as-cam1.sh >/dev/null 2>/dev/null &
+../ffmpeg/source-testvideo-as-cam2.sh >/dev/null 2>/dev/null &
+pidstat -p $PID 1 &
+sleep 10
+kill $PID
+wait
diff --git a/example-scripts/misc/demo-local.sh b/example-scripts/misc/demo-local.sh
new file mode 100755
index 0000000..bb57e45
--- /dev/null
+++ b/example-scripts/misc/demo-local.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+../../voctocore/voctocore.py &
+PID=$!
+echo "PID=$PID"
+sleep 1
+../ffmpeg/source-testvideo-as-cam1.sh >/dev/null 2>/dev/null &
+../ffmpeg/source-testvideo-as-cam2.sh >/dev/null 2>/dev/null &
+../ffmpeg/source-background-loop.sh &
+../ffmpeg/av-record-output-ffmpeg.sh &
+#../ffmpeg/stream-hd.sh &
+../control-server/demo-cycle-modes.sh &
+ffplay tcp://localhost:11000
+kill $PID
+wait
diff --git a/example-scripts/misc/perf.sh b/example-scripts/misc/perf.sh
new file mode 100755
index 0000000..e347151
--- /dev/null
+++ b/example-scripts/misc/perf.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+../../voctocore/voctocore.py &
+PID=$!
+echo "PID=$PID"
+sleep 1
+../control-server/set-composite-side-by-side-equal.sh >/dev/null 2>/dev/null
+../ffmpeg/source-testvideo-as-cam1.sh >/dev/null 2>/dev/null &
+../ffmpeg/source-testvideo-as-cam2.sh >/dev/null 2>/dev/null &
+sudo perf top -g -p $PID
+kill $PID
+wait