I was looking forward for this feature for last 3 months! And at last, it is there! Now, nginx works on our streaming servers perfectly and flv streaming will not be Lighttpd’s unique feature anymore. This post is about how to use new Nginx module http_flv_module introduced in 0.4.7 (but there was a bug in its implementation, that can be fixed with my patch) and made completely perfect in 0.4.8.
First of all, to use new module, you should (re)complile nginx with –with-http_flv_module option:
# ./configure --with-http_flv_module ...SOME-OTHER-OPTS...
Next your action should be activation of flv streaming module for your flv files in nginx.conf:
GeSHi Error: GeSHi could not find the language nginx (using path /home/hosting/kovyrin/kovyrin.net/releases/20131028184943/wp-content/plugins/codecolorer/lib/geshi/) (code 2)
This option will instruct nginx to add special “header” information to data stream if user asked for some flv file and passed parameter “?start=XXX”, which means “give me that flv file from byte XXX to the end of file” (this is the idea of flv streaming).
Last your action, if it was not done before, should be conversion of your video files to FLV format and adding meta info to your created flv files. You can read how to do it in my previous post.
As always, I want to ask you, if you like this post, support it on Digg.com