Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
audiowmark
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
audiowmark
Commits
1ee0ce2f
Commit
1ee0ce2f
authored
Dec 12, 2018
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support AWM_SEEDS for testing with multiple --seed values.
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
181fb15f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
45 deletions
+51
-45
ber-test.sh
src/ber-test.sh
+51
-45
No files found.
src/ber-test.sh
View file @
1ee0ce2f
...
@@ -5,6 +5,9 @@ TRANSFORM=$1
...
@@ -5,6 +5,9 @@ TRANSFORM=$1
if
[
"x
$AWM_SET
"
==
"x"
]
;
then
if
[
"x
$AWM_SET
"
==
"x"
]
;
then
AWM_SET
=
small
AWM_SET
=
small
fi
fi
if
[
"x
$AWM_SEEDS
"
==
"x"
]
;
then
AWM_SEEDS
=
0
fi
{
{
if
[
"x
$AWM_SET
"
==
"xsmall"
]
;
then
if
[
"x
$AWM_SET
"
==
"xsmall"
]
;
then
...
@@ -17,8 +20,10 @@ fi
...
@@ -17,8 +20,10 @@ fi
fi
fi
}
|
while
read
i
}
|
while
read
i
do
do
for
SEED
in
$AWM_SEEDS
do
echo
$i
echo
$i
audiowmark add
"
$i
"
t.wav
$PATTERN
$AWM_PARAMS
>
/dev/null
audiowmark add
"
$i
"
t.wav
$PATTERN
$AWM_PARAMS
--seed
$SEED
>
/dev/null
if
[
"x
$TRANSFORM
"
==
"xmp3"
]
;
then
if
[
"x
$TRANSFORM
"
==
"xmp3"
]
;
then
if
[
"x
$2
"
==
"x"
]
;
then
if
[
"x
$2
"
==
"x"
]
;
then
echo
"need mp3 bitrate"
>
&2
echo
"need mp3 bitrate"
>
&2
...
@@ -66,5 +71,6 @@ do
...
@@ -66,5 +71,6 @@ do
echo
"unknown transform
$TRANSFORM
"
>
&2
echo
"unknown transform
$TRANSFORM
"
>
&2
exit
1
exit
1
fi
fi
audiowmark cmp t.wav
$PATTERN
$AWM_PARAMS
audiowmark cmp t.wav
$PATTERN
$AWM_PARAMS
--seed
$SEED
done
done
|
grep
bit_error_rate |
awk
'{ er += $2; n++; if ($2 > max_er) max_er = $2;} END { print er / n, max_er; }'
done
|
grep
bit_error_rate |
awk
'{ er += $2; n++; if ($2 > max_er) max_er = $2;} END { print er / n, max_er; }'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment