Package: motion Version: 3.2.12-3.4 Severity: normal Dear Maintainer,
I have 2 different 2Mpixel USB cameras for which motion generates "color" images that appear grayscale except that there are areas of color offset horizontally from where the colored areas of the scene are when I set it to use the jpeg pixel format. The jpeg format is required to get reasonable frame rates at high resolution. After addding my own debug statements to the code to determine which sections of code are running & what variable values are set I determined I needed to study YUV420 format some. Upon doing so I found in Wikipedia that YUV420 uses both horizontal & vertical downsampling of chroma. My debug sttements, however, told me that the program was not doing horizontal downsampling, even though it insisted on YUV420p video pallette (first thing in v4l2_next is fatal error if not 420p). Horizontal downsampling was not being done because hdown = 0. So, just for test purposes I switched the hdown == 0 & hdown == 1 if/else conditions in the "Horizontal downsampling of chroma" section of decode_jpeg_raw in jpegutils.c. With that done & recompiled both cameras now yield proper color images/videos with the jpeg format from the camera. I do not fully understand this code & I am sure what I did is not the correct fix, but it fixed my problem for now. :~) :~) It appears to me that hdown is meant to indicate horizontal scaling of the image as a whole, so perhaps another variable needs to be used to decide on chroma downsampling--or maybe another variable in addition to hdown (in case the image is being scaled as well as needing chroma downsampling)? -- System Information: Debian Release: 7.4 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Kernel: Linux 3.2.0-4-686-pae (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages motion depends on: ii adduser 3.113+nmu3 ii debconf [debconf-2.0] 1.5.49 ii libavcodec53 6:0.8.12-1 ii libavformat53 6:0.8.12-1 ii libavutil51 6:0.8.12-1 ii libc6 2.13-38+deb7u1 ii libjpeg8 8d-1 ii libmysqlclient18 5.5.35+dfsg-0+wheezy1 ii libpq5 9.1.12-0wheezy1 Versions of packages motion recommends: ii ffmpeg 6:0.8.10-1 Versions of packages motion suggests: pn mysql-client <none> pn postgresql-client <none> -- Configuration Files: /etc/motion/motion.conf [Errno 13] Permission denied: u'/etc/motion/motion.conf' -- debconf information: motion/moved_conf_dir: -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org