XCache is an advanced flv/mp4 caching/streaming system. Filter GET /*.(flv|mp4) using libpcap+python, using mod_h264_streaming for mp4 streaming, and flvlib+fcgi for flv streaming.
Install flvlib: http://pypi.python.org/pypi/flvlib/
sudo apt-get install python-flup libpcap-dev lighttpd python-dev sudo make install
- Web view at:
http://localhost/cache
/etc/init.d/xcache start|stop|restart
controls the daemon.xcache-list
list the entries.xcache-clear
clears all entries.- receive
GET /host/path/to/video.mp4
and serve cached file or redirect tohttp://host/path/to/video.mp4