Motion - Bug Report 2011x 01x 21x 162309
You are here: Foswiki>Motion Web>BugReports>BugReport2011x01x21x162309 (03 Jun 2012, AngelCarpintero)Edit Attach

BUG: camera input parameter is valid from 0 to 15 except 8

I have a capture card with 16 inputs. In the config file when I select input 8, I get the video from input 0. The reason is lies in video2.c, row 196 if (in == 8) in = 0;

I just can't configure 8. It gets clobbered, probably for a reason. I changed this line to if (in == 255) in = 0;

And presto! It works for me, but I have no idea what else went wrong (eg. with usb cameras?)

in motion.conf:
videodevice /dev/video0
input 8

hacked fix video2.c, line 196
if (in == 255)
  in = 0;

Environment

Motion version: 3.2.12
ffmpeg version:  
Shared libraries: postgresql
Server OS: ubuntu 10.10, kernel 2.6.32-25-generic
-- LaszloVarga - 21 Jan 2011

Follow up

Hi Laszlo,

Ohh , nevermind ! This was done to allow use with webcams so the better fix is to set input -1 for webcams.

Let me fix this in svn .

Cheers,

-- AngelCarpintero - 03 Feb 2011

Fix record

Updated trunk and branch with a fix , so now for webcams input value has to be set to -1 instead of 8.

Cheers,

-- AngelCarpintero - 03 Feb 2011

BugReportForm edit

TopicTitle camera input parameter is valid from 0 to 15 except 8
BugStatus Released
AssignedBugTo AngelCarpintero
SubmittedBy LaszloVarga
Topic revision: r3 - 03 Jun 2012, AngelCarpintero
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.