Skip to content

Repository files navigation

HLS + FFMPEG

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

 

hls workflow image

Configure your client to ask for different video resolutions and/or file sizes depending on the users bandwidth

 

Useful links


Creating a master platlist

Video on demand playlist contruction

Adaptive Bit Rate streaming

ffmpeg

ffmpeg quick guide

video transmuxing

About

Generaror for hsl assets using ffmpeg. Also generates m3u8 master manifest files

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages