Motion - Support Question 2010x 05x 01x 203913

Problem with image quality or stream authentification

Question

Hi, if i install motion with apt-get (3.2.11.1) i have a great quality of image, but i don't have a stream login. And if i install motion with svn, i have login but a poor quality image. The question is, exist any patch to add login for 3.2.11.1 or a patch to get better quality to the image for svn. Thanks any way.
OUTPUT FOR MOTION 3.2.11.1 INSTALLED BY APT-GET:

camwebtether:~# motion -n
[0] Processing thread 0 - config file /etc/motion/motion.conf
[0] Unknown config option "stream_auth_method"
[0] Unknown config option "stream_authentication"
[0] Unknown config option "webcontrol_authentication"
[0] Motion 3.2.11.1 Started
[0] ffmpeg LIBAVCODEC_BUILD 3412993 LIBAVFORMAT_BUILD 3415808
[0] Thread 1 is from /etc/motion/motion.conf
[0] motion-httpd/3.2.11.1 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] Thread 1 started
[1] cap.driver: "uvcvideo"
[1] cap.card: "Microsoft® LifeCam NX-6000"
[1] cap.bus_info: "usb-0000:00:0f.5-3"
[1] cap.capabilities=0x04000001
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] Supported palettes:
[1] 0: MJPG (MJPEG)
[1] index_format 2 Test palette MJPG (640x480)
[1] Using palette MJPG (640x480) bytesperlines 0 sizeimage 614400 colorspace 00000008
[1] VIDIOC_G_JPEGCOMP not supported but it should be (does your webcam driver support this ioctl?)
[1] found control 0x00980900, "Brightness", range 0,160 
[1]    "Brightness", default 128, current 128
[1] found control 0x00980901, "Contrast", range 5,50 
[1]    "Contrast", default 43, current 43
[1] found control 0x00980902, "Saturation", range 0,150 
[1]    "Saturation", default 48, current 48
[1] found control 0x00980903, "Hue", range -127,127 
[1]    "Hue", default 0, current 0
[1] found control 0x00980910, "Gamma", range 1,5 
[1]    "Gamma", default 3, current 3
[1] mmap information:
[1] frames=4
[1] 0 length=614400
[1] 1 length=614400
[1] 2 length=614400
[1] 3 length=614400
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
Corrupt JPEG data: premature end of data segment
[1] Started stream webcam server in port 8081

OUTPUT FOR MOTION TRUNK INSTALLED BY SVN:

camwebtether:~/motionsource/trunk# ./motion -n
[0] [ALR] [ALL] conf_load: Processing thread 0 - config file /usr/local/etc/motion.conf

Message from syslogd@camwebtether at May  1 22:48:13 ...
 motion: [0] [EMG] [ALL] motion_startup: Motion trunkREV511 Started
[0] [EMG] [ALL] motion_startup: Motion trunkREV511 Started
[0] [EMG] [ALL] motion_startup: Logging to syslog
[0] [EMG] [ALL] motion_startup: Using log type (ALL) log level (ERR)

Message from syslogd@camwebtether at May  1 22:48:13 ...
 motion: [0] [EMG] [ALL] motion_startup: Logging to syslog

Message from syslogd@camwebtether at May  1 22:48:13 ...
 motion: [0] [EMG] [ALL] motion_startup: Using log type (ALL) log level (ERR)
