1

I am trying to create a server that streams HLS to client. I created .m3u8 file and for receive from client use Apache web server. Some times, changing the source of video takes more than usual time... I think that it refers to web server that responds to client with delay. Can anyone help me which web server is best to put m3u8 file in that and get client stream from that?

My m3u8 file is :

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:11
#EXT-X-MEDIA-SEQUENCE:11
#EXTINF:10.080000,
21.ts
#EXTINF:10.080000,
22.ts
#EXTINF:9.760000,
23.ts
#EXTINF:10.880000,
24.ts
#EXTINF:9.600000,
20.ts
  • It could also depend on the segment size. Depending on the implementation, the quality switch may only happen once the current segment is done playing. If your segments are really long, there can be a long delay depending on where in the segment you switched quality. – Matti Virkkunen Mar 2 '16 at 9:39
  • @MattiVirkkunen i add my m3u8 file to question, duration is 11 second and apple recommend to set it around 10 sec, so i think it not refer to size, whats your opinion? – ALiS Mar 2 '16 at 9:43
  • I don't understand what you mean by "i think it not refer to size". Does switching quality sometimes take longer than 10 seconds for you? – Matti Virkkunen Mar 2 '16 at 9:45
  • no it take maximum 5 or 6 seccond – ALiS Mar 2 '16 at 9:46
  • as you say if i set TARGETDURATION to lower value such as 2 second changing time is faster? – ALiS Mar 2 '16 at 9:47
-1

I'm working in a Live Streaming company in Singapore, and we use Nginx as the web server for HLS. Since Nginx is way better at processing static files. You never need to worry about the performance, nginx can utilize the 10G network card easily.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.