Problem with webcam and motion

Problem with webcam and motion

Postby hirkkak » Tue Jul 02, 2024 10:05 pm

I´ve and usb camera (uvc) and i can´t make it work.

Motion show:

Unable to open video device.


output from: # /usr/bin/usb-devices
Code: Select all
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev=04.14
S:  Manufacturer=Linux 4.14.133 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=orion-ehci.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 16 Spd=480 MxCh= 0
D:  Ver= 2.10 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=4321 Rev=04.09
S:  Manufacturer=Ruision
S:  Product=UVC Camera
S:  SerialNumber=20200416
C:  #Ifs= 4 Cfg#= 1 Atr=c0 MxPwr=2mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=0e(video) Sub=01 Prot=00 Driver=(none)
I:  If#= 1 Alt= 0 #EPs= 0 Cls=0e(video) Sub=02 Prot=00 Driver=(none)
I:  If#= 2 Alt= 0 #EPs= 0 Cls=01(audio) Sub=01 Prot=00 Driver=snd-usb-audio
I:  If#= 3 Alt= 0 #EPs= 0 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio


output from: # lsusb -t
Code: Select all
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=orion-ehci/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Video, Driver=uvcvideo, 480M
    |__ Port 1: Dev 2, If 1, Class=Video, Driver=uvcvideo, 480M
    |__ Port 1: Dev 2, If 2, Class=Audio, Driver=snd-usb-audio, 480M
    |__ Port 1: Dev 2, If 3, Class=Audio, Driver=snd-usb-audio, 480M


I think is a missing driver, someone can help me? Thank you
hirkkak
Donator VIP
Donator VIP
 
Posts: 22
Joined: Sat Apr 13, 2024 6:01 am

Re: Problem with webcam and motion

Postby fvdw » Wed Jul 03, 2024 8:27 am

the uvc driver is included in the kernel maybe it needs the helper driver try this unplug camera in ssh terminal give these commands
Code: Select all
modprobe videobuf-core
modprobe videobuf-vmalloc

Then attach camera again

also post out of
Code: Select all
dmesg
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Problem with webcam and motion

Postby hirkkak » Fri Aug 09, 2024 5:23 am

Thank you fvdw for youvery much and sorry for late response.

I tried that but the problem still persist.
Unable to open video device.


