I am using python wrapper command of ffmepeg. I followed the tutorial from here for a "Production ready HLS" : https://docs.peer5.com/guides/production-ready-hls-v