Skip to content

Commit

Permalink
tools: jbuf plots - update plot data fields
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 committed Sep 27, 2023
1 parent bf197ee commit 138dc4e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions tools/jbuf/audio/config
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ audio_buffer 10-50
audio_buffer_mode adaptive
audio_silence 0.0

audio_jitter_buffer_type adaptive
audio_jitter_buffer_delay 0-500
audio_jitter_buffer_type fixed
audio_jitter_buffer_delay 2-40

statmode_default off
rtp_stats no
Expand Down
7 changes: 3 additions & 4 deletions tools/jbuf/jbuf.plot
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ stats "jbuf.dat" using ($6) name "N"
event_h(i) = (0.5*N_max) + 0.3*N_max*(i/6.0)

plot \
'jbuf.dat' using 3:4 title 'rdiff' with linespoints lc "orange", \
'jbuf.dat' using 3:5 title 'wish' with linespoints lc "sea-green", \
'jbuf.dat' using 3:6 title 'n' with linespoints lc "skyblue", \
'jbuf.dat' using 3:7 title 'nf' with linespoints lc "light-blue", \
'jbuf.dat' using 3:4 title 'n' with linespoints lc "skyblue", \
'jbuf.dat' using 3:5 title 'nf' with linespoints lc "light-blue", \
'jbuf.dat' using 3:6 title 'ncf' with linespoints lc "green", \
'overrun.dat' using 3:(event_h(1)) title 'overrun' pt 7 ps 1.5 lc "#FF0000", \
'underflow.dat' using 3:(event_h(2)) title 'underflow' pt 7 ps 1.5 lc "#FF4444", \
'toolate.dat' using 3:(event_h(3)) title 'toolate' pt 7 ps 1.5 lc "#BB5454", \
Expand Down
4 changes: 2 additions & 2 deletions tools/jbuf/plot_loop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ source ./jitter.sh
init_jitter $netif

strm="audio"
for jmin in 0 10 20; do
for jmin in 2 4 6; do
for i in 0 1; do
if [ "$i" == "0" ]; then
strm="audio"
Expand All @@ -40,7 +40,7 @@ for jmin in 0 10 20; do

echo "########### jitter buffer $strm $jmin ###############"

sed -e "s/${strm}_jitter_buffer_delay\s*[0-9]*\-.*/${strm}_jitter_buffer_delay ${jmin}-500/" -i ${strm}/config
sed -e "s/${strm}_jitter_buffer_delay\s*[0-9]*\-/${strm}_jitter_buffer_delay ${jmin}-/" -i ${strm}/config
baresip -v -f ${strm} > /tmp/${strm}.log 2>&1 &
sleep 1
echo "/dial $target" | nc -N localhost 5555
Expand Down
4 changes: 2 additions & 2 deletions tools/jbuf/video/config
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ audio_buffer_mode adaptive
audio_silence 0.0

audio_jitter_buffer_type off
video_jitter_buffer_type adaptive
video_jitter_buffer_delay 0-500
video_jitter_buffer_type fixed
video_jitter_buffer_delay 2-20

statmode_default off
rtp_stats no
Expand Down

0 comments on commit 138dc4e

Please sign in to comment.