[FFmpeg-user] Generating HLS chunks on demand
german.geraskin at gmail.com
Wed Jan 25 12:23:09 EET 2023
I have read your very first message and realized what you are going to
achieve as a final result.
So, my advice is the following:
1. Produce a full set of HLS segments for your source file and save
them in some folder that is not accessible to your users (archive).
2. When the user requests the stream, let say, from 100 second from
the beginning, your app copies a short set of segments starting from
the 25-th chunk to the shared folder and uploads the modified
You have an archive folder with all chunks. Each chunk is 4 second long.
The user requests the stream starting from the 100-th second that
lasts 20 second.
Your app copies chunks from 25-th to 29-th ones to the shared folder
and places the modified chunklist there.
--- chunklist.m3u8 ---
That is it.
More information about the ffmpeg-user