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
dc94ff43
Commit
dc94ff43
authored
Feb 05, 2019
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use mp3/ogg file directly in error test script.
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
5f718b61
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
ber-test.sh
src/ber-test.sh
+5
-7
No files found.
src/ber-test.sh
View file @
dc94ff43
...
@@ -58,8 +58,7 @@ do
...
@@ -58,8 +58,7 @@ do
exit
1
exit
1
fi
fi
lame
-b
$2
${
AWM_FILE
}
.wav
${
AWM_FILE
}
.mp3
--quiet
lame
-b
$2
${
AWM_FILE
}
.wav
${
AWM_FILE
}
.mp3
--quiet
rm
${
AWM_FILE
}
.wav
OUT_FILE
=
${
AWM_FILE
}
.mp3
ffmpeg
-i
${
AWM_FILE
}
.mp3
${
AWM_FILE
}
.wav
-v
quiet
-nostdin
elif
[
"x
$TRANSFORM
"
==
"xdouble-mp3"
]
;
then
elif
[
"x
$TRANSFORM
"
==
"xdouble-mp3"
]
;
then
if
[
"x
$2
"
==
"x"
]
;
then
if
[
"x
$2
"
==
"x"
]
;
then
echo
"need mp3 bitrate"
>
&2
echo
"need mp3 bitrate"
>
&2
...
@@ -72,23 +71,22 @@ do
...
@@ -72,23 +71,22 @@ do
# second mp3 step
# second mp3 step
lame
-b
$2
${
AWM_FILE
}
.wav
${
AWM_FILE
}
.mp3
--quiet
lame
-b
$2
${
AWM_FILE
}
.wav
${
AWM_FILE
}
.mp3
--quiet
rm
${
AWM_FILE
}
.wav
OUT_FILE
=
${
AWM_FILE
}
.mp3
ffmpeg
-i
${
AWM_FILE
}
.mp3
${
AWM_FILE
}
.wav
-v
quiet
-nostdin
elif
[
"x
$TRANSFORM
"
==
"xogg"
]
;
then
elif
[
"x
$TRANSFORM
"
==
"xogg"
]
;
then
if
[
"x
$2
"
==
"x"
]
;
then
if
[
"x
$2
"
==
"x"
]
;
then
echo
"need ogg bitrate"
>
&2
echo
"need ogg bitrate"
>
&2
exit
1
exit
1
fi
fi
oggenc
-b
$2
${
AWM_FILE
}
.wav
-o
${
AWM_FILE
}
.ogg
--quiet
oggenc
-b
$2
${
AWM_FILE
}
.wav
-o
${
AWM_FILE
}
.ogg
--quiet
oggdec
${
AWM_FILE
}
.ogg
-o
${
AWM_FILE
}
.wav
--quiet
OUT_FILE
=
${
AWM_FILE
}
.ogg
elif
[
"x
$TRANSFORM
"
==
"x"
]
;
then
elif
[
"x
$TRANSFORM
"
==
"x"
]
;
then
:
OUT_FILE
=
${
AWM_FILE
}
.wav
else
else
echo
"unknown transform
$TRANSFORM
"
>
&2
echo
"unknown transform
$TRANSFORM
"
>
&2
exit
1
exit
1
fi
fi
# blind decoding
# blind decoding
audiowmark cmp
$
{
AWM_FILE
}
.wav
$PATTERN
$AWM_PARAMS
--test-key
$SEED
$TEST_CUT_ARGS
audiowmark cmp
$
OUT_FILE
$PATTERN
$AWM_PARAMS
--test-key
$SEED
$TEST_CUT_ARGS
# decoding with original
# decoding with original
# audiowmark cmp-delta "$i" t.wav $PATTERN $AWM_PARAMS --test-key $SEED
# audiowmark cmp-delta "$i" t.wav $PATTERN $AWM_PARAMS --test-key $SEED
done
done
...
...
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