User Tools

Site Tools


documentation:webcam

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
documentation:webcam [2015/12/05 12:00] – [Journaling auf der SD-Karte deaktivieren] ninedocumentation:webcam [2015/12/26 18:40] (current) – [Camera] nine
Line 49: Line 49:
 /dev/mmcblk0p2  /               ext4    defaults,data=writeback,noatime,nodiratime  0       1 /dev/mmcblk0p2  /               ext4    defaults,data=writeback,noatime,nodiratime  0       1
 </code> </code>
 +
 +===== WIFI =====
 +
 +<code>
 +pi@raspberrypi:~ $ cat /etc/network/interfaces
 +# interfaces(5) file used by ifup(8) and ifdown(8)
 +
 +# Please note that this file is written to be used with dhcpcd
 +# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
 +
 +# Include files from /etc/network/interfaces.d:
 +source-directory /etc/network/interfaces.d
 +
 +auto lo
 +iface lo inet loopback
 +
 +iface eth0 inet dhcp
 +
 +allow-hotplug wlan0
 +iface wlan0 inet dhcp
 +wireless-essid <YOUR-ESSID-HERE>
 +</code>
 +
 +
 +===== Camera =====
 +
 +<code>
 +sudo apt-get install vlc-nox
 +sudo rmmod bcm2835-v4l2
 +sudo modprobe bcm2835-v4l2
 +</code>
 +
 +show driver info:
 +<code>
 +pi@raspberrypi:~ $ v4l2-ctl --info
 +Driver Info (not using libv4l2):
 + Driver name   : bm2835 mmal
 + Card type     : mmal service 16.1
 + Bus info      : platform:bcm2835-v4l2
 + Driver version: 4.1.13
 + Capabilities  : 0x85200005
 + Video Capture
 + Video Overlay
 + Read/Write
 + Streaming
 + Extended Pix Format
 + Device Capabilities
 + Device Caps   : 0x05200005
 + Video Capture
 + Video Overlay
 + Read/Write
 + Streaming
 + Extended Pix Format
 +</code>
 +
 +configure v4l2 driver
 +
 +show driver options
 +
 +<code>
 +v4l2-ctl --list-ctrls
 +</code>
 +<code>
 +# set (maximum) frame-rate
 +v4l2-ctl -p 15
 +# set auto-exposure (for night-capture)
 +v4l2-ctl --set-ctrl=exposure_dynamic_framerate=1
 +</code>
 +
 +start stream
 +<code>
 +cvlc v4l2:///dev/video0 --v4l2-width 1920 --v4l2-height 1080 --v4l2-chroma h264 \
 +   --sout '#std{access=http,mux=ts,dst=0.0.0.0:12345}'
 +</code>
 +
 +anzeigen am client:
 +<code>
 +vlc http://XX.XX.XX.XX:12345
 +</code>
 +
 +
 +für "normalen" modus, zb für raspistill, v4l2 modul entfernen
 +<code>
 +sudo rmmod bcm2835-v4l2
 +</code>
 +
documentation/webcam.txt · Last modified: 2015/12/26 18:40 by nine