HLS - how to create a m3u8 manifest if I have ts files (Ubuntu)?
So I have found out I can create ts segments of a movie with this ffmpeg command:

    ffmpeg -i foo.mp4 -codec copy -vbsf h264_mp4toannexb -map 0 -f segment -segment_list out.list -segment_time 10 out%03d.ts

But now I don't know how to create a m3u8 manifest file from ts files. Is there some open source library or command in Ubuntu that can do this for me?

If not, how difficult is it to create the m3u8 file in Python or some other language?
HLS - how to create a m3u8 manifest if I have ts files (Ubuntu)?
===

So I have found out I can create ts segments of a movie with this ffmpeg command:

    ffmpeg -i foo.mp4 -codec copy -vbsf h264_mp4toannexb -map 0 -f segment -segment_list out.list -segment_time 10 out%03d.ts

But now I don't know how to create a m3u8 manifest file from ts files. Is there some open source library or command in Ubuntu that can do this for me?

If not, how difficult is it to create the m3u8 file in Python or some other language?