Camera board

Strange Issues with camera module

3 128
xefil  
Hi to all,

I'm back having some fun with my camera module. I've noticed a strange behaviour.
The installation works well, I'm using Banana Pi with Raspbian image (taken from here).
Under X (lxde), if I use VLC to connect to local device /dev/video0, I can get a working connection on the camera with current stream. Until here all ok.
But if I use 'motion' (installed via apt-get) or 'mjpg_streamer' (compiled via GitHub) and try to open their webserver, the stream has a very strange behaviour.
The first image captured on the camera as soon the service starts, becomes a frame seen in loop every 1-2 second(s).
I.e. I turn the service on and I've an object in the middle. The stream shows me the object correctly. As soon I move the object, you can see the object moving, but every 1-2 seconds a frame appear showing me the object in the middle. The result is in a flickering video, showing me what happen in front of the camera but with those frames of a still first image in loop.
Ideas why?

Thanks!

Simon

xefil  
Ok, at the end seems more a palette issue.
Now with motion works good.
Does someone has best settings on motion to get good quality image?
I'm using 'v4l2_palette 8' (YU12) in (1280x720)

[0] Processing thread 0 - config file /etc/motion/motion.conf
[0] Motion 3.2.12 Started
[0] ffmpeg LIBAVCODEC_BUILD 3482368 LIBAVFORMAT_BUILD 3478785
[0] Thread 1 is from /etc/motion/motion.conf
[1] Thread 1 started
[0] motion-httpd/3.2.12 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] cap.driver: "sun4i_csi"
[1] cap.card: "sun4i_csi"
[1] cap.bus_info: "sun4i_csi sun4i_csi.0"
[1] cap.capabilities=0x05000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] Test palette YU12 (1280x720)
[1] Using palette YU12 (1280x720) bytesperlines 0 sizeimage 0 colorspace 00000000
[1] found control 0x00980911, "Exposure", range -4,4
[1]     "Exposure", default 0, current 0
[1] found control 0x08000000, "FlashLight Mode", range 0,4
[1]     "FlashLight Mode", default 0, current 0
[1] mmap information:
[1] frames=4
[1] 0 length=1382400
[1] 1 length=1382400
[1] 2 length=1382400
[1] 3 length=1382400
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
[1] Started stream webcam server in port 8081
[1] Resizing pre_capture buffer to 3 items

The quality is not so good anyway.
Suggestions?

Thanks,

Simon

xefil  

some more news.
I've noticed that using a resolution of 640x480 i got a good bightness (image/stream is clean) but I've the flickering effect. If I use a resolution of 1280x720, the stream is OK (no flickering with still image) but the stream/image is very dark!

Ideas?

Thanks, Simon

xefil  
Ok, forget it, again flickering effect in any resolution

You have to log in before you can reply Login | Sign Up

Points Rules