summaryrefslogtreecommitdiff
path: root/run_avtp_pipeline.sh
diff options
context:
space:
mode:
authorBrant Thomsen <brant.thomsen@harman.com>2017-12-05 12:26:27 -0700
committerBrant Thomsen <brant.thomsen@harman.com>2017-12-05 16:14:17 -0700
commite19b04885a2807e24a1efe169bcc65fc5e8ad38e (patch)
tree14802c7b4f155540432b2f18a6a528ec904409bf /run_avtp_pipeline.sh
parentbfd90fbbcf189650e0b15edd8a5511bf271bbf6e (diff)
downloadOpen-AVB-e19b04885a2807e24a1efe169bcc65fc5e8ad38e.tar.gz
Added AVTP Pipeline Example
Added example Talker and Listener .ini files. Added scripts to start and stop the AVTP Pipeline as a Talker & Listener. README updates describing how to use the updated scripts and .ini files.
Diffstat (limited to 'run_avtp_pipeline.sh')
-rwxr-xr-xrun_avtp_pipeline.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/run_avtp_pipeline.sh b/run_avtp_pipeline.sh
new file mode 100755
index 00000000..8b80f8df
--- /dev/null
+++ b/run_avtp_pipeline.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+# Script to start the AVTP Pipeline talker/listener with 8-channel, 48K/24-bit IEC 61883-6 audio.
+# For more details, refer to the lib/avtp_pipeline/README.md file.
+
+if [ "$#" -eq "0" ]; then
+ echo "Please enter network interface name as parameter. For example:"
+ echo "sudo $0 eth1"
+ echo ""
+ exit -1
+fi
+
+nic=$1
+echo "Starting AVTP Pipeline on "$nic
+
+currentdir="$PWD"
+scriptdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+
+cd $scriptdir/lib/avtp_pipeline/build/bin
+./openavb_avdecc -I pcap:$nic example_talker.ini example_listener.ini &
+sleep 5
+./openavb_host -I pcap:$nic example_talker.ini example_listener.ini &
+cd $currentdir
+