complete version 1.1 using ffmpeg library; enabling m3u8 writing