Hi, I am having what I believe is the same issue as reported in this bugreport.
libjpeg segfaults, which leads to motion stopping. At the same time a completely grey (but date & time-stamped) frame is generated, this frame has no jpeg encoding errors. Note that some of the packages listed below are from the wheezy-backports archive. -- System Information: Debian Release: wheezy Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: linux-image-3.16-0.bpo.2-amd64 Alternative tested kernel: 3.17.1 vanilla (make oldconfig) LANG=en_GB.UTF-8 -- Hardware Information: Intel Core i3 8GB RAM Gigabyte H77-D3H motherboard (H77 express chipset) Note: I ran memtest86 last night to check the RAM, no errors were indicated. -- Input device at /dev/video0 Bus 001 Device 003: ID 045e:076d Microsoft Corp. LifeCam HD-5000 Note: I have tried connecting the camera using both USB2 and USB3 ports. Package & dependencies versions: ii motion 3.2.12-3.4 ii libavcodec53:amd64 7:0.10.3-dmo1 ii libavformat53:amd64 7:0.10.3-dmo1 ii libavutil51:amd64 8:1.0.10-dmo1 ii libc6:amd64 2.13-38+deb7u6 ii libjpeg8:amd64 8d-1+deb7u1 ii libmysqlclient18:amd64 5.5.38-0+wheezy1 ii libpq5 9.1.14-0+deb7u1 ii debconf 1.5.49 ii adduser 3.113+nmu3 ii ffmpeg 8:1.0.10-dmo1 % lsmod | grep usb snd_usb_audio 135567 0 snd_usbmidi_lib 27460 1 snd_usb_audio snd_rawmidi 26913 2 snd_usbmidi_lib,snd_seq_midi snd_hwdep 17205 2 snd_usb_audio,snd_hda_codec snd_pcm 88538 5 snd_usb_audio,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller snd 69285 11 snd_usb_audio,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_usbmidi_lib,snd_hda_codec,snd_hda_intel,snd_seq_device usbhid 48607 0 hid 102250 2 hid_generic,usbhid usbcore 199448 8 snd_usb_audio,uvcvideo,snd_usbmidi_lib,ehci_hcd,ehci_pci,usbhid,cdc_acm,xhci_hcd usb_common 12440 1 usbcore [syslog1] Oct 20 15:53:48 zaphod motion: [1] avcodec_open - could not open codec: Success Oct 20 15:53:48 zaphod motion: [1] ffopen_open error creating (new) file [/var/www/motion_view/workdir/01-20141020155348.avi]: Success Oct 20 15:53:48 zaphod motion: [1] Calling vid_close() from motion_cleanup Oct 20 15:53:48 zaphod motion: [1] Closing video device /dev/video1 Oct 20 15:53:49 zaphod motion: [0] Motion thread 1 restart Oct 20 15:53:49 zaphod motion: [1] Thread 1 started Oct 20 15:53:49 zaphod motion: [1] cap.driver: "uvcvideo" Oct 20 15:53:49 zaphod motion: [1] cap.card: "Microsoft® LifeCam HD-5000" Oct 20 15:53:49 zaphod motion: [1] cap.bus_info: "usb-0000:00:14.0-4" Oct 20 15:53:49 zaphod motion: [1] cap.capabilities=0x84000001 Oct 20 15:53:49 zaphod motion: [1] - VIDEO_CAPTURE Oct 20 15:53:49 zaphod motion: [1] - STREAMING Oct 20 15:53:49 zaphod motion: [1] Test palette MJPG (1280x720) Oct 20 15:53:49 zaphod motion: [1] Using palette MJPG (1280x720) bytesperlines 0 sizeimage 1843200 colorspace 00000008 Oct 20 15:53:49 zaphod motion: [1] found control 0x00980900, "Brightness", range 30,255 Oct 20 15:53:49 zaphod motion: [1] #011"Brightness", default 133, current 196 Oct 20 15:53:49 zaphod motion: [1] found control 0x00980901, "Contrast", range 0,10 Oct 20 15:53:49 zaphod motion: [1] #011"Contrast", default 5, current 5 Oct 20 15:53:49 zaphod motion: [1] found control 0x00980902, "Saturation", range 0,200 Oct 20 15:53:49 zaphod motion: [1] #011"Saturation", default 83, current 83 Oct 20 15:53:49 zaphod motion: [1] mmap information: Oct 20 15:53:49 zaphod motion: [1] frames=4 Oct 20 15:53:49 zaphod motion: [1] 0 length=1843200 Oct 20 15:53:49 zaphod motion: [1] 1 length=1843200 Oct 20 15:53:49 zaphod motion: [1] 2 length=1843200 Oct 20 15:53:49 zaphod motion: [1] 3 length=1843200 Oct 20 15:53:49 zaphod motion: [1] Resizing pre_capture buffer to 1 items Oct 20 15:53:49 zaphod motion: [1] Started stream webcam server in port 8383 Oct 20 15:53:50 zaphod kernel: [14349.011077] motion[7002]: segfault at 64d5f4007 ip 00007fd39e38f50a sp 00007fd3949ea3c8 error 4 in libjpeg.so.8.4.0[7fd39e371000+3a000] [syslog2] [ 17.908261] input: UVC Camera (046d:08ca) as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/input/input9 [ 17.912120] input: Microsoft\xffffffc2\xffffffae\xffffffae LifeCam HD-5000 as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/input/input10 [ 17.912203] usbcore: registered new interface driver uvcvideo -- Motion configuration changes: v4l2_palette 2 width 1280 height 720 framerate 25 minimum_motion_frames 2 pre_capture 3 post_capture 3 quality 95 ffmpeg_video_codec mpeg4 webcam_port 8383 webcam_quality 95 webcam_maxrate 25 webcam_localhost off control_port 8385 sql_log_image on sql_log_snapshot on sql_log_mpeg on sql_log_timelapse on -- Best regards, Henric Blomgren -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org