Encode your files to several bitrates for Adaptive Streaming.
Package your media file for use in used in any web server using mg tool.
Publish your content to any Web Server and Let Play!
First of all, you need a media file you want to stream on the web.
In order to stream the file you need to encode the file to several mp4 files with different bitrates and with key frames aligned.
If you do not know how to do it the simplest way is to useffmpeg.
For each bitrate you want ran the following command:
fmpeg -i"[your file path]" -vf "scale=w=1280:h=720" \-codec:v libx264 -profile:v high -level 31 -b:v750 \-r 25 -g 50 -sc_threshold 0 -x264opts ratetol=0.1 \-minrate750 -maxrate750 -bufsize750 \-b:a 96k -codec:a aac -profile:a aac_low -ar 44100 -ac 2 mg_750.mp4
In the above command line make sure you replace [your file path] with the path of the file with the content you want to stream.
The above example produces a 750kb file. You can repeat the process with each bitrate you think is appropriate.
You should modify any bold parameter with the most appropriate for you.
Package allows to repackage statically your MP4 files in orderto be used effectively streamed on the Internet.Packaging features:
The mg tool allows to statically package a set of mp4 files. Mp4 files should have the key frames aligned.
Once you haveobtained mg you can run it using this parameters:
./mg -k:adaptive\ -o:[output directory]\ -i:[first input file] -s:0 -e:0 -b:750\ -j:[second input file] -b:350\ -j:[third input file] -b:120\ -j:[nth input file] -b:[nth bitrate]
Deploy your content to any web server and then you can play it.
Test your content using
http://cdn.rawgit.com/mediagoom/Play/v0.0.3/index.html?src=<the url of the folder where the mg output is>