ffmpeg -i [https://host/path/to/xxx.m3u8] [output.mp4]
ffmpeg -i [input.mp3] -c:a libmp3lame -b:a 128k -map 0:0 -f segment -segment_time 10 -segment_list [output.m3u8] -segment_format mpegts [%03d.ts]
ffmpeg -i [input.mp4] -f segment -segment_time 10 -segment_format mpegts -segment_list [output.m3u8] -c copy -bsf:v h264_mp4toannexb -map 0 [%04d.ts]
ffmpeg -i [input.mp4] -c:v libx264 -preset slow -crf 22 -c:a copy [output.mp4]