ffmpeg encoding for hls streaming