Raspberry PI Webcam

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Raspberry PI Webcam

    Anzeige
    Heyho Leute :
    Haben an meinem PI versucht mit dieser Anleitung versucht meine Webcam am PI zu installieren, passend zu Ostern gibt es auch tolle bunte Bilder :D


    Naja spaß zur Seite, woran kann das liegen?

    Webcam : Microsoft VX-1000 und Speelink Reflect²

    Also : beide Cams testweise angesclossen, direkt an den PI, bei beiden kommt bei dmesg das gleich,
    dmesg :
    Spoiler anzeigen

    Quellcode

    1. ​[ 0.000000] Booting Linux on physical CPU 0x0
    2. [ 0.000000] Initializing cgroup subsys cpu
    3. [ 0.000000] Initializing cgroup subsys cpuacct
    4. [ 0.000000] Linux version 3.10.25+ (dc4@dc4-arm-01) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) #622 PREEMPT Fri Jan 3 18:41:00 GMT 2014
    5. [ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
    6. [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
    7. [ 0.000000] Machine: BCM2708
    8. [ 0.000000] cma: CMA: reserved 16 MiB at 1b000000
    9. [ 0.000000] Memory policy: ECC disabled, Data cache writeback
    10. [ 0.000000] On node 0 totalpages: 114688
    11. [ 0.000000] free_area_init_node: node 0, pgdat c05cfd6c, node_mem_map c067d000
    12. [ 0.000000] Normal zone: 896 pages used for memmap
    13. [ 0.000000] Normal zone: 0 pages reserved
    14. [ 0.000000] Normal zone: 114688 pages, LIFO batch:31
    15. [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
    16. [ 0.000000] pcpu-alloc: [0] 0
    17. [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 113792
    18. [ 0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0xd bcm2708.serial=0xcfa1654a smsc95xx.macaddr=B8:27:EB:A1:65:4A sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
    19. [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    20. [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    21. [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    22. [ 0.000000] Memory: 448MB = 448MB total
    23. [ 0.000000] Memory: 431652k/431652k available, 27100k reserved, 0K highmem
    24. [ 0.000000] Virtual kernel memory layout:
    25. [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    26. [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
    27. [ 0.000000] vmalloc : 0xdc800000 - 0xff000000 ( 552 MB)
    28. [ 0.000000] lowmem : 0xc0000000 - 0xdc000000 ( 448 MB)
    29. [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
    30. [ 0.000000] .text : 0xc0008000 - 0xc05727b4 (5546 kB)
    31. [ 0.000000] .init : 0xc0573000 - 0xc0597424 ( 146 kB)
    32. [ 0.000000] .data : 0xc0598000 - 0xc05d0870 ( 227 kB)
    33. [ 0.000000] .bss : 0xc05d0870 - 0xc067c3e0 ( 687 kB)
    34. [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    35. [ 0.000000] Preemptible hierarchical RCU implementation.
    36. [ 0.000000] NR_IRQS:330
    37. [ 0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
    38. [ 0.000000] Switching to timer-based delay loop
    39. [ 0.000000] Console: colour dummy device 80x30
    40. [ 0.000000] console [tty1] enabled
    41. [ 0.001181] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
    42. [ 0.001248] pid_max: default: 32768 minimum: 301
    43. [ 0.001723] Mount-cache hash table entries: 512
    44. [ 0.002529] Initializing cgroup subsys memory
    45. [ 0.002639] Initializing cgroup subsys devices
    46. [ 0.002681] Initializing cgroup subsys freezer
    47. [ 0.002716] Initializing cgroup subsys blkio
    48. [ 0.002875] CPU: Testing write buffer coherency: ok
    49. [ 0.003351] Setting up static identity map for 0xc0406048 - 0xc04060a4
    50. [ 0.005183] devtmpfs: initialized
    51. [ 0.019611] NET: Registered protocol family 16
    52. [ 0.025563] DMA: preallocated 4096 KiB pool for atomic coherent allocations
    53. [ 0.026685] bcm2708.uart_clock = 0
    54. [ 0.028413] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
    55. [ 0.028469] hw-breakpoint: maximum watchpoint size is 4 bytes.
    56. [ 0.028510] mailbox: Broadcom VideoCore Mailbox driver
    57. [ 0.028612] bcm2708_vcio: mailbox at f200b880
    58. [ 0.028719] bcm_power: Broadcom power driver
    59. [ 0.028761] bcm_power_open() -> 0
    60. [ 0.028790] bcm_power_request(0, 8)
    61. [ 0.529512] bcm_mailbox_read -> 00000080, 0
    62. [ 0.529557] bcm_power_request -> 0
    63. [ 0.529783] Serial: AMBA PL011 UART driver
    64. [ 0.529948] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3
    65. [ 0.872078] console [ttyAMA0] enabled
    66. [ 0.898038] bio: create slab <bio-0> at 0
    67. [ 0.903369] SCSI subsystem initialized
    68. [ 0.907346] usbcore: registered new interface driver usbfs
    69. [ 0.913065] usbcore: registered new interface driver hub
    70. [ 0.918640] usbcore: registered new device driver usb
    71. [ 0.925232] Switching to clocksource stc
    72. [ 0.929578] FS-Cache: Loaded
    73. [ 0.932752] CacheFiles: Loaded
    74. [ 0.948554] NET: Registered protocol family 2
    75. [ 0.953974] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    76. [ 0.961241] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    77. [ 0.967767] TCP: Hash tables configured (established 4096 bind 4096)
    78. [ 0.974241] TCP: reno registered
    79. [ 0.977501] UDP hash table entries: 256 (order: 0, 4096 bytes)
    80. [ 0.983409] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    81. [ 0.990148] NET: Registered protocol family 1
    82. [ 0.995080] RPC: Registered named UNIX socket transport module.
    83. [ 1.001144] RPC: Registered udp transport module.
    84. [ 1.005872] RPC: Registered tcp transport module.
    85. [ 1.010626] RPC: Registered tcp NFSv4.1 backchannel transport module.
    86. [ 1.017977] bcm2708_dma: DMA manager at f2007000
    87. [ 1.022795] bcm2708_gpio: bcm2708_gpio_probe c05a5e50
    88. [ 1.028251] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
    89. [ 1.037638] audit: initializing netlink socket (disabled)
    90. [ 1.043314] type=2000 audit(0.890:1): initialized
    91. [ 1.205169] VFS: Disk quotas dquot_6.5.2
    92. [ 1.209567] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    93. [ 1.218411] FS-Cache: Netfs 'nfs' registered for caching
    94. [ 1.225149] NFS: Registering the id_resolver key type
    95. [ 1.230455] Key type id_resolver registered
    96. [ 1.234668] Key type id_legacy registered
    97. [ 1.239489] msgmni has been set to 875
    98. [ 1.245370] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
    99. [ 1.253219] io scheduler noop registered
    100. [ 1.257181] io scheduler deadline registered (default)
    101. [ 1.262771] io scheduler cfq registered
    102. [ 1.266915] bcm2708_fb_debugfs_init: could not create debugfs entry
    103. [ 1.274498] BCM2708FB: allocated DMA memory 5b400000
    104. [ 1.279657] BCM2708FB: allocated DMA channel 0 @ f2007000
    105. [ 1.294199] Console: switching to colour frame buffer device 82x26
    106. [ 1.304394] uart-pl011 dev:f1: no DMA platform data
    107. [ 1.310841] kgdb: Registered I/O driver kgdboc.
    108. [ 1.317399] vc-cma: Videocore CMA driver
    109. [ 1.322753] vc-cma: vc_cma_base = 0x00000000
    110. [ 1.328765] vc-cma: vc_cma_size = 0x00000000 (0 MiB)
    111. [ 1.335527] vc-cma: vc_cma_initial = 0x00000000 (0 MiB)
    112. [ 1.351572] brd: module loaded
    113. [ 1.361214] loop: module loaded
    114. [ 1.365910] vchiq: vchiq_init_state: slot_zero = 0xdb000000, is_master = 0
    115. [ 1.375042] Loading iSCSI transport class v2.0-870.
    116. [ 1.382494] usbcore: registered new interface driver smsc95xx
    117. [ 1.390097] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
    118. [ 1.597440] Core Release: 2.80a
    119. [ 1.601944] Setting default values for core params
    120. [ 1.607999] Finished setting default values for core params
    121. [ 1.814908] Using Buffer DMA mode
    122. [ 1.819541] Periodic Transfer Interrupt Enhancement - disabled
    123. [ 1.826646] Multiprocessor Interrupt Enhancement - disabled
    124. [ 1.833499] OTG VER PARAM: 0, OTG VER FLAG: 0
    125. [ 1.839133] Dedicated Tx FIFOs mode
    126. [ 1.844454] dwc_otg: Microframe scheduler enabled
    127. [ 1.844696] dwc_otg bcm2708_usb: DWC OTG Controller
    128. [ 1.850989] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
    129. [ 1.859617] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
    130. [ 1.866410] Init: Port Power? op_state=1
    131. [ 1.871643] Init: Power Port (0)
    132. [ 1.876285] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    133. [ 1.884568] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    134. [ 1.893219] usb usb1: Product: DWC OTG Controller
    135. [ 1.899340] usb usb1: Manufacturer: Linux 3.10.25+ dwc_otg_hcd
    136. [ 1.906549] usb usb1: SerialNumber: bcm2708_usb
    137. [ 1.913229] hub 1-0:1.0: USB hub found
    138. [ 1.918371] hub 1-0:1.0: 1 port detected
    139. [ 1.924016] dwc_otg: FIQ enabled
    140. [ 1.924034] dwc_otg: NAK holdoff enabled
    141. [ 1.924045] dwc_otg: FIQ split fix enabled
    142. [ 1.924066] Module dwc_common_port init
    143. [ 1.924500] usbcore: registered new interface driver usb-storage
    144. [ 1.932310] mousedev: PS/2 mouse device common for all mice
    145. [ 1.939957] bcm2835-cpufreq: min=700000 max=700000 cur=700000
    146. [ 1.947154] bcm2835-cpufreq: switching to governor powersave
    147. [ 1.954214] bcm2835-cpufreq: switching to governor powersave
    148. [ 1.961179] cpuidle: using governor ladder
    149. [ 1.966487] cpuidle: using governor menu
    150. [ 1.971681] sdhci: Secure Digital Host Controller Interface driver
    151. [ 1.979109] sdhci: Copyright(c) Pierre Ossman
    152. [ 1.984783] sdhci: Enable low-latency mode
    153. [ 2.029264] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
    154. [ 2.039754] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
    155. [ 2.047004] sdhci-pltfm: SDHCI platform and OF driver helper
    156. [ 2.054149] ledtrig-cpu: registered to indicate activity on CPUs
    157. [ 2.063739] hidraw: raw HID events driver (C) Jiri Kosina
    158. [ 2.078039] usbcore: registered new interface driver usbhid
    159. [ 2.085128] usbhid: USB HID core driver
    160. [ 2.094963] TCP: cubic registered
    161. [ 2.101714] Initializing XFRM netlink socket
    162. [ 2.109431] NET: Registered protocol family 17
    163. [ 2.115409] Key type dns_resolver registered
    164. [ 2.124363] Indeed it is in host mode hprt0 = 00021501
    165. [ 2.131342] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
    166. [ 2.160038] registered taskstats version 1
    167. [ 2.169637] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
    168. [ 2.189631] Waiting for root device /dev/mmcblk0p2...
    169. [ 2.198750] mmc0: read SD Status register (SSR) after 2 attempts
    170. [ 2.229341] mmc0: new high speed SDHC card at address 0001
    171. [ 2.247998] mmcblk0: mmc0:0001 SD 7.38 GiB
    172. [ 2.255323] mmcblk0: p1 p2
    173. [ 2.359424] usb 1-1: new high-speed USB device number 2 using dwc_otg
    174. [ 2.367527] Indeed it is in host mode hprt0 = 00001101
    175. [ 2.589845] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
    176. [ 2.598122] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    177. [ 2.630229] hub 1-1:1.0: USB hub found
    178. [ 2.639284] hub 1-1:1.0: 3 ports detected
    179. [ 2.939501] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
    180. [ 3.060048] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
    181. [ 3.068429] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    182. [ 3.080309] smsc95xx v1.0.4
    183. [ 3.147882] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:a1:65:4a
    184. [ 3.239416] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
    185. [ 3.361572] usb 1-1.2: New USB device found, idVendor=7392, idProduct=7811
    186. [ 3.370076] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    187. [ 3.378962] usb 1-1.2: Product: 802.11n WLAN Adapter
    188. [ 3.385494] usb 1-1.2: Manufacturer: Realtek
    189. [ 3.391278] usb 1-1.2: SerialNumber: 00e04c000001
    190. [ 3.479427] usb 1-1.3: new full-speed USB device number 5 using dwc_otg
    191. [ 3.605410] usb 1-1.3: New USB device found, idVendor=045e, idProduct=00f7
    192. [ 3.613894] usb 1-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    193. [ 3.622732] usb 1-1.3: Product: USB camera
    194. [ 19.149331] EXT4-fs (mmcblk0p2): recovery complete
    195. [ 19.162571] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    196. [ 19.173734] VFS: Mounted root (ext4 filesystem) on device 179:2.
    197. [ 19.183668] devtmpfs: mounted
    198. [ 19.188658] Freeing unused kernel memory: 144K (c0573000 - c0597000)
    199. [ 20.736491] udevd[156]: starting version 175
    200. [ 22.193423] media: Linux media interface: v0.10
    201. [ 22.312411] Linux video capture interface: v2.00
    202. [ 22.346155] gspca_main: v2.14.0 registered
    203. [ 22.406965] gspca_main: sonixj-2.14.0 probing 045e:00f7
    204. [ 22.541572] input: sonixj as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/input/input0
    205. [ 22.791452] usbcore: registered new interface driver sonixj
    206. [ 22.937295] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory
    207. [ 23.848621] usbcore: registered new interface driver rtl8192cu
    208. [ 23.959698] usbcore: registered new interface driver snd-usb-audio
    209. [ 31.820427] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    210. [ 32.325640] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
    211. [ 40.751530] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
    212. [ 50.211977] bcm2835-cpufreq: switching to governor ondemand
    213. [ 50.212007] bcm2835-cpufreq: switching to governor ondemand
    214. [ 53.009067] Adding 102396k swap on /var/swap. Priority:-1 extents:1 across:102396k SSFS
    Alles anzeigen


    fswebcam -r 320x280 -d /dev/video0 -v /tmp/test.jpg

    Spoiler anzeigen

    Quellcode

    1. fswebcam -r 320x280 -d /dev/video0 -v /tmp/test.jpg
    2. --- Opening /dev/video0...
    3. Trying source module v4l2...
    4. /dev/video0 opened.
    5. src_v4l2_get_capability,87: /dev/video0 information:
    6. src_v4l2_get_capability,88: cap.driver: "sonixj"
    7. src_v4l2_get_capability,89: cap.card: "USB camera"
    8. src_v4l2_get_capability,90: cap.bus_info: "usb-bcm2708_usb-1.3"
    9. src_v4l2_get_capability,91: cap.capabilities=0x85000001
    10. src_v4l2_get_capability,92: - VIDEO_CAPTURE
    11. src_v4l2_get_capability,101: - READWRITE
    12. src_v4l2_get_capability,103: - STREAMING
    13. No input was specified, using the first.
    14. src_v4l2_set_input,181: /dev/video0: Input 0 information:
    15. src_v4l2_set_input,182: name = "sonixj"
    16. src_v4l2_set_input,183: type = 00000002
    17. src_v4l2_set_input,185: - CAMERA
    18. src_v4l2_set_input,186: audioset = 00000000
    19. src_v4l2_set_input,187: tuner = 00000000
    20. src_v4l2_set_input,188: status = 00000000
    21. src_v4l2_set_pix_format,541: Device offers the following V4L2 pixel formats:
    22. src_v4l2_set_pix_format,554: 0: [0x4745504A] 'JPEG' (JPEG)
    23. Using palette JPEG
    24. Adjusting resolution from 320x280 to 320x240.
    25. src_v4l2_set_mmap,693: mmap information:
    26. src_v4l2_set_mmap,694: frames=4
    27. src_v4l2_set_mmap,741: 0 length=32768
    28. src_v4l2_set_mmap,741: 1 length=32768
    29. src_v4l2_set_mmap,741: 2 length=32768
    30. src_v4l2_set_mmap,741: 3 length=32768
    31. --- Capturing frame...
    32. Corrupt JPEG data: 7739 extraneous bytes before marker 0xd9
    33. Captured frame in 0.00 seconds.
    34. --- Processing captured image...
    35. Writing JPEG image to '/tmp/test.jpg'.
    Alles anzeigen


    Und bei beiden kommen bunte Osterbilder wie oben raus ;)

    Was kann man da machen?

    Btw, beide Webcams gehen am PC/ Win8 und die VX1000 ging am PI auch bevor ich ihn neu machen musste, aber leider hab ich KP wieso diesmal der PI nicht will :/
    Soo Signatur ist da !

    Aktuelles Gedönz... GTA Online 8o
  • vel72027 schrieb:

    Spontan weiß ich nicht woran das liegen könnte, aber es gibt speziell für den Raspberry Pi eine Webcam.



    Das is meine Notlösung, aber ich wollt eig erstmal eine der hier rumliegenden probieren :/

    Mittlerweile weiß ich das der FEhler ca. hier "Corrupt JPEG data: 6901 extraneous bytes before marker 0xd9" liegen sollte, aber KP was man da wirklich machen kann.
    Ist mir als Informatiker sogar nen Rätsel ^^
    Soo Signatur ist da !

    Aktuelles Gedönz... GTA Online 8o
  • Anzeige
    Ok ich versuche es und gebe dann mal Rückmeldung :)

    Im nNotfall, falls garnichts geht, wird direkt die RPI Cam geholt :/


    EDIT : Ok geht auch damit nicht, dann muss ich mir wohl doch die RaspiCam kaufen :(
    Soo Signatur ist da !

    Aktuelles Gedönz... GTA Online 8o

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von N3x0r ()

  • Quellcode

    1. --- Capturing frame...
    2. Corrupt JPEG data: 7739 extraneous bytes before marker 0xd9
    3. Captured frame in 0.00 seconds.
    4. --- Processing captured image...
    5. Writing JPEG image to '/tmp/test.jpg'.

    Er versucht das Bild als JPEG einzulesen und abzuspeichern, die Kamera liefert aber evtl. gar kein JPEG? Du solltest versuchen das Format zu ändern, hab selber nur die RasPi-Cam und dementsprechend bekomme ich da direkt h264 raus wenn ich da was capture, aber deine WebCam sollte in einen Unkomprimierten Modus geschaltet werden, zB. YUV oder RGB dann sollte da auch ein Bild rauskommen...
    ——YouTube————————————————————————————————————————————
    — Endlos-Projekte: Minecraft (SinglePlayer), Craft The World, Banished, Besiege, Sims4
    — ..Abgeschlossen: Leisure Suit Larry 6+7, Dishonored, Surface 2+3, Mirrors Edge, uvm
    — . Kurz- Projekte: The Tower, Fighting Is Magic, Euro Truck Simulator 2, uvm
    — ......Retro-Ecke: Day Of The Tentacle, Flight Of The Amazon Queen, NFS: HP2, uvm
    ————————————————————————————————————————————TbMzockt.de—