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
0baeb052
Commit
0baeb052
authored
Apr 04, 2020
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
videowmark: avoid displaying codec in quiet mode
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
b04da0a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
videowmark
src/videowmark
+3
-2
No files found.
src/videowmark
View file @
0baeb052
...
...
@@ -72,11 +72,12 @@ eval set -- "$GETOPT_TEMP"
AUDIOWMARK_ARGS
=()
FFMPEG_VERBOSE
=
"-v error"
QUIET
=
""
export
AV_LOG_FORCE_NOCOLOR
=
1
# disable colored messages from ffmpeg
while
true
;
do
case
"
$1
"
in
-v
|
--verbose
)
FFMPEG_VERBOSE
=
"-v info"
;
shift
;;
-q
|
--quiet
)
AUDIOWMARK_ARGS+
=(
"-q"
)
;
shift
;;
-q
|
--quiet
)
AUDIOWMARK_ARGS+
=(
"-q"
)
;
QUIET
=
1
;
shift
;;
--key
)
AUDIOWMARK_ARGS+
=(
"--key"
"
$2
"
)
;
shift
2
;;
--strength
)
AUDIOWMARK_ARGS+
=(
"--strength"
"
$2
"
)
;
shift
2
;;
--help
)
show_help_and_exit
;;
...
...
@@ -94,7 +95,7 @@ if [ "$1" == "add" ]; then
# get audio as wav
ffmpeg
$FFMPEG_VERBOSE
-y
-i
"
$2
"
-f
wav
"
$orig_wav
"
||
die
"extracting audio from video failed (ffmpeg)"
# watermark
echo
>
&2
"Audio Codec:
$(
audio_encode_options
"
$2
"
)
"
[
-z
"
$QUIET
"
]
&&
echo
>
&2
"Audio Codec:
$(
audio_encode_options
"
$2
"
)
"
audiowmark
"
${
AUDIOWMARK_ARGS
[@]
}
"
add
"
$orig_wav
"
"
$wm_wav
"
"
$4
"
||
die
"watermark generation failed (audiowmark)"
# rejoin
ffmpeg
$FFMPEG_VERBOSE
-y
-i
"
$2
"
-i
"
$wm_wav
"
-c
:v copy
$(
audio_encode_options
"
$2
"
)
-map
0:v:0
-map
1:a:0
"
$3
"
||
\
...
...
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