Stupid method for streaming your webcam from a website.
Use webcam , dnotify and lftp.
This is the .webcamrc conf file:
[grab]
device = /dev/video0
text = ""
quality = 200
delay = 2
width = 320
height = 240
wait = 0
rotate = 0
top = 0
left = 0
trigger = 0
once = 0
[ftp]
host = ftp.host.net
user = xxxxxx
pass = xxxxxx
dir = /home/dodiesis/.webcam_live/
file = webcam_tmp.jpeg
debug = 1
auto = 0
local = 1
ssh = 0
And this is the lftp script file:
open user:passwd@ftp.host.net
cd /
put /home/dodiesis/.webcam_live/webcam_tmp.jpeg
mv webcam_tmp.jpeg webcam.jpeg
And finally the dnotiy command:
dnotify -C .webcam_live/ -e /usr/bin/lftp -f \\\\
/home/dodiesis/.webcam_live/webcam_ftp_upload.script
Wq!