Änderungen

Zur Navigation springen Zur Suche springen
916 Bytes hinzugefügt ,  20:29, 18. Jul. 2023
K
keine Bearbeitungszusammenfassung
Zeile 13: Zeile 13:  
* 5)  opkg install mjpg-streamer-input-uvc
 
* 5)  opkg install mjpg-streamer-input-uvc
 
* 6)  opkg install mjpg-streamer-output-http
 
* 6)  opkg install mjpg-streamer-output-http
 +
*
 
* 7)  /www/webcam/index.html    erstellen<sup>:</sup>
 
* 7)  /www/webcam/index.html    erstellen<sup>:</sup>
 
<syntaxhighlight lang="arrow">
 
<syntaxhighlight lang="arrow">
Zeile 26: Zeile 27:  
</html>
 
</html>
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
Anstelle 10.63.115.1  muss natürlich die ip-Adresse des Routers eingetragen werden!
    
===Konfiguration anpassen===
 
===Konfiguration anpassen===
 +
Die config-datei befindet sich in  /etc/config/mjpg-streamer<syntaxhighlight lang="arrow">
 +
onfig mjpg-streamer 'core'
 +
option enabled '1'
 +
option input 'uvc'
 +
option output 'http'
 +
option device '/dev/video0'
 +
option resolution '1024x768'
 +
option yuv '0'
 +
option quality '80'
 +
option fps '5'
 +
option led 'auto'
 +
option www '/www/webcam'
 +
option port '8080'
 +
#option listen_ip '192.168.1.1'
 +
#option username 'openwrt'
 +
#option password 'openwrt'
 +
</syntaxhighlight>Der streamer wird gestartet mit
 +
 +
/etc/init.d/mjpg-streamer start
 +
 +
Danach ist der stream im Browser zusehen:
 +
 +
[http://10.63.nnn.1/webcam http://10.63.115.1/webcam]
 +
 +
Auch hier muß natürlich die Adresse des Routers anstelle von 10.63.115.1 eingetragen werden.
 +
 +
Weitere Informationen gibt es unter:
 +
 +
https://openwrt.org/docs/guide-user/hardware/video/webcam
 +
 +
 +
 +
 +
 
<blockquote>
 
<blockquote>
  
98

Bearbeitungen

Navigationsmenü