dmesg:
Code: Select all
[1815775.940023] usb 1-1: new high-speed USB device number 7 using orion-ehci
[1815776.152320] usb 1-1: device descriptor read/all, error -71
[1815776.300047] usb 1-1: new high-speed USB device number 8 using orion-ehci
[1815776.900025] usb 1-1: device not accepting address 8, error -71
[1815776.906058] usb usb1-port1: attempt power cycle
[1815777.620035] usb 1-1: new high-speed USB device number 9 using orion-ehci
[1815778.070016] usb 1-1: device not accepting address 9, error -71
[1815778.220027] usb 1-1: new high-speed USB device number 10 using orion-ehci
[1815778.288058] usb 1-1: device descriptor read/all, error -71
[1815778.293741] usb usb1-port1: unable to enumerate USB device
[1815870.710050] usb 1-1: new high-speed USB device number 11 using orion-ehci
[1815870.922437] usb 1-1: device descriptor read/all, error -71
[1815871.070039] usb 1-1: new high-speed USB device number 12 using orion-ehci
[1815871.282318] usb 1-1: device descriptor read/all, error -71
[1815871.287992] usb usb1-port1: attempt power cycle
[1815872.000054] usb 1-1: new high-speed USB device number 13 using orion-ehci
[1815872.450040] usb 1-1: device not accepting address 13, error -71
[1815872.600055] usb 1-1: new high-speed USB device number 14 using orion-ehci
[1815873.050049] usb 1-1: device not accepting address 14, error -71
[1815873.056277] usb usb1-port1: unable to enumerate USB device
[1815876.320047] usb 1-1: new high-speed USB device number 15 using orion-ehci
[1815876.522309] usb 1-1: New USB device found, idVendor=12d1, idProduct=4321
[1815876.529163] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1815876.536458] usb 1-1: Product: UVC Camera
[1815876.540554] usb 1-1: Manufacturer: Ruision
[1815876.544808] usb 1-1: SerialNumber: 20200416
[1815876.553463] uvcvideo: Found UVC 1.10 device UVC Camera (12d1:4321)
[1815876.562612] input: UVC Camera: UVC Camera as /devices/platform/orion-ehci.0/usb1/1-1/1-1:1.0/input/input2
[1815881.289568] uvcvideo: Failed to query (GET_CUR) UVC control 11 on unit 2: -32 (exp. 1).
[1815881.298061] uvcvideo: Failed to query (GET_DEF) UVC control 12 on unit 2: -32 (exp. 4).
[2893457.592593] uvcvideo: Failed to query (129) UVC probe control : -71 (exp. 34).
[2893469.620450] uvcvideo: Failed to set UVC probe control : -71 (exp. 34).
[2893469.631943] uvcvideo: Failed to set UVC probe control : -71 (exp. 34).
[2893479.865569] usb 1-1: reset high-speed USB device number 15 using orion-ehci
[2893480.025762] usb 1-1: device descriptor read/64, error -71
[2893480.305557] usb 1-1: device descriptor read/64, error -71
[2893480.575580] usb 1-1: reset high-speed USB device number 15 using orion-ehci
[2893480.735556] usb 1-1: device descriptor read/64, error -71
[2893481.015560] usb 1-1: device descriptor read/64, error -71
[2893481.285560] usb 1-1: reset high-speed USB device number 15 using orion-ehci
[2893481.735556] usb 1-1: device not accepting address 15, error -71
[2893481.885561] usb 1-1: reset high-speed USB device number 15 using orion-ehci
[2893482.335566] usb 1-1: device not accepting address 15, error -71
[2893482.341725] usb 1-1: USB disconnect, device number 15
[2893482.565570] usb 1-1: new high-speed USB device number 16 using orion-ehci
[2893482.725558] usb 1-1: device descriptor read/64, error -71
[2893483.005565] usb 1-1: device descriptor read/64, error -71
[2893483.275570] usb 1-1: new high-speed USB device number 17 using orion-ehci
[2893483.435557] usb 1-1: device descriptor read/64, error -71
[2893483.725564] usb 1-1: device descriptor read/64, error -71
[2893483.845588] usb usb1-port1: attempt power cycle
[2893484.555570] usb 1-1: new high-speed USB device number 18 using orion-ehci
[2893485.005570] usb 1-1: device not accepting address 18, error -71
[2893485.155569] usb 1-1: new high-speed USB device number 19 using orion-ehci
[2893485.605569] usb 1-1: device not accepting address 19, error -71
[2893485.611683] usb usb1-port1: unable to enumerate USB device
[2893919.565664] usb 1-1: new high-speed USB device number 20 using orion-ehci
[2893919.778190] usb 1-1: device descriptor read/all, error -71
[2893919.925648] usb 1-1: new high-speed USB device number 21 using orion-ehci
[2893920.147944] usb 1-1: device descriptor read/all, error -71
[2893920.153625] usb usb1-port1: attempt power cycle
[2893920.865659] usb 1-1: new high-speed USB device number 22 using orion-ehci
[2893921.315658] usb 1-1: device not accepting address 22, error -71
[2893921.466190] usb 1-1: new high-speed USB device number 23 using orion-ehci
[2893921.915653] usb 1-1: device not accepting address 23, error -71
[2893921.921770] usb usb1-port1: unable to enumerate USB device
[2893925.085667] usb 1-1: new high-speed USB device number 24 using orion-ehci
[2893925.297690] usb 1-1: device descriptor read/all, error -71
[2893925.445646] usb 1-1: new high-speed USB device number 25 using orion-ehci
[2893926.045664] usb 1-1: device not accepting address 25, error -71
[2893926.051788] usb usb1-port1: attempt power cycle
[2893926.765657] usb 1-1: new high-speed USB device number 26 using orion-ehci
[2893927.215656] usb 1-1: device not accepting address 26, error -71
[2893927.365649] usb 1-1: new high-speed USB device number 27 using orion-ehci
[2893927.815662] usb 1-1: device not accepting address 27, error -71
[2893927.821776] usb usb1-port1: unable to enumerate USB device
[2893976.345665] usb 1-1: new high-speed USB device number 28 using orion-ehci
[2893976.558194] usb 1-1: device descriptor read/all, error -71
[2893976.705660] usb 1-1: new high-speed USB device number 29 using orion-ehci
[2893976.918186] usb 1-1: device descriptor read/all, error -71
[2893976.923850] usb usb1-port1: attempt power cycle
[2893977.635673] usb 1-1: new high-speed USB device number 30 using orion-ehci
[2893978.085673] usb 1-1: device not accepting address 30, error -71
[2893978.235658] usb 1-1: new high-speed USB device number 31 using orion-ehci
[2893978.685668] usb 1-1: device not accepting address 31, error -71
[2893978.691788] usb usb1-port1: unable to enumerate USB device
[2893981.815672] usb 1-1: new high-speed USB device number 32 using orion-ehci
[2893982.017307] usb 1-1: New USB device found, idVendor=12d1, idProduct=4321
[2893982.024155] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[2893982.031451] usb 1-1: Product: UVC Camera
[2893982.035531] usb 1-1: Manufacturer: Ruision
[2893982.045701] usb 1-1: SerialNumber: 20200416
[2893982.061222] uvcvideo: Found UVC 1.10 device UVC Camera (12d1:4321)
[2893982.081544] input: UVC Camera: UVC Camera as /devices/platform/orion-ehci.0/usb1/1-1/1-1:1.0/input/input3
[2893982.121973] usb 1-1: 3:1: cannot get freq at ep 0x82
[2893990.285671] usb 1-1: reset high-speed USB device number 32 using orion-ehci
[2893990.445659] usb 1-1: device descriptor read/64, error -71
[2893990.725682] usb 1-1: device descriptor read/64, error -71
[2893990.995662] usb 1-1: reset high-speed USB device number 32 using orion-ehci
[2893991.155675] usb 1-1: device descriptor read/64, error -71
[2893991.435665] usb 1-1: device descriptor read/64, error -71
[2893991.705776] usb 1-1: reset high-speed USB device number 32 using orion-ehci
[2893992.155661] usb 1-1: device not accepting address 32, error -71
[2893992.305669] usb 1-1: reset high-speed USB device number 32 using orion-ehci
[2893992.755674] usb 1-1: device not accepting address 32, error -71
[2893992.761836] usb 1-1: USB disconnect, device number 32
[2893992.985673] usb 1-1: new high-speed USB device number 33 using orion-ehci
[2893993.145663] usb 1-1: device descriptor read/64, error -71
[2893993.425671] usb 1-1: device descriptor read/64, error -71
[2893993.695673] usb 1-1: new high-speed USB device number 34 using orion-ehci
[2893993.855662] usb 1-1: device descriptor read/64, error -71
[2893994.145670] usb 1-1: device descriptor read/64, error -71
[2893994.265686] usb usb1-port1: attempt power cycle
[2893994.975673] usb 1-1: new high-speed USB device number 35 using orion-ehci
[2893995.425670] usb 1-1: device not accepting address 35, error -71
[2893995.575670] usb 1-1: new high-speed USB device number 36 using orion-ehci
[2893996.025667] usb 1-1: device not accepting address 36, error -71
[2893996.031786] usb usb1-port1: unable to enumerate USB device



