Actually, I got something running on Windows with wampserver2.0 (Apache2.2) and vlc1.0.3
Here is the bat script :
PATH=D:\tmp\vlc\vlc-1.0.3-win32\vlc-1.0.3;%PATH%
cd D:\tmp\vlc\vlc-1.0.3-win32\vlc-1.0.3
vlc -vv --ignore-config -I rc --rc-host 127.0.0.1:1234 --vout dummy --snapshot-path F:\\MyProjects\\Windows\\VLC\\web\\webcam.png --sout "#duplicate{dst=display,dst={transcode{vcodec=FLV1,acodec=mp3,channels=2,samplerate=44100,width=320,height=240,fps=1,sfilter=mosaic:marq{marquee='%Y%m%d-%H%M%S',position=8}}:std{access=http,mux=ffmpeg{mux=flv},dst=0.0.0.0:8080/webcam.flv}}}" dshow:// :dshow-vdev="Philips ToUcam Pro Camera; Video"
and the web page (written in php) named
vlc_webcam.php
<html>
<head>
</head>
<title>Webcam</title>
<body>
<?php
$fp = fsockopen("127.0.0.1", 1234, $errno, $errstr, 8 );
if (!$fp) {
echo "<h1>No Webcam is available</h1>";
echo "error : $errstr ($errno)<br/>";
} else {
$out = "snapshot\r\n";
fwrite($fp, $out);
echo fgets($fp, 128);
fclose($fp);
}
?>
<h1>Webcam (Press F5 or click on image to refresh)</h1>
<a href="vlc_webcam.php"><img src="webcam.png" alt="Webcam"/></a>
</body>
You just need to configure Wampserver to match urls to local paths.
With this config, webcam is both as a video file and a page with a recent still image (F5 or click on video to refresh)
For two webcams, you can use two vlc instances. The only problem may be the 80 port that cannot be addressed by two different vlc servers.If so, you can for instance just stream locally (using udp) and then a third vlc instance that uses vlm and takes as input the outputs of the first two instances.
Erwan10