[FFmpeg-user] Question about creating .m3u8 HLS files
Muruganandh P.R.
flashguru25 at hotmail.com
Fri May 30 07:00:35 CEST 2014
Hi,
I am breaking my head for the past 1 month to get an answer
When i use this command...
ffmpeg -i fighter.mp4 -hls_time 10 stream.m3u8
It creates the .m3u8 and splits the files and creates various.ts file - Which is HLS 3
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:10,
stream0.ts
#EXTINF:5,
stream1.ts
#EXT-X-ENDLIST
All i want is the command to create HLS 4.
The difference between HLS 3 & HLS 4 are
1. The files are not spliced. A single .ts file is created
2. The .m3u8 is not duration based it's byte-range based
something like ....
#EXTM3U
#EXT-X-TARGETDURATION:11
#EXT-X-VERSION:4
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-PLAYLIST-TYPE:VOD
#EXTINF:9.9766,
#EXT-X-BYTERANGE:326744 at 0
main.ts
#EXTINF:9.9766,
#EXT-X-BYTERANGE:326368 at 326744
main.ts
#EXTINF:10.01,
#EXT-X-BYTERANGE:327120 at 653112
main.ts
#EXTINF:9.9433,
#EXT-X-BYTERANGE:326556 at 980232
Anybody help me out please........
Thanks
Anand
More information about the ffmpeg-user
mailing list