From 04100e2d62df6f8e8912dfb6cc8ba6f83e4e6f72 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Wed, 17 Sep 2014 12:00:04 +0200 Subject: [PATCH] Add the gst-audio-interleave-channels.sh example --- shell/gst-audio-interleave-channels.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 shell/gst-audio-interleave-channels.sh diff --git a/shell/gst-audio-interleave-channels.sh b/shell/gst-audio-interleave-channels.sh new file mode 100755 index 0000000..144727d --- /dev/null +++ b/shell/gst-audio-interleave-channels.sh @@ -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 -- 2.1.4