This script uses ffmpeg to generate HLS assets for an adaptive bit rate streaming architecture.
It also generates a master manifest m3u8 file which is linked to to start playback
We generate the following resolutions are their respective bit rates
| resolution | bitrate |
|---|---|
| 480X320 | 1100k |
| 640X432 | 3000k |
| 960X640 | 4000k |
| 1024X768 | 5000k |
| 1920X1080 | 6000k |
To run the script , type node index.js {fileurl} {segment_duration}
This will result in the following type of segmentation
Configure your client to ask for different video resolutions and/or file sizes depending on the users bandwidth