[0] [ERR] [ALL] main: Thread 1 is from /usr/local/etc/motion.conf
[0] [ALR] [STR] httpd_run: motion-httpd testing : IPV4 addr: 0.0.0.0 port: 8080
[0] [ALR] [STR] httpd_run: motion-httpd Bound : IPV4 addr: 0.0.0.0 port: 8080
[0] [ALR] [STR] httpd_run: motion-httpd/trunkREV511 running, accepting connections
[0] [ALR] [STR] httpd_run: motion-httpd: waiting for data on 0.0.0.0 port TCP 8080
[1] [ALR] [VID] vid_v4lx_start: Using videodevice /dev/video0 and input 8
[1] [ERR] [VID] v4l2_get_capability: 
------------------------
cap.driver: "uvcvideo"
cap.card: "Microsoft® LifeCam NX-6000"
cap.bus_info: "usb-0000:00:0f.5-3"
cap.capabilities=0x04000001
------------------------
[1] [ERR] [VID] v4l2_get_capability: - VIDEO_CAPTURE
[1] [ERR] [VID] v4l2_get_capability: - STREAMING
[1] [ERR] [VID] v4l2_set_pix_format: Config palette index 17 (YU12) doesn't work.
[1] [ERR] [VID] v4l2_set_pix_format: Supported palettes:
[1] [ERR] [VID] v4l2_set_pix_format: (0) MJPG (MJPEG)
[1] [ERR] [VID] v4l2_set_pix_format: 0 - MJPEG (compressed : 1) (0x47504a4d)
[1] [ERR] [VID] v4l2_set_pix_format Selected palette MJPG
[1] [ERR] [VID] v4l2_do_set_pix_format: Testing palette MJPG (640x480)
[1] [ERR] [VID] v4l2_do_set_pix_format: Using palette MJPG (640x480) bytesperlines 0 sizeimage 614400 colorspace 00000008
[1] [ERR] [VID] v4l2_scan_controls: found control 0x00980900, "Brightness", range 0,160 
[1] [ERR] [VID] v4l2_scan_controls:    "Brightness", default 128, current 128
[1] [ERR] [VID] v4l2_scan_controls: found control 0x00980901, "Contrast", range 5,50 
[1] [ERR] [VID] v4l2_scan_controls:    "Contrast", default 43, current 43
[1] [ERR] [VID] v4l2_scan_controls: found control 0x00980902, "Saturation", range 0,150 
[1] [ERR] [VID] v4l2_scan_controls:    "Saturation", default 48, current 48
[1] [ERR] [VID] v4l2_scan_controls: found control 0x00980903, "Hue", range -127,127 
[1] [ERR] [VID] v4l2_scan_controls:    "Hue", default 0, current 0
[1] [ERR] [VID] v4l2_scan_controls: found control 0x00980910, "Gamma", range 1,5 
[1] [ERR] [VID] v4l2_scan_controls:    "Gamma", default 3, current 3
[1] [ALR] [VID] vid_v4lx_start: Using V4L2
[1] [ERR] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items
Not a JPEG file: starts with 0x14 0x00

Message from syslogd@camwebtether at May  1 22:48:15 ...
 motion: [1] [EMG] [STR] http_bindsock: motion-stream testing : IPV4 addr: 0.0.0.0 port: 8081
[1] [EMG] [STR] http_bindsock: motion-stream testing : IPV4 addr: 0.0.0.0 port: 8081

Message from syslogd@camwebtether at May  1 22:48:15 ...
 motion: [1] [EMG] [STR] http_bindsock: motion-stream Bound : IPV4 addr: 0.0.0.0 port: 8081
[1] [EMG] [STR] http_bindsock: motion-stream Bound : IPV4 addr: 0.0.0.0 port: 8081

Environment

Motion version: Trunk511
ffmpeg version: SVN-r0.5.1-4:0.5.1-3
Libraries: ffmpeg, mysql, postgresql
Server OS: Debian, kernel 2.6.32
-- PabloGNU - 01 May 2010

Follow Up

Hi Pablo ,

I see in both logs a "warning" related to issues with jpeg frame decoding, are you using libv4l ?

Could you tell me more about that image quality problem ?

- only happens in saved files and stream or only in stream ?

- could you attach a screenshot ?

- Please recheck values for quality of stream and jpg in config files.

About your question it's easier to fix quality image in trunk than backport new features to 3.2.11.1

AngelCarpintero - 02 May 2010

Answer

Topic revision: r3 - 26 Sep 2014, TosiaraT
Copyright © 1999-2017 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.