diff options
author | MaZderMind <git@mazdermind.de> | 2015-05-20 10:59:39 +0200 |
---|---|---|
committer | MaZderMind <git@mazdermind.de> | 2015-05-20 10:59:39 +0200 |
commit | a50f56c68a8b0e7170427358f99d200be0626491 (patch) | |
tree | 71b75e231dc7cfb7b66ac53ff33d97e1bf8b6367 /voctocore/scripts | |
parent | 7f281ac2be37ef04c331ac9d91a075f29ea57d7b (diff) |
cube demo scripts
Diffstat (limited to 'voctocore/scripts')
-rwxr-xr-x | voctocore/scripts/av-source-cam1.sh | 20 | ||||
-rwxr-xr-x | voctocore/scripts/av-source-cam2.sh | 20 | ||||
-rwxr-xr-x | voctocore/scripts/cube-demo-files.sh | 14 | ||||
-rwxr-xr-x | voctocore/scripts/cube-demo.sh | 14 |
4 files changed, 44 insertions, 24 deletions
diff --git a/voctocore/scripts/av-source-cam1.sh b/voctocore/scripts/av-source-cam1.sh index 11b9663..22b61f5 100755 --- a/voctocore/scripts/av-source-cam1.sh +++ b/voctocore/scripts/av-source-cam1.sh @@ -1,13 +1,9 @@ #!/bin/sh -gst-launch-1.0 -vm \ - videotestsrc pattern=smpte !\ - video/x-raw,format=I420,width=1280,height=720,framerate=25/1,pixel-aspect-ratio=1/1 ! \ - timeoverlay valignment=bottom ! \ - mux. \ - \ - audiotestsrc freq=440 !\ - audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=48000 !\ - mux. \ - \ - matroskamux name=mux !\ - tcpclientsrc host=localhost port=10000 +ffmpeg -y \ + -i "$HOME/31c3-sendezentrum-1013-de-Methodisch_inkorrekt_Die_falsche_42_hd.mp4" \ + -ac 2 \ + -af aresample=48000 \ + -c:v rawvideo \ + -c:a pcm_s16le \ + -f matroska \ + tcp://localhost:10000 diff --git a/voctocore/scripts/av-source-cam2.sh b/voctocore/scripts/av-source-cam2.sh index 139a507..6f39fd0 100755 --- a/voctocore/scripts/av-source-cam2.sh +++ b/voctocore/scripts/av-source-cam2.sh @@ -1,13 +1,9 @@ #!/bin/sh -gst-launch-1.0 -vm \ - videotestsrc pattern=ball !\ - video/x-raw,format=I420,width=1280,height=720,framerate=25/1,pixel-aspect-ratio=1/1 ! \ - timeoverlay valignment=bottom ! \ - mux. \ - \ - audiotestsrc freq=330 !\ - audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=48000 !\ - mux. \ - \ - matroskamux name=mux !\ - tcpclientsrc host=localhost port=10001 +ffmpeg -y \ + -i "$HOME/31c3-sendezentrum-1003-de-Freak_Show_FS147_That_Escalatored_Quickly_hd.mp4" \ + -ac 2 \ + -af aresample=48000 \ + -c:v rawvideo \ + -c:a pcm_s16le \ + -f matroska \ + tcp://localhost:10001 diff --git a/voctocore/scripts/cube-demo-files.sh b/voctocore/scripts/cube-demo-files.sh new file mode 100755 index 0000000..c152357 --- /dev/null +++ b/voctocore/scripts/cube-demo-files.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +../voctocore.py -vv & +PID=$! +echo "PID=$PID" +sleep 1 +./set-composite-side-by-side-equal.sh +./av-source-cam1.sh & +./av-source-cam2.sh & +./av-record-output-ffmpeg-timestamps.sh & +./av-stream-hd.sh & +while true; do sleep 1; done +kill $PID +wait diff --git a/voctocore/scripts/cube-demo.sh b/voctocore/scripts/cube-demo.sh new file mode 100755 index 0000000..e3a4efd --- /dev/null +++ b/voctocore/scripts/cube-demo.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +../voctocore.py -vv & +PID=$! +echo "PID=$PID" +sleep 1 +./set-composite-side-by-side-equal.sh +./av-source-bmd-cam1.sh & +./av-source-bmd-cam2.sh & +./av-record-output-ffmpeg-timestamps.sh & +./av-stream-hd.sh & +while true; do sleep 1; done +kill $PID +wait |