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
8d6e1581
Commit
8d6e1581
authored
Aug 03, 2020
by
Stefan Westerfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HLS: avoid one frame shift during encode, pts should do the trick
Signed-off-by:
Stefan Westerfeld
<
stefan@space.twc.de
>
parent
e46a1212
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
hls.cc
src/hls.cc
+4
-1
No files found.
src/hls.cc
View file @
8d6e1581
...
...
@@ -262,7 +262,10 @@ hls_add (const string& infile, const string& outfile, const string& bits)
out_stream
.
set_bit_rate
(
bit_rate
);
out_stream
.
set_channel_layout
(
channel_layout
);
const
size_t
shift
=
1024
;
/* ffmpeg aac encode adds one frame of latency - it would be possible to compensate for this
* by setting shift = 1024, but it can also be done by adjusting the presentation timestamp
*/
const
size_t
shift
=
0
;
const
size_t
cut_aac_frames
=
(
prev_ctx
+
shift
)
/
1024
;
const
size_t
delete_input_start
=
prev_size
-
prev_ctx
;
const
size_t
keep_aac_frames
=
size
/
1024
;
...
...
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