clappr / clappr-level-selector-plugin

Clappr Level Selector Plugin
MIT License
76 stars 56 forks source link

Generating the playlist.m3u8 #62

Open Syedwaheed opened 6 years ago

Syedwaheed commented 6 years ago

I m having problem with generating the playlist.m3u8 with my static videos and then use this link with adaptive bitrate to select the proper video according to bitrate. i have seen tutorial for wowza streaming engine (trial version) but it different format for live application. I wanted to use playlist for my static video. any help to generate the static playlist for my static videos. Thanks for you reply.

leandromoreira commented 6 years ago

You can use FFMpeg.

ffmpeg -re -pix_fmt  -i "<MYFILE>" -c:v libx264 \
-x264opts keyint=30:min-keyint=30:scenecut=-1 -pix_fmt yuv420p \
-preset superfast -profile:v baseline -level 3.0 -tune zerolatency -r 15 \
-s 360x220 -b:v 400k -bufsize 2 -hls_start_number_source epoch \
-f hls stream.m3u8

http-server -a :: -p 8081 --cors -c-1