How to create byte-range m3u8 playlist for HLS?

前端 未结 4 806
旧巷少年郎
旧巷少年郎 2021-02-01 08:49

Apple gives an example of support for byte-range segments in m3u8 files for HLS

#EXTM3U
#EXT-X-TARGETDURATION:11
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-VERSION:4
#EXTINF         


        
4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-01 09:30

    You can use a standard segmenter such as Apple's mediafilesegmenter, check the lengths of the files, and then concatenate (with the cat program) them into a single file. From the file sizes you have all the information needed to specify the byte ranges in a playlist file.

    Not as nice as just downloading a tool from the net, but it's not a very complicated algorithm.

提交回复
热议问题