[Community] [News] GTA04 Camera

Dr. H. Nikolaus Schaller hns at goldelico.com
Thu Apr 25 19:22:14 CEST 2013


Am 25.04.2013 um 04:35 schrieb Benjamin Deering:

>> Yes, the last post there indicates to search for "gstreamer" "yavta". There I found [http://labs.isee.biz/index.php/How_to_setup_tvp5151_video_decoder#Play_with_TVP5151]
>>  gst-launch-0.10 -v v4l2src device=/dev/video2 queue-size=1 ! video/x-raw-yuv,format=\(fourcc\)UYVY,width=720,height=628 ! omapdmaifbsink
> I didn't have much luck with this.  I found an omap3isp patch that got me a little further, but I think there are still other issues.  https://patchwork.kernel.org/patch/1242121/  It seems like gstreamer verifies manual settings by asking the driver if it is ok?

Yes, there appears to be a lot of ioctl() communication between user space and drivers. And depending on how graceful the user space tool handles errors or not available functions, we may have more or less success.

> I spent some time with the camera-demo script and I think I found out something useful.  If I bypass the omap ISP preview pad, the resizer works:
> media-ctl -r                                                                            
> media-ctl -v -l '"ov9655 2-0030":0->"OMAP3 ISP CCDC":0[1]'                              
> media-ctl -v -l '"OMAP3 ISP CCDC":1->"OMAP3 ISP resizer":0[1]'                
> media-ctl -v -l '"OMAP3 ISP resizer":1->"OMAP3 ISP resizer output":0[1]'
> media-ctl -v -V '"ov9655 2-0030":0 [UYVY2X8 1280x1024]'                                                     
> media-ctl -v -V '"OMAP3 ISP CCDC":1 [UYVY2X8 1280x1024]'                                                    
> media-ctl -v -V '"OMAP3 ISP resizer":0 [UYVY 1280x1024]'                                                    
> media-ctl -v -V '"OMAP3 ISP resizer":1 [UYVY 320x256]'                                                      
> mplayer -v tv:// -vf rotate=2,swapuv -tv driver=v4l2:device=$(media-ctl -e "OMAP3 ISP resizer output"):outfmt=uyvy:width=320:height=256 -vo x11


> This discussion http://www.spinics.net/lists/linux-media/msg40786.html and a few other places make it look like omap3isp does some automatic cropping and links that use the cropped data need to know to what size it was cropped. 
> for vga output, I used:
> media-ctl -v -V '"OMAP3 ISP resizer":1 [UYVY 640x475]'  
> mplayer -v tv:// -vf rotate=2,swapuv -tv driver=v4l2:device=$(media-ctl -e "OMAP3 ISP resizer output"):outfmt=uyvy:width=640:height=475 -vo x11
> and for sxga I used:
> media-ctl -v -V '"OMAP3 ISP resizer":1 [UYVY 1280x1014]'  
> mplayer -v tv:// -vf rotate=2,swapuv -tv driver=v4l2:device=$(media-ctl -e "OMAP3 ISP resizer output"):outfmt=uyvy:width=1280:height=1014 -vo x11
> It is a pretty small finding, but maybe it will give someone else an idea.

I think we should document all this on the Kernel wiki:


-- hns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.goldelico.com/pipermail/community/attachments/20130425/d401b872/attachment.html>

More information about the Community mailing list