vlc webcam html5 stream

raw

index.html

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<html>
 <head>
  <title>cweiske webcam</title>
 </head>
 <body>
  <h1>Christians Webcam</h1>
  <video id="video" src="webcam.ogg" type="video/ogg; codecs=theora" autoplay="autoplay" width="368" height="208"></video>
 
  <h2>VLC</h2>
  <tt>$ cvlc v4l2:// :v4l2-vdev="/dev/video0" --sout '#transcode{vcodec=theo,vb=400,width=368,heigh=208,acodec=none}:http{mux=ogg,dst=:8082/webcam.ogg}' --no-sout-audio</tt>
 
  <h2>Apache</h2>
  <pre>
    ProxyPass /webcam.ogg http://127.0.0.1:8082/webcam.ogg
    ProxyPassReverse /webcam.ogg http://127.0.0.1:8082/webcam.ogg
  </pre>
 </body>
</html>
 
Christian Weiske Christian Weiske
owner

History