Hi, On Wed, 11 Mar 2015, Ayhan KÃ~\Ã~GÃ~\KMANÄ°SA wrote:
> Hi Guennadi, > > My sensor Color filter array is RGB Bayer. Can i get image values and save > in any image format using v4l2? The kernel v4l2 doesn't do any pixel format conversions. I'm not sure, but check libv4l, it probably supports Bayer format conversions in the meantime. You just have to pick up your correct colour order. gstreamer might be able to do that too. Thanks Guennadi > > Thanks, regards. > > --------------------------------------------------------------------------------------------------- > ArÅ. Gör. Ayhan KÃÃÃKMANÄ°SA > Kocaeli Ãniversitesi, GömÃŒlÃŒ Sistemler ve GörÃŒntÃŒleme Sistemleri > Laboratuvarı > > Res. Asst. Ayhan KÃÃÃKMANÄ°SA > Kocaeli University, Laboratory of Embedded and Vision Systems > > 2015-03-09 17:06 GMT+02:00 Ayhan KÃÃÃKMANÄ°SA > <ayhan.kucukman...@gmail.com>: > > > Hi Guennadi, > > > > Thanks for your quick reply. I solved my width problem. In the attachment > > test pattern and normal camera image that i can get now. I think problem > > yuv / bayer conversion problem that you said before. > > > > I get images using mplayer like that : mplayer tv:// -tv > > driver=v4l2:width=752:height=480:device=/dev/video0:fps=10 -vo jpeg > > And using mpeg-streamer like that : sudo ./mjpg_streamer -i > > "/usr/local/lib/input_uvc.so -y -d /dev/video0 -r 752x480" -o > > "/usr/local/lib/output_http.so -w ./www -p 5000" > > now im trying to get images with code using v4l2(using derek molloy code > > on his web page). In the attachment there is my code. But i always get this > > error : Error 22, Invalid argument. > > I tried to change "fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_RGB24". But i > > couldnt solve problem. > > > > > > [image: Satır içi resim 1] > > > > > > > > --------------------------------------------------------------------------------------------------- > > ArÅ. Gör. Ayhan KÃÃÃKMANÄ°SA > > Kocaeli Ãniversitesi, GömÃŒlÃŒ Sistemler ve GörÃŒntÃŒleme Sistemleri > > Laboratuvarı > > > > Res. Asst. Ayhan KÃÃÃKMANÄ°SA > > Kocaeli University, Laboratory of Embedded and Vision Systems > > > > 2015-03-08 22:38 GMT+02:00 Guennadi Liakhovetski <g.liakhovet...@gmx.de>: > > > >> Hi, > >> > >> On Sun, 8 Mar 2015, Ayhan KÃ~\Ã~GÃ~\KMANðSA wrote: > >> > >> > Hi Guennadi, > >> > > >> > Previously i asked you a problem about accesing camera i2c bus. I solved > >> > camera i2c detect problem. Now i can get images using mplayer and v4l2 > >> lib. > >> > But i couldnt get right images. I try to get test pattern but when i get > >> > image that in attachment. Could you give an advice about this problem? > >> > >> The first problem, that appears in your image is geometry. There seem to > >> be more pixels in the image than you think there are. Also, I don't know > >> what your test image should look like, but I doubt it should be that pink. > >> So, looks like you also wrongly decode pixels. Maybe these two problems > >> are related - your bytes-per-pixel is wrong, so the width is wrong and the > >> pixel format too. > >> > >> Thanks > >> Guennadi > >> > >> > > >> > Thanks. > >> > > >> > > >> > > >> > > >> --------------------------------------------------------------------------------------------------- > >> > Arà . Gör. Ayhan Kà à à KMANðSA > >> > Kocaeli à niversitesi, GömÃÅlÃÅ Sistemler ve > >> > GörÃÅntÃÅleme Sistemleri > >> > Laboratuvarñ > >> > > >> > Res. Asst. Ayhan Kà à à KMANðSA > >> > Kocaeli University, Laboratory of Embedded and Vision Systems > >> > > >> > > > > > -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html