#!/bin/sh

mkdir -p /tmp/venc/c0/;
mkdir -p /tmp/aenc/c0/;
mkdir -p /tmp/playback/c0/;
mkdir -p /tmp/twoway/c0/;
mkdir -p /tmp/sr/c0/;
export LD_LIBRARY_PATH=$(pwd)/lib;

cd drivers
./driver.sh
cd ../



<<@
# QoS needs kernel support QoS and tc command 
# use beblow cmd, you could see the setting
# you could adjust the setting depend on your requestment.
# ./tc -s qdisc ls dev eth0
# ./tc -s class ls dev eth0

#./tc qdisc del dev eth0 root
./tc qdisc add dev eth0 root handle 1: prio bands 3 priomap 2 2 1 0 2 2 2 2 2 2 2 2 2 2 2 2
./tc qdisc add dev eth0 handle 2: parent 1:1 htb default 10
./tc class add dev eth0 classid 2:10 htb rate 11696000bps cburst 2924
@


#SRB
#./rtsps -c stream_server_config.ini &
#./streamer -D
#SCM
#open rtsp will affect writer speed beause buffer size is limited , so use avb do not open rtsp. This is for test.
#./rtsps -c stream_server_config.ini -t 1 & 
./streamer -D -t 1

#AVB
./gptp eth0 -S -V -GM &
./openavb_harness -I eth0 h264_gst_talker.ini,report_seconds=0 &