Output from: /usr/bin/usb-devices
Code: Select all
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev=04.14
S:  Manufacturer=Linux 4.14.133 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=orion-ehci.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub


Output from: lsusb -t
Code: Select all
 
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=orion-ehci/1p, 480M


Attached Devices /USB-MENU: show me that looks at connected and webcam light turn green.

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev=04.14
S: Manufacturer=Linux 4.14.133 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=orion-ehci.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub

T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 32 Spd=480 MxCh= 0
D: Ver= 2.10 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=12d1 ProdID=4321 Rev=04.09
S: Manufacturer=Ruision
S: Product=UVC Camera
S: SerialNumber=20200416
C: #Ifs= 4 Cfg#= 1 Atr=c0 MxPwr=2mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=0e(video) Sub=01 Prot=00 Driver=uvcvideo
I: If#= 1 Alt= 0 #EPs= 0 Cls=0e(video) Sub=02 Prot=00 Driver=uvcvideo
I: If#= 2 Alt= 0 #EPs= 0 Cls=01(audio) Sub=01 Prot=00 Driver=snd-usb-audio
I: If#= 3 Alt= 1 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio


but after 5 seconds, led turn to red and menu didn´t show webcam:

T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=1d6b ProdID=0002 Rev=04.14
S: Manufacturer=Linux 4.14.133 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=orion-ehci.0
C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub


What else can i do?
hirkkak
Donator VIP
Donator VIP
 
Posts: 22
Joined: Sat Apr 13, 2024 6:01 am

Re: Problem with webcam and motion

Postby fvdw » Mon Aug 12, 2024 6:07 am

I have no idea to be honest. Looking to all outputs it seems your webcam is not functioning correctly, or not responding to commands sent
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Problem with webcam and motion

Postby hirkkak » Thu Aug 15, 2024 8:30 am

Thx, finally i give up that camera, even i have two of them and both works well on windows. No one worked.

Now i´m trying with another one much older and it looks like better.

I managed to get first image, but motions stop working after showed image. No matter reboot nas or motion, always same.

Any idea?

usb menu:
Code: Select all
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev=04.14
S:  Manufacturer=Linux 4.14.133 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=orion-ehci.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=04f2 ProdID=b064 Rev=10.23
S:  Manufacturer=Chicony Electronics Co., Ltd.
S:  Product=CNA7137
S:  SerialNumber=SN0001
C:  #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=0e(video) Sub=01 Prot=00 Driver=uvcvideo
I:  If#= 1 Alt= 0 #EPs= 0 Cls=0e(video) Sub=02 Prot=00 Driver=uvcvideo


lsusb -t
Code: Select all
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=orion-ehci/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Video, Driver=uvcvideo, 480M
    |__ Port 1: Dev 2, If 1, Class=Video, Driver=uvcvideo, 480M


