Only 1 camera works at a time
Question
I was running motion with 2 analog cameras connected to a standard 4 video in + audio to usb adapter.
(Bus 002 Device 002: ID 05e1:0408 Syntek Semiconductor Co., Ltd STK1160 Video Capture Device)
Thing is, I had to reinstall the OS and lost the config files. The cameras are constantly monitored through the web interface.
Problem: Only one camera works at a given time. If I disable thread1, camera 2 works, If I disable thread2, camera 1 works.
If I try both at the same time, camera2 works but camera1 gives a broken signal (attached)
Broken image:
motion.conf: http://pastebin.com/1SCiwaRg
thread_1.conf: http://pastebin.com/J8JDQFRH
diff thread_1.conf thread_2.conf
1c1
> input 0
---
< input 1
8c8
> webcam_port 8081
---
< webcam_port 8082
Environment
Motion version: |
3.2.12 |
ffmpeg version: |
0.8.9-6:0.8.9-1 |
Libraries: |
ffmpeg, mysql |
Server OS: |
Debian Linux 3.12-1-amd64 |
--
DavidVentura - 26 Feb 2014
Follow Up
I'm not sure how that capute card works , probably you may to play with round robin config options. Seems that somehow switching input is too fast for your card.
--
AngelCarpintero - 28 Feb 2014
Answer
I had this exact problem and spent a few days trying to figure it out. I have the same setup: a 4-channel usb video capture device with 2 cameras. The problem was that my main motion.conf was set to 640x480. My video device was set to NTSC (720x480). When the first thread connects to the device, it adjusted the resolution to 720x480. But the second thread still uses 640x480. Setting my main config to 720x480 solved the problem.