Add the gst-audio-interleave-channels.sh example
authorAntonio Ospite <ao2@ao2.it>
Wed, 17 Sep 2014 10:00:04 +0000 (12:00 +0200)
committerAntonio Ospite <ao2@ao2.it>
Wed, 17 Sep 2014 10:00:04 +0000 (12:00 +0200)
shell/gst-audio-interleave-channels.sh [new file with mode: 0755]

diff --git a/shell/gst-audio-interleave-channels.sh b/shell/gst-audio-interleave-channels.sh
new file mode 100755 (executable)
index 0000000..144727d
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+gst-launch-1.0 -v interleave name=i ! \
+  capssetter caps="audio/x-raw,channels=2,channel-mask=(bitmask)0x3" ! \
+  audioconvert ! wavenc ! filesink location=audio-interleave-test.wav \
+  audiotestsrc wave=0 num-buffers=100 ! audioconvert ! "audio/x-raw,channels=1" ! queue ! i.sink_0 \
+  audiotestsrc wave=2 num-buffers=100 ! audioconvert ! "audio/x-raw,channels=1" ! queue ! i.sink_1