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
912304b3
Commit
912304b3
authored
Dec 09, 2018
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable ffmpeg stdin access.
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
b7cf973c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ber-test.sh
src/ber-test.sh
+3
-3
No files found.
src/ber-test.sh
View file @
912304b3
...
@@ -26,7 +26,7 @@ do
...
@@ -26,7 +26,7 @@ do
fi
fi
lame
-b
$2
t.wav t.mp3
--quiet
lame
-b
$2
t.wav t.mp3
--quiet
rm
t.wav
rm
t.wav
ffmpeg
-i
t.mp3 t.wav
-v
quiet
ffmpeg
-i
t.mp3 t.wav
-v
quiet
-nostdin
# some (low) mpeg quality settings use a lower sample rate
# some (low) mpeg quality settings use a lower sample rate
if
[
"x
$(
soxi
-r
t.wav
)
"
!=
"x44100"
]
;
then
if
[
"x
$(
soxi
-r
t.wav
)
"
!=
"x44100"
]
;
then
...
@@ -41,12 +41,12 @@ do
...
@@ -41,12 +41,12 @@ do
# first mp3 step (fixed bitrate)
# first mp3 step (fixed bitrate)
lame
-b
128 t.wav t.mp3
--quiet
lame
-b
128 t.wav t.mp3
--quiet
rm
t.wav
rm
t.wav
ffmpeg
-i
t.mp3 t.wav
-v
quiet
ffmpeg
-i
t.mp3 t.wav
-v
quiet
-nostdin
# second mp3 step
# second mp3 step
lame
-b
$2
t.wav t.mp3
--quiet
lame
-b
$2
t.wav t.mp3
--quiet
rm
t.wav
rm
t.wav
ffmpeg
-i
t.mp3 t.wav
-v
quiet
ffmpeg
-i
t.mp3 t.wav
-v
quiet
-nostdin
# some (low) mpeg quality settings use a lower sample rate
# some (low) mpeg quality settings use a lower sample rate
if
[
"x
$(
soxi
-r
t.wav
)
"
!=
"x44100"
]
;
then
if
[
"x
$(
soxi
-r
t.wav
)
"
!=
"x44100"
]
;
then
...
...
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