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
a99e5779
Commit
a99e5779
authored
Jul 21, 2020
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HLS: be less verbose in hls-add
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
a24701d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
7 deletions
+2
-7
hls.cc
src/hls.cc
+1
-6
hlsoutputstream.cc
src/hlsoutputstream.cc
+1
-1
No files found.
src/hls.cc
View file @
a99e5779
...
...
@@ -208,12 +208,7 @@ hls_add (const string& infile, const string& outfile, const string& bits)
return
1
;
}
for
(
auto
entry
:
reader
.
entries
())
info
(
"%s %zd
\n
"
,
entry
.
filename
.
c_str
(),
entry
.
data
.
size
());
map
<
string
,
string
>
vars
=
reader
.
parse_vars
(
"vars"
);
for
(
auto
kv
:
vars
)
info
(
"|| %s=%s
\n
"
,
kv
.
first
.
c_str
(),
kv
.
second
.
c_str
());
size_t
start_pos
=
atoi
(
vars
[
"start_pos"
].
c_str
());
size_t
prev_size
=
atoi
(
vars
[
"prev_size"
].
c_str
());
...
...
@@ -229,7 +224,7 @@ hls_add (const string& infile, const string& outfile, const string& bits)
HLSOutputStream
out_stream
(
in_stream
.
n_channels
(),
in_stream
.
sample_rate
(),
in_stream
.
bit_depth
());
out_stream
.
set_bit_rate
(
bit_rate
);
info
(
"n_frames = %zd
\n
"
,
in_stream
.
n_frames
()
-
prev_size
-
next_size
);
const
size_t
shift
=
1024
;
const
size_t
cut_aac_frames
=
(
prev_ctx
+
shift
)
/
1024
;
const
size_t
delete_input_start
=
prev_size
-
prev_ctx
;
...
...
src/hlsoutputstream.cc
View file @
a99e5779
...
...
@@ -54,6 +54,7 @@ HLSOutputStream::HLSOutputStream (int n_channels, int sample_rate, int bit_depth
m_n_channels
(
n_channels
),
m_audio_buffer
(
n_channels
)
{
av_log_set_level
(
AV_LOG_ERROR
);
}
void
...
...
@@ -390,7 +391,6 @@ HLSOutputStream::open (const string& out_filename, size_t cut_aac_frames, size_t
error
(
"Error occurred when writing output file: %s
\n
"
,
av_err2str
(
ret
));
return
Error
(
"avformat_write_header failed
\n
"
);
}
av_dump_format
(
m_fmt_ctx
,
0
,
filename
.
c_str
(),
1
);
m_delete_input_start
=
delete_input_start
;
m_cut_aac_frames
=
cut_aac_frames
;
...
...
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