Motion - Support Question 2008x 05x 17x 000053

Error capturing first image.

Question

Good day.

I have a 8-headed video capture card on the basis of Philips SAA7134. 5 cameras are installed. All works about 1-2 weeks without censures. Nothing changed. Today there was a problem from one of camers: "Error capturing first image". Tried to restart some times motion - nothing has changed. Has then tried to change simply a source of video signal to a free admission - all works normally.

You to me could not help to solve the given problem?

Thanks.

17.05.2008 10:34:01   server2   motion   [3] 0: GREY (8 bpp gray)
17.05.2008 10:34:01   server2   motion   [3] 10: UYVY (4:2:2 packed, UYVY)
17.05.2008 10:34:01   server2   motion   [3] 11: 422P (4:2:2 planar, Y-Cb-Cr)
17.05.2008 10:34:01   server2   motion   [3] 12: YU12 (4:2:0 planar, Y-Cb-Cr)
17.05.2008 10:34:01   server2   motion   [3] 1: RGBO (15 bpp RGB, le)
17.05.2008 10:34:01   server2   motion   [3] 2: RGBQ (15 bpp RGB, be)
17.05.2008 10:34:01   server2   motion   [3] 3: RGBP (16 bpp RGB, le)
17.05.2008 10:34:01   server2   motion   [3]    "42", default 0, current 0
17.05.2008 10:34:01   server2   motion   [3]    "42", default 0, current 0
17.05.2008 10:34:01   server2   motion   [3]    "42", default 0, current 0
17.05.2008 10:34:01   server2   motion   [3]    "42", default 0, current 0
17.05.2008 10:34:01   server2   motion   [3]    "42", default 0, current 0
17.05.2008 10:34:01   server2   motion   [3]    "42", default 0, current 0
17.05.2008 10:34:01   server2   motion   [3] 4: RGBR (16 bpp RGB, be)
17.05.2008 10:34:01   server2   motion   [3] 5: BGR3 (24 bpp RGB, le)
17.05.2008 10:34:01   server2   motion   [3] 6: RGB3 (24 bpp RGB, be)
17.05.2008 10:34:01   server2   motion   [3] 7: BGR4 (32 bpp RGB, le)
17.05.2008 10:34:01   server2   motion   [3] 8: RGB4 (32 bpp RGB, be)
17.05.2008 10:34:01   server2   motion   [3] 9: YUYV (4:2:2 packed, YUYV)
17.05.2008 10:34:01   server2   motion   [3]    "Brightness", default 128, current 128
17.05.2008 10:34:01   server2   motion   [3] cap.bus_info: "PCI:0000:04:0a.0"
17.05.2008 10:34:01   server2   motion   [3] cap.capabilities=0x05010015
17.05.2008 10:34:01   server2   motion   [3] cap.card: "10MOONS PCI TV CAPTURE CARD"
17.05.2008 10:34:01   server2   motion   [3] cap.driver: "saa7134"
17.05.2008 10:34:01   server2   motion   [3]    "Contrast", default 68, current 68
17.05.2008 10:34:01   server2   motion   [3] found control 0x00000000, "42", range 0,0 !DISABLED!
17.05.2008 10:34:01   server2   motion   [3] found control 0x00000000, "42", range 0,0 !DISABLED!
17.05.2008 10:34:01   server2   motion   [3] found control 0x00000000, "42", range 0,0 !DISABLED!
17.05.2008 10:34:01   server2   motion   [3] found control 0x00000000, "42", range 0,0 !DISABLED!
17.05.2008 10:34:01   server2   motion   [3] found control 0x00000000, "42", range 0,0 !DISABLED!
17.05.2008 10:34:01   server2   motion   [3] found control 0x00000000, "42", range 0,0 !DISABLED!
17.05.2008 10:34:01   server2   motion   [3] found control 0x00980900, "Brightness", range 0,255 
17.05.2008 10:34:01   server2   motion   [3] found control 0x00980901, "Contrast", range 0,127 
17.05.2008 10:34:01   server2   motion   [3] found control 0x00980902, "Saturation", range 0,127 
17.05.2008 10:34:01   server2   motion   [3] found control 0x00980903, "Hue", range -128,127 
17.05.2008 10:34:01   server2   motion   [3] found control 0x08000000, "Invert", range 0,1 
17.05.2008 10:34:01   server2   motion   [3] found control 0x08000001, "y offset odd field", range 0,128 
17.05.2008 10:34:01   server2   motion   [3]    "Hue", default 0, current 0
17.05.2008 10:34:01   server2   motion   [3] index_format 8 Test palette YU12 (640x480)
17.05.2008 10:34:01   server2   motion   [3]    "Invert", default 0, current 0
17.05.2008 10:34:01   server2   motion   [3] - READWRITE
17.05.2008 10:34:01   server2   motion   [3] Resizing pre_capture buffer to 1 items
17.05.2008 10:34:01   server2   motion   [3]    "Saturation", default 64, current 64
17.05.2008 10:34:01   server2   motion   [3] Selected palette YU12
17.05.2008 10:34:01   server2   motion   [3] - STREAMING
17.05.2008 10:34:01   server2   motion   [3] Supported palettes:
17.05.2008 10:34:01   server2   motion   [3] - TUNER
17.05.2008 10:34:01   server2   motion   [3] Using palette YU12 (640x480) bytesperlines 960 sizeimage 460800 colorspace 00000000
17.05.2008 10:34:01   server2   motion   [3] - VBI_CAPTURE
17.05.2008 10:34:01   server2   motion   [3] - VIDEO_CAPTURE
17.05.2008 10:34:01   server2   motion   [3] - VIDEO_OVERLAY
17.05.2008 10:34:01   server2   motion   [3]    "y offset odd field", default 0, current 0
.....
17.05.2008 10:34:02   server2   motion   [3] v4l2_next: VIDIOC_DQBUF: EIO (s->pframe 0)
17.05.2008 10:34:04   server2   motion   [3] v4l2_next: VIDIOC_DQBUF: EIO (s->pframe 1)
17.05.2008 10:34:06   server2   motion   [3] v4l2_next: VIDIOC_DQBUF: EIO (s->pframe 2)
17.05.2008 10:34:08   server2   motion   [3] v4l2_next: VIDIOC_DQBUF: EIO (s->pframe 3)
17.05.2008 10:34:10   server2   motion   [3] v4l2_next: VIDIOC_DQBUF: EIO (s->pframe 0)
17.05.2008 10:34:12   server2   motion   [3] Error capturing first image
17.05.2008 10:34:12   server2   motion   [3] Resizing pre_capture buffer to 31 items
17.05.2008 10:34:12   server2   motion   [3] v4l2_next: VIDIOC_DQBUF: EIO (s->pframe 0)
17.05.2008 10:34:12   server2   motion   [3] v4l2_next: VIDIOC_DQBUF: EIO (s->pframe 1)
17.05.2008 10:34:12   server2   motion   [3] v4l2_next: VIDIOC_DQBUF: EIO (s->pframe 2)
...

Environment

Motion version: 3.2.10
ffmpeg version: 0.4.9pre1
Libraries: ffmpeg, mysql
Server OS: Mandriva 2008 spring powerpack

-- NickIvanov - 17 May 2008

Answer

According with V4L2 specs this problem you had it's an internal error ( signal loss , not enough bandwidth in pci bus ? ):

http://www.linuxtv.org/downloads/video4linux/API/V4L2_API/spec/r10623.htm

So your driver should react and motion will recover if thread dies .

-- AngelCarpintero - 18 May 2008

I also have a SAA7134 card and have also seen this problem. The only way to recover is to power off the computer. It isn't enought to restart, unload/reload the driver etc.

-- DagErlandsson - 18 May 2008

Not still a solution , but look also to this Bug :

http://www.lavrsen.dk/twiki/bin/view/Motion/BugReport2008x05x17x175521

-- AngelCarpintero - 26 May 2008
Topic revision: r4 - 26 May 2008, 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.