-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hls slice is incorrect #879
Comments
Fixed, issues caused by sleep units.
|
It will still cause slicing abnormalities. The slices will gradually decrease until each slice is reduced to 6-8K, making it impossible to watch.
|
How to replay it? |
The second type is OBS streaming, while the first type is a stream pushed by a hardware encoder.
|
A develop version around March 19, 2017 does not have any slicing issues. However, all subsequent versions have them. Please take a look at what changes have been made.
|
Please provide the steps to reproduce, including detailed configuration and operating steps.
|
It should not be a configuration issue. I think the problem might be with the streaming from the hardware encoder. It's difficult to reproduce this issue. Can you provide me with the address of your server? I will push the stream to your server. The configuration of the hardware encoder is as follows:
======srs.conf======
|
After recording an FLV using srs_rtmp_dump, you can use ingest to collect this FLV for SRS and check if there are any issues with the resulting HLS. If there are any problems, please send me the FLV file to my email.
|
Already sent to winlin at vip.126.com
|
Have you found the reason? Currently, the slice will continue to gradually decrease.
|
This problem is quite complicated, mainly reaching the following code interval.
|
The time for calculating audio packet in these two places is inconsistent, resulting in the duration increasing until it is dropped, which has nothing to do with whether to watch the FLV or not. The simple solution is to set int SrsHlsMuxer::flush_audio(SrsTsMessageCache* cache) int SrsHls::on_audio(SrsSharedPtrMessage* shared_audio, SrsFormat* format)
}
|
@johnwang777 Calculating HLS timestamps directly based on RTMP will result in audio distortion issues. Please refer to #547 (comment) for more information.
|
Fixed. |
srs3.0 Latest
When watching flv live stream, CPU usage is full, HLS slicing is abnormal, unable to watch
TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered: