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
ca0016d6
Commit
ca0016d6
authored
Jul 16, 2020
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add --help-hls for hls commands.
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
e58c006b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
audiowmark.cc
src/audiowmark.cc
+29
-0
No files found.
src/audiowmark.cc
View file @
ca0016d6
...
...
@@ -69,6 +69,30 @@ print_usage()
printf
(
"
\n
"
);
printf
(
"The options to set the raw stream parameters (such as --raw-rate
\n
"
);
printf
(
"or --raw-channels) are documented in the README file.
\n
"
);
printf
(
"
\n
"
);
printf
(
"HLS command help can be displayed using --help-hls
\n
"
);
}
void
print_usage_hls
()
{
printf
(
"usage: audiowmark <command> [ <args>... ]
\n
"
);
printf
(
"
\n
"
);
printf
(
"Commands:
\n
"
);
printf
(
" * prepare HLS segments for streaming:
\n
"
);
printf
(
" audiowmark hls-prepare <input_dir> <output_dir> <playlist_name> <master_wav>
\n
"
);
printf
(
"
\n
"
);
printf
(
" * watermark one HLS segment:
\n
"
);
printf
(
" audiowmark hls-add <input_ts> <output_ts> <message_hex>
\n
"
);
printf
(
"
\n
"
);
printf
(
"Global options:
\n
"
);
printf
(
" -q, --quiet disable information messages
\n
"
);
printf
(
" --bit-rate set AAC bitrate
\n
"
);
printf
(
"
\n
"
);
printf
(
"Watermarking options:
\n
"
);
printf
(
" --strength <s> set watermark strength [%.6g]
\n
"
,
Params
::
water_delta
*
1000
);
printf
(
" --short <bits> enable short payload mode
\n
"
);
printf
(
" --key <file> load watermarking key from file
\n
"
);
}
Format
...
...
@@ -565,6 +589,11 @@ main (int argc, char **argv)
print_usage
();
return
0
;
}
if
(
ap
.
parse_opt
(
"--help-hls"
))
{
print_usage_hls
();
return
0
;
}
if
(
ap
.
parse_opt
(
"--version"
)
||
ap
.
parse_opt
(
"-v"
))
{
printf
(
"audiowmark %s
\n
"
,
VERSION
);
...
...
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