Send Motion-user mailing list submissions to
        motion-user@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/motion-user
or, via email, send a message with subject or body 'help' to
        motion-user-requ...@lists.sourceforge.net

You can reach the person managing the list at
        motion-user-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."


Today's Topics:

   1. Re: Blurred and Low framerate (Colin Law)
   2. Re: Blurred and Low framerate (Andrew Brooks)
   3. Re: Blurred and Low framerate (Steve Goldsmith)


----------------------------------------------------------------------

Message: 1
Date: Wed, 14 Jun 2017 16:18:57 +0100
From: Colin Law <clan...@gmail.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] Blurred and Low framerate
Message-ID:
        <CAL=0gLvoZ7d3FT7nX=iFBHaOM+hEj2M_FVdCx0Z11B-VPPuQ=w...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Good point, Tosiara how does it look if you view it in, for example, vlc?

Colin

On 14 June 2017 at 15:55, Steve Goldsmith <sgj...@gmail.com> wrote:

> This doesn't necessarily pertain to motion, but blurred images are
> indicative of exposure. Most USB cameras will get blurry motion images if
> there's not enough light or it doesn't have IR LEDs for "night vision" if
> it's dark or you have poor lighting. You can change the parameters of a USB
> camera using something like:
>
> # Set exposure_auto (menu): min=0 max=3 default=1
> # 1: Manual Mode
> # 3: Aperture Priority Mode
> v4l2-ctl -c exposure_auto=1
> v4l2-ctl -c focus_auto=0
>
> On Wed, Jun 14, 2017 at 9:50 AM, Andrew Brooks <a...@sat.dundee.ac.uk>
> wrote:
>
>> Hi
>>
>> I've got a Full-HD webcam (USB) but I'm only getting 3 or 4 fps from it
>> with motion.
>> And the moving parts in the images are blurred, i.e. when someone walks
>> into view there's so much motion blur that I cannot see who it is.
>>
>> When I lower the resolution to 352x288 I get 13 fps, still not the 30fps
>> I was hoping for.
>> And even then the moving parts of the images are still blurred.
>>
>> Is this a restriction of motion, the camera, the USB bus or the CPU?
>>
>> Thanks
>>
>> P.S. at full resolution motion reports:
>> [0:motion] [NTC] [ALL] motion_startup: Motion 4.0.1+gitUNKNOWN Started
>> [0:motion] [NTC] [ALL] main: Camera 0 is device: /dev/video0 input -1
>> [1:ml1] [NTC] [ALL] motion_init: Camera 0 started: motion detection
>> Enabled
>> [1:ml1] [NTC] [VID] vid_start: Opening V4L2 device
>> [1:ml1] [NTC] [VID] v4l2_start: Using videodevice /dev/video0 and input -1
>> cap.driver: "uvcvideo"
>> cap.card: "FULL HD 1080P Webcam"
>> cap.bus_info: "usb-0000:00:1d.0-1.2"
>> cap.capabilities=0x84000001
>> [1:ml1] [NTC] [VID] v4l2_get_capability: - VIDEO_CAPTURE
>> [1:ml1] [NTC] [VID] v4l2_get_capability: - STREAMING
>> [1:ml1] [NTC] [VID] v4l2_select_input: name = "Camera 1", type
>> 0x00000002, status 00000000
>> [1:ml1] [NTC] [VID] v4l2_select_input: - CAMERA
>> [1:ml1] [NTC] [VID] v4l2_select_input: Device doesn't support specifying
>> PAL/NTSC norm
>> [1:ml1] [NTC] [VID] v4l2_set_pix_format: Config palette index 17 (YU12)
>> doesn't work.
>> [1:ml1] [NTC] [VID] v4l2_set_pix_format: Supported palettes:
>> [1:ml1] [NTC] [VID] v4l2_set_pix_format: (0) MJPG (MJPEG)
>> [1:ml1] [NTC] [VID] v4l2_set_pix_format: 0 - MJPEG (compressed : 1)
>> (0x47504a4d)
>> [1:ml1] [NTC] [VID] v4l2_set_pix_format: (1) YUYV (YUV 4:2:2 (YUYV))
>> [1:ml1] [NTC] [VID] v4l2_set_pix_format: 1 - YUV 4:2:2 (YUYV) (compressed
>> : 0) (0x56595559)
>> [1:ml1] [NTC] [VID] v4l2_set_pix_format Selected palette YUYV
>> [1:ml1] [NTC] [VID] v4l2_do_set_pix_format: Testing palette YUYV
>> (1920x1080)
>> [1:ml1] [NTC] [VID] v4l2_do_set_pix_format: Using palette YUYV
>> (1920x1080) bytesperlines 3840 sizeimage 4147200 colorspace 00000008
>> [1:ml1] [NTC] [VID] v4l2_scan_controls: found control 0x00980900,
>> "Brightness", range -64,64
>> [1:ml1] [NTC] [VID] v4l2_scan_controls:     "Brightness", default 0,
>> current 0
>> [1:ml1] [NTC] [VID] v4l2_scan_controls: found control 0x00980901,
>> "Contrast", range 0,95
>> [1:ml1] [NTC] [VID] v4l2_scan_controls:     "Contrast", default 0,
>> current 0
>> [1:ml1] [NTC] [VID] v4l2_scan_controls: found control 0x00980902,
>> "Saturation", range 0,100
>> [1:ml1] [NTC] [VID] v4l2_scan_controls:     "Saturation", default 58,
>> current 58
>> [1:ml1] [NTC] [VID] v4l2_scan_controls: found control 0x00980903, "Hue",
>> range -2000,2000
>> [1:ml1] [NTC] [VID] v4l2_scan_controls:     "Hue", default 0, current 0
>> [1:ml1] [NTC] [VID] v4l2_scan_controls: found control 0x00980918, "Power
>> Line Frequency", range 0,2
>> [1:ml1] [NTC] [VID] v4l2_scan_controls:     "Power Line Frequency",
>> default 1, current 1
>> [1:ml1] [NTC] [VID] v4l2_scan_controls: found control 0x00980910,
>> "Gamma", range 100,300
>> [1:ml1] [NTC] [VID] v4l2_scan_controls:     "Gamma", default 165, current
>> 165
>> [1:ml1] [NTC] [EVT] event_new_video Source FPS 5
>> [1:ml1] [NTC] [ALL] motion_detected: Motion detected - starting event 1
>>
>>
>> ------------------------------------------------------------
>> ------------------
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Motion-user mailing list
>> Motion-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/motion-user
>> https://motion-project.github.io/
>>
>> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
>>
>
>
>
> --
> Steven P. Goldsmith
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Motion-user mailing list
> Motion-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
>
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 2
Date: Wed, 14 Jun 2017 16:18:10 +0000
From: Andrew Brooks <a...@sat.dundee.ac.uk>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] Blurred and Low framerate
Message-ID:
        <CAHOfOo1qkFwqa9e4Gjfqoc=av0zycz6mu8ovmrz0mzwnxov...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi
