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
e24ea4cc
Commit
e24ea4cc
authored
Apr 03, 2020
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
videowmark: make ffmpeg less verbose
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
2d420d47
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
TODO
src/TODO
+1
-1
videowmark
src/videowmark
+5
-3
No files found.
src/TODO
View file @
e24ea4cc
...
...
@@ -4,7 +4,7 @@ possible improvements:
videowmark:
--key
--help
--verbose
stream issue
where?
quiet mode
opus length ffprobe -show_format phil.mkv
src/videowmark
View file @
e24ea4cc
#!/bin/bash
FFMPEG_VERBOSE
=
"-v warning"
# auto detect codec and bitrate from input stream, generate ffmpeg options for audio encoder
function
audio_encode_options
{
...
...
@@ -43,18 +45,18 @@ if [ "$1" == "add" ]; then
wm_wav
=
/dev/fd/4
# get audio as wav
ffmpeg
-y
-i
"
$2
"
-f
wav
"
$orig_wav
"
ffmpeg
$FFMPEG_VERBOSE
-y
-i
"
$2
"
-f
wav
"
$orig_wav
"
# watermark
audiowmark add
"
$orig_wav
"
"
$wm_wav
"
"
$4
"
# rejoin
ffmpeg
-y
-i
"
$2
"
-i
"
$wm_wav
"
-c
:v copy
$(
audio_encode_options
"
$2
"
)
-map
0:v:0
-map
1:a:0
"
$3
"
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
"
elif
[
"
$1
"
==
"get"
]
;
then
# create tmpfiles
create_temp_files 3
wav
=
/dev/fd/3
# get audio as wav
ffmpeg
-y
-i
"
$2
"
-f
wav
"
$wav
"
ffmpeg
$FFMPEG_VERBOSE
-y
-i
"
$2
"
-f
wav
"
$wav
"
# get watermark
audiowmark get
"
$wav
"
elif
[
"
$1
"
==
"probe"
]
;
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