1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00
srs/trunk/src
Winlin a1901b5213 Change the hls_aof_ratio to 2.1. v5.0.200 (#3886)
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>
2023-11-19 21:53:51 +08:00
..
app Change the hls_aof_ratio to 2.1. v5.0.200 (#3886) 2023-11-19 21:53:51 +08:00
core Change the hls_aof_ratio to 2.1. v5.0.200 (#3886) 2023-11-19 21:53:51 +08:00
kernel Support set the ice-ufrag and ice-pwd for connectivity check. v5.0.191 (#3837) 2023-10-17 22:36:10 +08:00
main Refine docker detect mechenism. v5.0.190 (#3758) 2023-10-17 21:27:07 +08:00
protocol RTC: Fix FFmpeg opus audio noisy issue. v5.0.195 (#3845) 2023-10-25 11:58:35 +08:00
utest SRT: Fix the missing config mss. v5.0.188 (#3825) 2023-10-10 20:27:30 +08:00