Thanks for replying.
It's the latest code from git, and takes 2% CPU (on a 24-core Xeon) so I
don't think it's the CPU ;-)

I tried the brightness control in the conf file without success.
But thanks to your help I changed exposure_auto with v4l2-ctl and it really
helped!
(focus_auto was suggested but it doesn't have that option)

I then discovered that the camera has both MJPEG and YUYV (4:2:2) and the
latter is limited to 5 fps
so I changed the v4l2_palette config from 17 to 8 and now I get 30 fps
(there's a lot of chroma noise now but at least it works)

Thanks guys!
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 3
Date: Wed, 14 Jun 2017 12:37:04 -0400
From: Steve Goldsmith <sgj...@gmail.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] Blurred and Low framerate
Message-ID:
        <CAFYqzy=9i0caGLyCKXwNcUf-+zKV8U3K8Uk891LpadR1AhE=m...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Haha, yea I should have mentioned MJPEG mode. YUYV is mostly worthless for
videos since it takes so much CPU power to process the frames and the
amount of data required to go over the USB bus. I cover that in one of my
projects https://github.com/sgjava/opencv-chip#mjpg-streamer-performance.
I'm actually able to do computer vision algorithms on a single core $9 SBC
including encoding video and part of that is using an MJPEG USB camera.

On Wed, Jun 14, 2017 at 12:18 PM, Andrew Brooks <a...@sat.dundee.ac.uk>
wrote:

> Hi
> Thanks for replying.
> It's the latest code from git, and takes 2% CPU (on a 24-core Xeon) so I
> don't think it's the CPU ;-)
>
> I tried the brightness control in the conf file without success.
> But thanks to your help I changed exposure_auto with v4l2-ctl and it
> really helped!
> (focus_auto was suggested but it doesn't have that option)
>
> I then discovered that the camera has both MJPEG and YUYV (4:2:2) and the
> latter is limited to 5 fps
> so I changed the v4l2_palette config from 17 to 8 and now I get 30 fps
> (there's a lot of chroma noise now but at least it works)
>
> Thanks guys!
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Motion-user mailing list
> Motion-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
>



-- 
Steven P. Goldsmith
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

------------------------------

Subject: Digest Footer

_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/motion-user


------------------------------

End of Motion-user Digest, Vol 132, Issue 8
*******************************************

Reply via email to