Add embeded Flash video to your homepage

# download and extract Flowplayer
#wget -P /tmp
wget -P /tmp
unzip /tmp/flowplayer*.zip -d /tmp
# install
mkdir -p /var/www/video/player/
cp /tmp/flowplayer/*.swf /var/www/video/player/
cp /tmp/flowplayer/example/flowplayer-3.0.0.min.js /var/www/video/player/
# copy your videos to /var/www/video/
# add source to page
<script src="/video/player/flowplayer-3.0.3.min.js"></script>
<a href="/video/VIDEO.flv" style="display:block;width:640px;height:360px" id="player"></a>
<script language="JavaScript">flowplayer("player", "/video/player/flowplayer-3.0.3.swf");</script>
# Convert video to flv
sudo apt-get install -y ffmpeg
ffmpeg -i VIDEO_IN.avi -b 1024k -ar 22050 VIDEO_OUT.flv
ffmpeg -i VIDEO_IN.flv -s 960x540 -b 1500k -deinterlace -acodec copy VIDEO_OUT.flv
ffmpeg -i VTS_01_1.VOB -b 1024K -deinterlace -vcodec libx264 -vpre slow -acodec libmp3lame -ac 2 -ab 128000 -ar 44100 -s 960x576  VIDEO_OUT.flv