running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
|- 360p_001.ts
|- 360p_002.ts
|- 480p.m3u8
|- 480p_001.ts
|- 480p_002.ts
|- 720p.m3u8
|- 720p_001.ts
|- 720p_002.ts
|- 1080p.m3u8
|- 1080p_001.ts
|- 1080p_002.ts
origin: http://docs.peer5.com/guides/production-ready-hls-vod/
It works fine on my server CentOS 7. I have 16 Core 16GB RAM but it has all the RAM and CPU. And the one problem I encountered is that I have a 1080p mp4 video file of about 700MB. After the encoder has finished, the total size of 1080p files is up to 1.2GB.
Another problem is that it has too many files in a 40 minute video. It up to thousands of files, they are fragmented and reduce the read speed of the hard drive!