very long duration hls (m3u8 playlist file) fail on ipad

1k Views Asked by At

i'm encoding a stream with mediastreamsegmenter (on osx) and everything works fine up until about 15-20 hours of video, after that the stream becomes unplayable. i'm keeping all the semgents for VOD purposes. i've tried playing it back in my own app (using AVPlayer) on an ipad as well as in safari on an ipad - both fail (tried different ipads): AVPlayer plays the first few frames then stops and safari says "operation could not be completed". the .m3u8 playlist seems fine, no issues there. i also created an mp4 file from the same stream (using ffmpeg), that file plays fine.

here's an example of the .m3u8 file:

#EXTM3U
#EXT-X-TARGETDURATION:1
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-PLAYLIST-TYPE:EVENT
#EXTINF:0.96763,    
segm_st0.ts
#EXTINF:0.96763,    
segm_st1.ts
#EXTINF:0.96763,    
segm_st2.ts
#EXTINF:0.96763,    
segm_st3.ts
#EXTINF:0.96763,    
segm_st4.ts

this is the command i'm using to create the HLS stream:

$ mediastreamsegmenter -p -t 1s -S 1 -B segm_st -i list.m3u8 -f ~/live/video 127.0.0.1:2200

I also tried playing it back in safari on mac OS X (Mavericks) - works fine. does anybody know any solutions/workarounds for this problem?

0

There are 0 best solutions below