output from dmesg.
Code: Select all
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.133 (root@fvdwsl-5big2.local) (gcc version 4.9.3 (GCC)) #5 PREEMPT Thu Aug 10 15:38:37 CEST 2023
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: LaCie 2Big Network v2
[    0.000000] Ignoring unrecognised tag 0x41000403
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 65536
[    0.000000] free_area_init_node: node 0, pgdat c0929960, node_mem_map cfdfa000
[    0.000000]   Normal zone: 512 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda7 ro reset=0 productType=PRO_KW
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 250048K/262144K available (6915K kernel code, 307K rwdata, 1724K rodata, 192K init, 388K bss, 12096K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff800000   ( 752 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc06c8f94   (6916 kB)
[    0.000000]       .init : 0xc08ae000 - 0xc08de000   ( 192 kB)
[    0.000000]       .data : 0xc08de000 - 0xc092ada0   ( 308 kB)
[    0.000000]        .bss : 0xc0932720 - 0xc099393c   ( 389 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] NR_IRQS: 114
[    0.000000] Switching to timer-based delay loop, resolution 6ns
[    0.000009] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[   20.105929] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[   20.106224] Console: colour dummy device 80x30
[   20.106259] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666)
[   20.106282] pid_max: default: 32768 minimum: 301
[   20.106436] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[   20.106460] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[   20.107003] CPU: Testing write buffer coherency: ok
[   20.107856] Setting up static identity map for 0x81e0 - 0x8238
[   20.108036] Hierarchical SRCU implementation.
[   20.109927] random: get_random_u32 called from bucket_table_alloc+0x14c/0x198 with crng_init=0
[   20.110352] VFP support v0.3: not present
[   20.110620] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[   20.110652] futex hash table entries: 256 (order: -1, 3072 bytes)
[   20.110758] xor: measuring software checksum speed
[   20.206334]    arm4regs  :  1049.200 MB/sec
[   20.306008]    8regs     :   653.200 MB/sec
[   20.406010]    32regs    :   904.400 MB/sec
[   20.406029] xor: using function: arm4regs (1049.200 MB/sec)
[   20.406048] pinctrl core: initialized pinctrl subsystem
[   20.406660] NET: Registered protocol family 16
[   20.407187] DMA: preallocated 256 KiB pool for atomic coherent allocations
[   20.409781] Kirkwood: MV88F6281-A0, TCLK=166666667.
[   20.409813] Feroceon L2: Enabling L2
[   20.409852] Feroceon L2: Cache support initialised.
[   20.410622] kirkwood_init: create proc tsinfo proc
[   20.410645] tsinfo: create proc tsinfo vendor successfully
[   20.410654] mv_usb_init 1
[   20.410665] mv_usb_init 2 devnum = 0
[   20.410675] init function mv_usb_init finished
[   20.410684] initial MPP regs:
[   20.410688]  01112222
[   20.410692]  00003311
[   20.410699]  00551100
[   20.410706]  00000000
[   20.410713]  00000000
[   20.410719]  00000000
[   20.410726]  00000000
[   20.410732]
[   20.410747]   final MPP regs:
[   20.410750]  01112222
[   20.410754]  00003311
[   20.410761]  00551100
[   20.410767]  00000000
[   20.410773]  00000000
[   20.410780]  00000000
[   20.410786]  00000000
[   20.410792]
[   20.411175]  orion-ehci registered
[   20.413482] orion_gpio_is_valid: invalid GPIO 7
[   20.414257] Kirkwood PCIe port 0: link down
[   20.414270] Kirkwood PCIe port 1: link up
[   20.414285] PCI: bus0 uses PCIe port 0
[   20.414563] PCI host bridge to bus 0000:00
[   20.414587] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[   20.414601] pci_bus 0000:00: root bus resource [io  0x1000-0xffff]
[   20.414613] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[   20.414650] pci 0000:00:00.0: [11ab:6281] type 00 class 0x058000
[   20.414683] pci 0000:00:00.0: reg 0x10: [mem 0xf1000000-0xf10fffff 64bit pref]
[   20.414697] pci 0000:00:00.0: reg 0x18: [mem 0x00000000-0x0fffffff]
[   20.414764] pci 0000:00:00.0: supports D1 D2
[   20.415307] PCI: bus0: Fast back to back transfers disabled
[   20.415329] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[   20.415336] PCI: bus1 uses PCIe port 1
[   20.415642] PCI host bridge to bus 0000:01
[   20.415661] pci_bus 0000:01: root bus resource [mem 0xe8000000-0xefffffff]
[   20.415675] pci_bus 0000:01: root bus resource [io  0x10000-0x1ffff]
[   20.415687] pci_bus 0000:01: No busn resource found for root bus, will use [bus 01-ff]
[   20.415718] PCI: bus1: Fast back to back transfers enabled
[   20.415732] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[   20.617039] raid6: int32x1  gen()   101 MB/s
[   20.786428] raid6: int32x1  xor()    63 MB/s
[   20.956390] raid6: int32x2  gen()   133 MB/s
[   21.126169] raid6: int32x2  xor()    84 MB/s
[   21.296229] raid6: int32x4  gen()   133 MB/s
[   21.466213] raid6: int32x4  xor()    90 MB/s
[   21.636178] raid6: int32x8  gen()   121 MB/s
[   21.806063] raid6: int32x8  xor()    80 MB/s
[   21.806073] raid6: using algorithm int32x2 gen() 133 MB/s
[   21.806082] raid6: .... xor() 84 MB/s, rmw enabled
[   21.806090] raid6: using intx1 recovery algorithm
[   21.806385] vgaarb: loaded
[   21.806918] SCSI subsystem initialized
[   21.807233] libata version 3.00 loaded.
[   21.807755] usbcore: registered new interface driver usbfs
[   21.807874] usbcore: registered new interface driver hub
[   21.808001] usbcore: registered new device driver usb
[   21.808265] Linux video capture interface: v2.00
[   21.810920] clocksource: Switched to clocksource orion_clocksource
[   21.811048] VFS: Disk quotas dquot_6.6.0
[   21.811109] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   21.825665] NET: Registered protocol family 2
[   21.826930] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[   21.826972] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[   21.827007] TCP: Hash tables configured (established 2048 bind 2048)
[   21.827093] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   21.827119] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   21.827277] NET: Registered protocol family 1
[   21.827629] RPC: Registered named UNIX socket transport module.
[   21.827641] RPC: Registered udp transport module.
[   21.827649] RPC: Registered tcp transport module.
[   21.827657] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   21.827684] PCI: CLS 32 bytes, default 32
[   21.827919] NetWinder Floating Point Emulator V0.97 (double precision)
[   21.828050] gpio-usb-probe-1
[   21.828114] gpio-usb-probe-4b err=0
[   21.828131] gpio-usb gpio-usb: USB GPIO's initialized
[   21.829807] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[   21.830448] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   21.830829] ntfs: driver 2.1.32 [Flags: R/W].
[   21.830870] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   21.831019] fuse init (API version 7.26)
[   21.831304] JFS: nTxBlock = 1953, nTxLock = 15628
[   21.832381] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[   21.837973] async_tx: api initialized (async)
[   21.838056] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[   21.838069] io scheduler noop registered
[   21.838078] io scheduler deadline registered
[   21.838133] io scheduler cfq registered (default)
[   21.838143] io scheduler mq-deadline registered
[   21.838398] mv_xor mv_xor.0: Marvell shared XOR driver
[   21.896661] mv_xor mv_xor.0: Marvell XOR (Registers Mode): ( xor cpy )
[   21.898759] mv_xor mv_xor.1: Marvell shared XOR driver
[   21.956663] mv_xor mv_xor.1: Marvell XOR (Registers Mode): ( xor cpy )
[   21.963545] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   21.965719] console [ttyS0] disabled
[   21.986130] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 10416666) is a 16550A
[   22.676910] random: fast init done
[   22.716960] console [ttyS0] enabled
[   22.733581] brd: module loaded
[   22.743621] loop: module loaded
[   22.748037] sata_mv sata_mv.0: version 1.28
[   22.748105] sata_mv sata_mv.0: cannot get optional clkdev
[   22.753579] sata_mv sata_mv.0: slots 32 ports 2
[   22.761904] scsi host0: sata_mv
[   22.765626] scsi host1: sata_mv
[   22.769171] ata1: SATA max UDMA/133 irq 21
[   22.773248] ata2: SATA max UDMA/133 irq 21
[   22.778804] m25p80 spi0.0: mx25l4005a (512 Kbytes)
[   22.784689] Creating 2 MTD partitions on "spi_flash":
[   22.789801] 0x000000000000-0x00000007d000 : "u-boot"
[   22.795657] 0x00000007e000-0x00000007f000 : "u-boot-env"
[   22.803639] tun: Universal TUN/TAP device driver, 1.6
[   22.809964] ipddp.c:v0.01 8/28/97 Bradford W. Johnson <johns393@maroon.tc.umn.edu>
[   22.818211] ipddp0: Appletalk-IP Encap. mode by Bradford W. Johnson <johns393@maroon.tc.umn.edu>
[   22.834491] libphy: orion_mdio_bus: probed
[   22.838829] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   23.286048] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   23.336024] ata1.00: ATA-10: ST2000DM008-2FR102, 0001, max UDMA/133
[   23.342263] ata1.00: 3907029168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[   23.496030] ata1.00: configured for UDMA/133
[   23.516301] scsi 0:0:0:0: Direct-Access     ATA      ST2000DM008-2FR1 0001 PQ: 0 ANSI: 5
[   23.536462] fvdw1 disk index before get_sd_name = 0
[   23.541317] device-name= sata_mv
[   23.544530] fvdw2 disk index after get_sd_name = 0
[   23.565987] fvdw3 prefix[0]=s  prefix[1]=d
[   23.570070] fvdw4 diskname = sda
[   23.573873] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[   23.586019] sd 0:0:0:0: [sda] 4096-byte physical blocks
[   23.596009] sd 0:0:0:0: [sda] Write Protect is off
[   23.600783] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[   23.606098] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   23.657768]  sda: sda4 < sda5 sda6 sda7 sda8 >
[   23.664119] sd 0:0:0:0: [sda] Attached SCSI disk
[   23.717279] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:d0:4b:8d:a3:17
[   23.726348] PPP generic driver version 2.4.2
[   23.730959] PPP Deflate Compression module registered
[   23.736102] PPP MPPE Compression module registered
[   23.740875] NET: Registered protocol family 24
[   23.745318] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
[   23.752838] usbcore: registered new interface driver pegasus
[   23.758744] usbcore: registered new interface driver asix
[   23.764311] usbcore: registered new interface driver ax88179_178a
[   23.770520] usbcore: registered new interface driver cdc_ether
[   23.776511] usbcore: registered new interface driver net1080
[   23.782335] usbcore: registered new interface driver plusb
[   23.787971] usbcore: registered new interface driver cdc_subset
[   23.794052] usbcore: registered new interface driver zaurus
[   23.799789] usbcore: registered new interface driver ipheth
[   23.805541] usbcore: registered new interface driver cdc_ncm
[   23.811941] aoe: cannot create debugfs directory
[   23.817068] aoe: AoE v85 initialised.
[   23.821155] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[   23.827397] i2c /dev entries driver
[   23.832398] at24 0-0050: 512 byte 24c04 EEPROM, writable, 16 bytes/write
[   23.839560] uvcvideo: Unable to create debugfs directory
[   23.845218] usbcore: registered new interface driver uvcvideo
[   23.851107] USB Video Class driver (1.1.1)
[   23.855190] gspca_main: v2.14.0 registered
[   23.859495] usbcore: registered new interface driver Philips webcam
[   23.876420] gpio-fan gpio-fan: GPIO fan initialized
[   23.882313] device-mapper: ioctl: 4.37.0-ioctl (2017-09-20) initialised: dm-devel@redhat.com
[   23.891310] device-mapper: multipath round-robin: version 1.2.0 loaded
[   23.897933] device-mapper: multipath queue-length: version 0.2.0 loaded
[   23.904516] device-mapper: multipath service-time: version 0.3.0 loaded
[   23.911247] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   23.917410] device-mapper: raid: Loading target version 1.13.0
[   23.925093] Netfilter messages via NETLINK v0.30.
[   23.930662] nfnl_acct: registering with nfnetlink.
[   23.935533] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
[   23.942108] ipip: IPv4 and MPLS over IPv4 tunneling driver
[   23.948355] ip_tables: (C) 2000-2006 Netfilter Core Team
[   23.954178] NET: Registered protocol family 10
[   23.959771] Segment Routing with IPv6
[   23.963505] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   23.969270] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[   23.975891] NET: Registered protocol family 17
[   23.980548] Bridge firewalling registered
[   23.984759] NET: Registered protocol family 5
[   23.990086] console [netcon0] enabled
[   23.993733] netconsole: network logging started
[   23.998897] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[   24.006081] rtc-mv rtc-mv: setting system clock to 2024-08-15 07:59:32 UTC (1723708772)
[   24.435993] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   24.443168] ata2.15: Port Multiplier 1.1, 0x197b:0x2352 r0, 2 ports, feat 0x0/0x8
[   24.457806] ata2.00: hard resetting link
[   24.816776] ata2.01: hard resetting link
[   25.536024] ata2.00: ATA-8: ST32000644NS,     KD03, max UDMA/133
[   25.542007] ata2.00: 3907029168 sectors, multi 0: LBA48
[   25.556012] ata2.00: failed to enable Sense Data Reporting, Emask 0x1
[   25.596014] ata2.00: failed to enable Sense Data Reporting, Emask 0x1
[   25.596034] ata2.00: configured for UDMA/133
[   25.600524] ata2: EH complete
[   25.616324] scsi 1:0:0:0: Direct-Access     ATA      ST32000644NS     KD03 PQ: 0 ANSI: 5
[   25.624919] fvdw1 disk index before get_sd_name = 1
[   25.629939] device-name= sata_mv
[   25.633156] fvdw2 disk index after get_sd_name = 1
[   25.637965] fvdw3 prefix[0]=s  prefix[1]=d
[   25.642046] fvdw4 diskname = sdb
[   25.645761] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[   25.654183] sd 1:0:0:0: [sdb] Write Protect is off
[   25.659047] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[   25.659166] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   25.715368]  sdb: sdb4 < sdb5 sdb6 sdb7 sdb8 >
[   25.721673] sd 1:0:0:0: [sdb] Attached SCSI disk
[   25.726681] md: Skipping autodetection of RAID arrays. (raid=autodetect will force)
[   25.735796] EXT4-fs (sda7): mounting ext3 file system using the ext4 subsystem
[   25.743488] EXT4-fs (sda7): INFO: recovery required on readonly filesystem
[   25.750504] EXT4-fs (sda7): write access will be enabled during recovery
[   26.166906] EXT4-fs (sda7): recovery complete
[   26.286052] EXT4-fs (sda7): mounted filesystem with ordered data mode. Opts: (null)
[   26.293716] VFS: Mounted root (ext3 filesystem) readonly on device 8:7.
[   26.300938] Freeing unused kernel memory: 192K
[   26.305364] This architecture does not have kernel memory protection.
[   26.807393] EXT4-fs (sda7): warning: maximal mount count reached, running e2fsck is recommended
[   26.856067] EXT4-fs (sda7): re-mounted. Opts: (null)
[   28.168623] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   28.175710] ehci-orion: EHCI orion driver
[   28.179930] orion-ehci orion-ehci.0: EHCI Host Controller
[   28.185332] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   28.193125] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   28.225983] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   28.232037] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   28.238821] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   28.246026] usb usb1: Product: EHCI Host Controller
[   28.250879] usb usb1: Manufacturer: Linux 4.14.133 ehci_hcd
[   28.256439] usb usb1: SerialNumber: orion-ehci.0
[   28.261407] hub 1-0:1.0: USB hub found
[   28.265179] hub 1-0:1.0: 1 port detected
[   28.288254] usbcore: registered new interface driver usb-storage
[   28.310064] usbcore: registered new interface driver usblp
[   28.352021] Loading iSCSI transport class v2.0-870.
[   28.361482] iscsi: registered transport (tcp)
[   28.636034] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   28.647470] EXT4-fs (sda5): mounting ext3 file system using the ext4 subsystem
[   28.806242] EXT4-fs (sda5): recovery complete
[   28.846094] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: (null)
[   28.897760] usb 1-1: New USB device found, idVendor=04f2, idProduct=b064
[   28.904929] usb 1-1: New USB device strings: Mfr=2, Product=1, SerialNumber=3
[   28.913392] usb 1-1: Product: CNA7137
[   28.922852] usb 1-1: Manufacturer: Chicony Electronics Co., Ltd.
[   28.933573] usb 1-1: SerialNumber: SN0001
[   28.944440] uvcvideo: Found UVC 1.00 device CNA7137 (04f2:b064)
[   28.974022] input: CNA7137: Chicony USB 2.0 Camera as /devices/platform/orion-ehci.0/usb1/1-1/1-1:1.0/input/input1
[   29.093875] random: dropbear: uninitialized urandom read (32 bytes read)
[   32.936062] random: crng init done
[   40.891729] udevd (1004): /proc/1004/oom_adj is deprecated, please use /proc/1004/oom_score_adj instead.
[   40.901336] udev: starting version 130
[   41.343786] synth uevent: /gpiochip0: failed to send uevent
[   41.343806] gpio gpiochip0: uevent: failed to send synthetic uevent
[   41.448554] synth uevent: /gpiochip1: failed to send uevent
[   41.448574] gpio gpiochip1: uevent: failed to send synthetic uevent
[   58.680460] EXT4-fs (sda8): recovery complete
[   58.726078] EXT4-fs (sda8): mounted filesystem with ordered data mode. Opts: user_xattr,acl,nodelalloc
[   59.649874] EXT4-fs (sdb8): recovery complete
[   59.696078] EXT4-fs (sdb8): mounted filesystem with ordered data mode. Opts: user_xattr,acl,nodelalloc
[   61.786611] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
[   61.792739] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   64.020263] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   64.030111] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  596.100740] ata2.00: failed to read SCR 1 (Emask=0x40)
[  596.105865] ata2.01: failed to read SCR 1 (Emask=0x40)
[  596.111008] ata2.15: exception Emask 0x10 SAct 0x0 SErr 0x180000 action 0x6 frozen
[  596.118556] ata2.15: edma_err_cause=00000020 pp_flags=00000000, SError=00180000
[  596.125837] ata2.15: SError: { 10B8B Dispar }
[  596.130190] ata2.00: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozen
[  596.137397] ata2.01: exception Emask 0x100 SAct 0x0 SErr 0x0 action 0x6 frozen
[  596.144592] ata2.15: hard resetting link
[  597.496112] ata2.15: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[  597.503533] ata2.00: hard resetting link
[  597.866887] ata2.01: hard resetting link
[  598.596129] ata2.00: failed to enable Sense Data Reporting, Emask 0x1
[  598.636144] ata2.00: failed to enable Sense Data Reporting, Emask 0x1
[  598.636165] ata2.00: configured for UDMA/133
[  598.640660] ata2: EH complete


