Hi,
ich versuche eine USB Webcam an den pi anzuschließen. fswebcam geht.
Nur motion macht irgendwie Probleme:
wenn ich motion so direkt in der shell ohne sudo und ohne daemon starte dann geht es, allerdings werden die Standardkonfigs geladen weil motion keine Rechte hat. Das ist der Output:
Code
pi@camserver ~/cam $ motion
[0] could not open configfile /etc/motion/motion.conf: Permission denied
[0] Not config file to process using default values
[0] Motion 3.2.12 Started
[0] ffmpeg LIBAVCODEC_BUILD 3482368 LIBAVFORMAT_BUILD 3478785
[1] Thread 1 started
[1] cap.driver: "uvcvideo"
[1] cap.card: "Live! Cam Sync HD VF0770"
[1] cap.bus_info: "usb-bcm2708_usb-1.2"
[1] cap.capabilities=0x84000001
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] Config palette index 8 (YU12) doesn't work.
[1] Supported palettes:
[1] 0: YUYV (YUV 4:2:2 (YUYV))
[1] 1: MJPG (MJPEG)
[1] Selected palette YUYV
[1] Test palette YUYV (352x288)
[1] Adjusting resolution from 352x288 to 320x240.
[1] Using palette YUYV (320x240) bytesperlines 640 sizeimage 153600 colorspace 00000008
[1] found control 0x00980900, "Brightness", range -64,64
[1] "Brightness", default -8193, current 0
[1] found control 0x00980901, "Contrast", range 0,50
[1] "Contrast", default 57343, current 0
[1] found control 0x00980902, "Saturation", range 0,100
[1] "Saturation", default 57343, current 55
[1] found control 0x00980903, "Hue", range -100,100
[1] "Hue", default -8193, current 0
[1] found control 0x00980910, "Gamma", range 100,300
[1] "Gamma", default 57343, current 100
[1] mmap information:
[1] frames=4
[1] 0 length=153600
[1] 1 length=153600
[1] 2 length=153600
[1] 3 length=153600
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
Alles anzeigen
Ich kann auf die Webcam von außen nicht im Browser zugreifen.. es speichert die Bilder ab.
wenn ich allerdings sudo motion mache dann kann ich im Browser die URL öffnen, da steht aber "unable to open video device"...
(und die LED an der Kamera leuchtet auch nicht)
Logs:
Code
pi@camserver ~/cam $ sudo motion
[0] Processing thread 0 - config file /etc/motion/motion.conf
[0] Motion 3.2.12 Started
[0] ffmpeg LIBAVCODEC_BUILD 3482368 LIBAVFORMAT_BUILD 3478785
[0] Thread 1 is from /etc/motion/motion.conf
[1] Thread 1 started
[1] libjpeg decompression failure on first frame - giving up!
[1] Could not fetch initial image from camera
[1] Motion continues using width and height from config file(s)
[1] Resizing pre_capture buffer to 1 items
[1] Started stream webcam server in port 8082
[1] Retrying until successful connection with camera
Alles anzeigen
Ist das ein Rechteproblem oder warum geht das nicht? Habe es auch mit einer anderen Kamera probiert.
Bei den Settings habe ich so ziemlich die defaults. Habe auch alle palletten durchprobiert.