Skip to content
Snippets Groups Projects
Commit 83581239 authored by Stephen C Phillips's avatar Stephen C Phillips
Browse files

Adds reporting of errors from VLC clients

Not quite working well enough: too slow
parent ca200e98
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
COUNTER=$1
TELEGRAF=http://localhost:8186
while read line; do
curl -i -XPOST "${TELEGRAF}/write?precision=s" --data-binary "vlc,client=${COUNTER} drop_error=1 $(date +%s)" >& /dev/null
done
......@@ -31,7 +31,7 @@ if [ "$#" -ne 3 ]; then
fi
# create test directories
TEST_FOLDER=$(date +%Y%m%d%H%M%S)
TEST_FOLDER=$(date +%Y%m%d%H%M%S)
TEST_RUN_DIR=$1
TEST_DIR=$TEST_RUN_DIR"/streaming/"$TEST_FOLDER
echo "Test directory: "$TEST_DIR
......@@ -47,8 +47,7 @@ STREAM_URI=$2
COUNTER=0
MAX_CLIENTS=$3
while [ $COUNTER -lt $MAX_CLIENTS ]; do
cvlc -Vdummy --no-audio $STREAM_URI &>$TEST_DIR/stdout$COUNTER &
# cvlc -Vdummy --no-audio --verbose=0 --file-logging --logfile=$TEST_DIR/vlc-log$COUNTER.txt $STREAM_URI &
cvlc -Vdummy --no-audio $STREAM_URI 2>&1 | tee $TEST_DIR/stdout$COUNTER | grep "dropping" | /home/ubuntu/flame-clmc/test/streaming/report.sh ${COUNTER} &
sleep 1
let COUNTER=COUNTER+1
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment