[Gta04-owner] Camera scaling down to VGA

Andreas Kemnade andreas at kemnade.info
Sat Jun 8 22:11:57 CEST 2013


On Sat, 2013-06-08 at 21:43 +0200, Dr. H. Nikolaus Schaller wrote: 
> Am 08.06.2013 um 21:03 schrieb Benjamin Deering:
> 
> > 
> >> I do not understand yet, what is going on, I tried capturing images with
> >> this:
> >> http://misc.andi.de1.cc/capture-vga.c
> >> 
> >> and then
> >> convert UYVY:name name.jpg
> >> with the resulting captures. They look synced. Maybe mplayer is not fast
> >> enough with collecting data? I still get nearly 100% cpu load.
> > 
> > 
> > This is from a message I sent to the gta04-community forum a few weeks ago.  This synced up:
> > 
> > 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.
> 
> Ah, that may be the reason for loosing sync.
> 
Hmm, why does only mplayer loose sync and not that capture-vga.c thing.
And QVGA and mplayer also works fine.

> And there are some stubs from the orginal camera driver that are intended to control crop but I did not yet understand how to use it.
> 
> > 
> > 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
> 
> Ok, one has to specify 5 or 10 pixels less.
> 
I do not get any picture with theese lines. Is it with previewer in
between?

Greetings
Andreas Kemnade




More information about the Gta04-owner mailing list