Tuesday, June 15, 2010

flv streaming

Apache is not good at video stream. The www server for video streaming is lighttpd. It works with php and mysql too.

After you installed lighttpd, put the following line in the conf file

=============
server.modules = (
"mod_access",
"mod_alias",
"mod_accesslog",
"mod_compress",
"mod_fastcgi",
"mod_rewrite",
"mod_auth",
"mod_flv_streaming",
"mod_expire",
"mod_secdownload"
)

flv-streaming.extensions = ( ".flv" )

fastcgi.server = ( ".php" => ((
"bin-path" = "/usr/bin/php-cgi",
"socket" = "/tmp/php.socket"
)))
============

You will need php-cgi and other software.

===========
sudo apt-get install php-cig ffmepg
===========

A webpage is needed to display the player. You can use the some html code into it, which can be found http://www.topfstedt.de/weblog/?page_id=208

In the player has to be at the server side. It's your own choice for the player. I am using FLVScrubber.swf. Later, you can make your own player. You need put the play in the same directory as the html.

No comments:

Post a Comment