Hallo liebe Teammitglieder,
ich bin neu hier im Forum und benötige einmal euren Ratschlag:
Ich möchte auf meinem Raspberry Pi3 eine USB Kamera für hauseigene Videoüberwachung konfigurieren. Zum Einsatz kommt eine Standard USB Webcam der Fa. Generic. Jedoch habe ich das Problem, dass ich weder über VLC Netzwerkstream noch über den Browser (DNS oder IP-Adresse:8081) die Kamerabilder von einem anderem PC im Heimnetzwerk anschauen kann. Auf dem Remote PC habe ich bereits die Windows Firewall sowie Antivirensoftware temporär deaktiviert.
Den RP habe ich auch bereits mit Raspbian neu auf Werkszustand zurückgesetzt.
# Rename this distribution example file to motion.conf
#
# This config file was generated by motion 3.2.12+git20140228
############################################################
# Daemon
############################################################
# Start in daemon (background) mode and release terminal (default: off)
daemon on
# File to store the process ID, also called pid file. (default: not defined)
process_id_file /var/run/motion/motion.pid
############################################################
# Basic Setup Mode
############################################################
# Start in Setup-Mode, daemon disabled. (default: off)
setup_mode off
# Use a file to save logs messages, if not defined stderr and syslog is used. (default: not defined)
;logfile /tmp/motion.log
# Level of log messages [1..9] (EMR, ALR, CRT, ERR, WRN, NTC, INF, DBG, ALL). (default: 6 / NTC)
log_level 6
# Filter to log messages by type (COR, STR, ENC, NET, DBL, EVT, TRK, VID, ALL). (default: ALL)
log_type all
###########################################################
# Capture device options
############################################################
#
Videodevice to be used for capturing (default /dev/video0)
# for FreeBSD default is /dev/bktr0
videodevice /dev/video0
# v4l2_palette allows to choose preferable palette to be use by motion
# to capture from those supported by your videodevice. (default: 17)
# E.g. if your videodevice supports both V4L2_PIX_FMT_SBGGR8 and
# V4L2_PIX_FMT_MJPEG then motion will by default use V4L2_PIX_FMT_MJPEG.
# Setting v4l2_palette to 2 forces motion to use V4L2_PIX_FMT_SBGGR8
# instead.
#
# Values :
# V4L2_PIX_FMT_SN9C10X : 0 'S910'
# V4L2_PIX_FMT_SBGGR16 : 1 'BYR2'
# V4L2_PIX_FMT_SBGGR8 : 2 'BA81'
# V4L2_PIX_FMT_SPCA561 : 3 'S561'
# V4L2_PIX_FMT_SGBRG8 : 4 'GBRG'
# V4L2_PIX_FMT_SGRBG8 : 5 'GRBG'
# V4L2_PIX_FMT_PAC207 : 6 'P207'
# V4L2_PIX_FMT_PJPG : 7 'PJPG'
# V4L2_PIX_FMT_MJPEG : 8 'MJPEG'
V4L2_PIX_FMT_JPEG : 9 'JPEG'
# V4L2_PIX_FMT_RGB24 : 10 'RGB3'
# V4L2_PIX_FMT_SPCA501 : 11 'S501'
# V4L2_PIX_FMT_SPCA505 : 12 'S505'
# V4L2_PIX_FMT_SPCA508 : 13 'S508'
# V4L2_PIX_FMT_UYVY : 14 'UYVY'
# V4L2_PIX_FMT_YUYV : 15 'YUYV'
# V4L2_PIX_FMT_YUV422P : 16 '422P'
# V4L2_PIX_FMT_YUV420 : 17 'YU12'
#
v4l2_palette 17
# Tuner device to be used for capturing using tuner as source (default /dev/tuner0)
# This is ONLY used for FreeBSD. Leave it commented out for Linux
; tunerdevice /dev/tuner0
# The video input to be used (default: -1)
# Should normally be set to 0 or 1 for video/TV cards, and -1 for USB cameras
input -1
# The video norm to use (only for video capture and TV tuner cards)
# Values: 0 (PAL), 1 (NTSC), 2 (SECAM), 3 (PAL NC no colour). Default: 0 (PAL)
norm 0
# The frequency to set the tuner to (kHz) (only for TV tuner cards) (default: 0)
frequency 0
# Rotate image this number of degrees. The rotation affects all saved images as
# well as movies. Valid values: 0 (default = no rotation), 90, 180 and 270.
rotate 0
# Image width (pixels). Valid range: Camera dependent, default: 352
width 640
# Image height (pixels). Valid range: Camera dependent, default: 288
height 480
# Maximum number of frames to be captured per second.
# Valid range: 2-100. Default: 100 (almost no limit).
framerate 10
# Minimum time in seconds between capturing picture frames from the camera.
# Default: 0 = disabled - the capture rate is given by the camera framerate.
# This option is used when you want to capture images at a rate lower than 2 per second.
minimum_frame_time 0
# URL to use if you are using a network camera, size will be autodetected (incl http:// ftp:// mjpg:// rstp:// or file:///)
# Must be a URL that returns single jpeg pictures or a raw mjpeg stream. Default: Not defined
; netcam_url value
# Username and password for network camera (only if required). Default: not defined
# Syntax is user:password
; netcam_userpass value
# The setting for keep-alive of network socket, should improve performance on compatible net cameras.
# off: The historical implementation using HTTP/1.0, closing the socket after each http request.
# force: Use HTTP/1.0 requests with keep alive header to reuse the same connection.
# on: Use HTTP/1.1 requests that support keep alive as default.
# Default: off
netcam_keepalive off
# URL to use for a netcam proxy server, if required, e.g. "http://myproxy".
# If a port number other than 80 is needed, use "http://myproxy:1234".
# Default: not defined
; netcam_proxy value
# Set less strict jpeg checks for network cameras with a poor/buggy firmware.
# Default: off
netcam_tolerant_check off
# Let motion regulate the brightness of a video device (default: off).
# The auto_brightness feature uses the brightness option as its target value.
# If brightness is zero auto_brightness will adjust to average brightness value 128.
# Only recommended for cameras without auto brightness
auto_brightness off
# Set the initial brightness of a video device.
# If auto_brightness is enabled, this value defines the average brightness level
# which Motion will try and adjust to.
# Valid range 0-255, default 0 = disabled
brightness 0
# Set the contrast of a video device.
# Valid range 0-255, default 0 = disabled
contrast 0
# Set the saturation of a video device.
# Valid range 0-255, default 0 = disabled
saturation 0
usw..
Bei LSUSB wird mir die Kamera angezeigt:
pi@raspberrypi:~ $ lsusb
Bus 001 Device 006: ID 1908:2310 GEMBIRD
Bus 001 Device 005: ID 413c:3012 Dell Computer Corp. Optical Wheel Mouse
Bus 001 Device 004: ID 046a:0011 Cherry GmbH G83 (RS 6000) Keyboard
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@raspberrypi:~ $ ls /dev/video0
/dev/video0
Der Daemon wurde ebenfalls gestartet:
# set to 'yes' to enable the motion daemon
start_motion_daemon=yes
Service wurde auch gestartet:
pi@raspberrypi:~ $ sudo service motion status
● motion.service - LSB: Start Motion detection
Loaded: loaded (/etc/init.d/motion)
Active: active (running) since Sa 2017-03-18 14:50:59 UTC; 46min ago
Process: 521 ExecStart=/etc/init.d/motion start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/motion.service
└─655 /usr/bin/motion
Mär 18 14:51:00 raspberrypi motion[655]: [1] [NTC] [VID] v4l2_scan_controls: "Saturation", default 57343, current 75
Mär 18 14:51:00 raspberrypi motion[655]: [1] [NTC] [VID] v4l2_scan_controls: found control 0x00980903, "Hue", range -127,127
Mär 18 14:51:00 raspberrypi motion[655]: [1] [NTC] [VID] v4l2_scan_controls: "Hue", default -8193, current 0
Mär 18 14:51:00 raspberrypi motion[655]: [1] [NTC] [VID] v4l2_scan_controls: found control 0x00980910, "Gamma", range 1,8
Mär 18 14:51:00 raspberrypi motion[655]: [1] [NTC] [VID] v4l2_scan_controls: "Gamma", default 57343, current 4
Mär 18 14:51:00 raspberrypi motion[655]: [1] [NTC] [VID] vid_v4lx_start: Using V4L2
Mär 18 14:51:00 raspberrypi motion[655]: [1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items
Mär 18 14:51:01 raspberrypi motion[655]: [1] [NTC] [STR] http_bindsock: motion-stream testing : IPV4 addr: 0.0.0.0 port: 8081
Mär 18 14:51:01 raspberrypi motion[655]: [1] [NTC] [STR] http_bindsock: motion-stream Bound : IPV4 addr: 0.0.0.0 port: 8081
Mär 18 14:51:01 raspberrypi motion[655]: [1] [NTC] [ALL] motion_init: Started motion-stream server in port 8081 auth Disabled
Speicherort für Frames wurde auch angegeben:
pi@raspberrypi:~ $ cd /home/pi/monitor
pi@raspberrypi:~/monitor $
Ich hatte vorhin mal mit fswebcam ein Webcam Bild aufgenommen und speichern können. Sprich, die Kamera wird ja erkannt...Nur wieso kann ich von einem Remote PC nicht mit Browser zugreifen?
Hilfe o. Unterstützung wäre klasse.
Vielen Dank u Gruß
Michael