ant-media / Ant-Media-Server

Ant Media Server is a live streaming engine software that provides adaptive, ultra low latency streaming by using WebRTC technology with ~0.5 seconds latency. Ant Media Server is auto-scalable and it can run on-premise or on-cloud.
https://antmedia.io
Other
4.24k stars 622 forks source link

HLS m3u8 file contain some outrageous file segments #6652

Open lastpeony opened 1 week ago

lastpeony commented 1 week ago

Discussed in https://github.com/orgs/ant-media/discussions/6645

Originally posted by **lexy10** September 12, 2024 I am confused on what is going on, when streaming hls and uploading to s3 or on local server, after streaming for 10mins, the m3u8 #EXTINF: file contains some large number. Example below #EXTINF:2.800000, livestream_b2c9a158-0c91-4860-9cb0-ed248997689d_1080p2500kbps000000036.ts #EXTINF:1.433333, livestream_b2c9a158-0c91-4860-9cb0-ed248997689d_1080p2500kbps000000037.ts #EXTINF:1.333333, livestream_b2c9a158-0c91-4860-9cb0-ed248997689d_1080p2500kbps000000038.ts #EXTINF:2.766667, livestream_b2c9a158-0c91-4860-9cb0-ed248997689d_1080p2500kbps000000039.ts #EXTINF:1.400000, livestream_b2c9a158-0c91-4860-9cb0-ed248997689d_1080p2500kbps000000040.ts #EXTINF:2.433333, livestream_b2c9a158-0c91-4860-9cb0-ed248997689d_1080p2500kbps000000041.ts **#EXTINF:89483.400000,** livestream_b2c9a158-0c91-4860-9cb0-ed248997689d_1080p2500kbps000000042.ts #EXTINF:2.400000, the average is 2.4, but then we have #EXTINF:89483.400000, And it happens in like 3 places depending on how long the stream is, how can this be solved please? I am using adaptive rate too.

Environment: Docker AMS Version: 2.10.0 Enterprise Encoder: H.264 GOP: No idea Bitrates: 800hbps, 1000kbps, 1800kbps, 2000kbps, 2500kbps (I am using the Adaptive Streaming) Published from android - ios sdk