Change the hls_aof_ratio to 2.1. v5.0.200 v6.0.101#3886
Merged
winlinvip merged 2 commits intoossrs:developfrom Nov 19, 2023
Merged
Change the hls_aof_ratio to 2.1. v5.0.200 v6.0.101#3886winlinvip merged 2 commits intoossrs:developfrom
winlinvip merged 2 commits intoossrs:developfrom
Conversation
duiniuluantanqin
approved these changes
Nov 19, 2023
winlinvip
added a commit
that referenced
this pull request
Nov 19, 2023
In pure audio mode, there are no keyframes. Therefore, we can only rely on the length of the slice to determine whether it should be output. `hls_aof_ratio` is the coefficient that, once reached, will generate a new slice. In scenarios with video, if the `hls_aof_ratio` is too small, for example 1.2, and the GOP (Group of Pictures) is 10 seconds, then a slice will definitely be generated at 12 seconds. At this point, if there are no keyframes, it will cause the next slice to start with a non-keyframe. A safer coefficient is twice the GOP (Group of Pictures). This way, it won't trigger incorrectly and prevent the individual transcoding of a ts segment file. --------- Co-authored-by: Haibo Chen <495810242@qq.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In pure audio mode, there are no keyframes. Therefore, we can only rely on the length of the slice to determine whether it should be output.
hls_aof_ratiois the coefficient that, once reached, will generate a new slice.In scenarios with video, if the
hls_aof_ratiois too small, for example 1.2, and the GOP (Group of Pictures) is 10 seconds, then a slice will definitely be generated at 12 seconds. At this point, if there are no keyframes, it will cause the next slice to start with a non-keyframe.A safer coefficient is twice the GOP (Group of Pictures). This way, it won't trigger incorrectly and prevent the individual transcoding of a ts segment file.
TRANS_BY_GPT4Co-authored-by: Haibo Chen 495810242@qq.com