Any idea or config for motion?

Off topic:
(As you can see, the problem with sata still persists... :cry: ) But not using raid anymore and all things working fine.
hirkkak
Donator VIP
Donator VIP
 
Posts: 22
Joined: Sat Apr 13, 2024 6:01 am

Re: Problem with webcam and motion

Postby fvdw » Thu Aug 15, 2024 8:53 pm

did you read the help page for webcam in the fvdw-sl webinterface ?
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Problem with webcam and motion

Postby fvdw » Thu Aug 15, 2024 9:03 pm

The sata issue. These kind of errors like ata2.00: failed to read SCR 1 can be caused by a bad connection of the sta cables (oxidized contacts) or a bad power supply or a bad harddrive.
Furthermore they can (will) cause data loss. You should solve that issue. Maybe it also causing your issues with motion.

This weekend I will connect an uvc webcam to see if I can reproduce your problem

--edit
I connected an uvc camera and motion is working as it should

Code: Select all
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev=04.14
S:  Manufacturer=Linux 4.14.168 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=orion-ehci.0
C:  #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=0471 ProdID=0333 Rev=00.00
S:  Product=USB Video Camera
C:  #Ifs= 4 Cfg#= 1 Atr=80 MxPwr=98mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=0e(video) Sub=01 Prot=00 Driver=uvcvideo
I:  If#= 1 Alt= 0 #EPs= 0 Cls=0e(video) Sub=02 Prot=00 Driver=uvcvideo
I:  If#= 2 Alt= 0 #EPs= 0 Cls=01(audio) Sub=01 Prot=00 Driver=snd-usb-audio
I:  If#= 3 Alt= 0 #EPs= 0 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio


I can access the webinterface using http://nas-name:8091/ and view the live stream in firefox using http://nas-name:8090 (instead of nas-name also ip of the nas can be used)

Question look in folder /usr/bin for the file motion and let me know time stamp and size to check that you are using the latest version
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Problem with webcam and motion

Postby fvdw » Thu Aug 15, 2024 9:50 pm

this my motion config file
Code: Select all
daemon on
setup_mode off
logfile /share/1000/motion-webcam/motion.log
log_level 6
log_type all
videodevice /dev/video0
v4l2_palette 17
; tunerdevice /dev/tuner0
input -1
norm 0
frequency 0
rotate 0
width 320
height 240
framerate 2
minimum_frame_time 0
; netcam_url value
; netcam_userpass value
netcam_keepalive off
; netcam_proxy value
netcam_tolerant_check off
auto_brightness off
brightness 0
contrast 0
saturation 0
hue 0
roundrobin_frames 1
roundrobin_skip 1
switchfilter off
threshold 1500
threshold_tune off
noise_level 32
noise_tune on
despeckle_filter EedDl
; area_detect value
; mask_file value
smart_mask_speed 0
lightswitch 0
minimum_motion_frames 1
pre_capture 0
post_capture 0
event_gap 60
max_movie_time 1800
emulate_motion off
output_pictures on
output_debug_pictures off
quality 75
picture_type jpeg
ffmpeg_output_movies on
ffmpeg_output_debug_movies off
ffmpeg_timelapse 0
ffmpeg_timelapse_mode daily
ffmpeg_bps 500000
ffmpeg_variable_bitrate 0
ffmpeg_video_codec mpeg4
ffmpeg_deinterlace off
sdl_threadnr 0
use_extpipe off
;extpipe mencoder -demuxer rawvideo -rawvideo w=320:h=240:i420 -ovc x264 -x264encopts bframes=4:frameref=1:subq=1:scenecut=-1:nob_adapt:threads=1:keyint=1000:8x8dct:vbv_bufsize=4000:crf=24:partitions=i8x8,i4x4:vbv_maxrate=800:no-chroma-me -vf denoise3d=16:12:48:4,pp=lb -of   avi -o %f.avi - -fps %fps
snapshot_interval 0
locate_motion_style box
text_right %Y-%m-%d\n%T-%q
; text_left CAMERA %t
text_changes off
text_event %Y%m%d%H%M%S
text_double off
;exif_text %i%J/%K%L
target_dir /share/1000/motion-webcam/cam1
snapshot_filename %v-%Y%m%d%H%M%S-snapshot
picture_filename %v-%Y%m%d%H%M%S-%q
movie_filename %v-%Y%m%d%H%M%S
timelapse_filename %Y%m%d-timelapse
ipv6_enabled off
stream_port 8090
stream_quality 100
stream_motion off
stream_maxrate 1
stream_localhost off
stream_limit 0
stream_auth_method 0
; stream_authentication username:password
webcontrol_port 8091
webcontrol_localhost off
webcontrol_html_output on
; webcontrol_authentication username:password
track_type 0
track_auto off
;track_port /dev/ttyS0
;track_motorx 0
;track_motorx_reverse 0
;track_motory 1
;track_motory_reverse 0
;track_maxx 200
;track_minx 50
;track_maxy 200
;track_miny 50
;track_homex 128
;track_homey 128
track_iomojo_id 0
track_step_angle_x 10
track_step_angle_y 10
track_move_wait 10
track_speed 255
track_stepsize 40
quiet on
; on_event_start value
; on_event_end value
; on_picture_save value
; on_motion_detected value
; on_area_detected value
; on_movie_start value
; on_movie_end value
; on_camera_lost value
; sql_log_picture on
; sql_log_snapshot on
; sql_log_movie off
; sql_log_timelapse off
; sql_query insert into security(camera, filename, frame, file_type, time_stamp, event_time_stamp) values('%t', '%f', '%q', '%n', '%Y-%m-%d %T', '%C')
; database_type value
; database_dbname value
; database_host value
; database_user value
; database_password value
; database_port value
; sqlite3_db value
; video_pipe value
; motion_video_pipe value
; thread /usr/local/etc/thread1.conf
; thread /usr/local/etc/thread2.conf
; thread /usr/local/etc/thread3.conf
; thread /usr/local/etc/thread4.conf

fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Problem with webcam and motion

Postby hirkkak » Fri Aug 16, 2024 7:26 am

Hi,

fvdw wrote:The sata issue. These kind of errors like ata2.00: failed to read SCR 1 can be caused by a bad connection of the sta cables (oxidized contacts) or a bad power supply or a bad harddrive.
Furthermore they can (will) cause data loss. You should solve that issue. Maybe it also causing your issues with motion.


I already spent lot of time trying differents disk, kernels, dissasemble nas, replacing capacitors, cables, psu, cleaning with contact cleaner, etc. I finally give up and i will use ata2 for movies or something without valor, and ata1, usb and esata for the rest, without raid.

Problem creating raid1

https://plugout.net/viewtopic.php?f=27&t=3791&start=20

I gonna be few days out from home and have not time for long test. I will unplug sata2 and see if motion works, but i think it´ll be the same. I'll also check the motion .conf file.

When i have more time i will try to fix the ata problems again.

Thanks.
hirkkak
Donator VIP
Donator VIP
 
Posts: 22
Joined: Sat Apr 13, 2024 6:01 am


Return to Lacie 2Big Network vs2

Who is online

Users browsing this forum: No registered users and 7 guests