Re: Using MT9P031 digital sensor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Gary,

On Tuesday 08 November 2011 13:52:25 Gary Thomas wrote:
> On 2011-11-08 05:30, Javier Martinez Canillas wrote:
> > On Tue, Nov 8, 2011 at 1:20 PM, Gary Thomas wrote:
> >> On 2011-11-04 04:37, Laurent Pinchart wrote:
> >>> On Tuesday 01 November 2011 19:52:49 Gary Thomas wrote:
> >>>> I'm trying to use the MT9P031 digital sensor with the Media Controller
> >>>> Framework.  media-ctl tells me that the sensor is set to capture using
> >>>> SGRBG12  2592x1944
> >>>> 
> >>>> Questions:
> >>>> * What pixel format in ffmpeg does this correspond to?
> >>> 
> >>> I don't know if ffmpeg supports Bayer formats. The corresponding fourcc
> >>> in V4L2 is BA12.
> >> 
> >> ffmpeg doesn't seem to support these formats
> >> 
> >>> If your sensor is hooked up to the OMAP3 ISP, you can then configure
> >>> the pipeline to include the preview engine and the resizer, and
> >>> capture YUV data
> >>> at the resizer output.
> >> 
> >> I am using the OMAP3 ISP, but it's a bit unclear to me how to set up the
> >> pipeline
> > 
> > Hi Gary,
> > 
> > I'm also using another sensor mtv9034 with OMAP3 ISP, so maybe I can help
> > you.
> > 
> >> using media-ctl (I looked for documentation on this tool, but came up
> >> dry - is there any?)
> >> 
> >> Do you have an example of how to configure this using the OMAP3 ISP?
> > 
> > This is how I configure the pipeline to connect the CCDC with the
> > Previewer and Resizer:
> > 
> > ./media-ctl -l '"mt9v032 3-005c":0->"OMAP3 ISP CCDC":0[1]'
> > ./media-ctl -l '"OMAP3 ISP CCDC":2->"OMAP3 ISP preview":0[1]'
> > ./media-ctl -l '"OMAP3 ISP preview":1->"OMAP3 ISP resizer":0[1]'
> > ./media-ctl -l '"OMAP3 ISP resizer":1->"OMAP3 ISP resizer output":0[1]'
> > ./media-ctl -f '"mt9v032 3-005c":0[SGRBG10 752x480]'
> > ./media-ctl -f  '"OMAP3 ISP CCDC":0 [SGRBG10 752x480]'
> > ./media-ctl -f  '"OMAP3 ISP CCDC":1 [SGRBG10 752x480]'
> > ./media-ctl -f  '"OMAP3 ISP preview":0 [SGRBG10 752x479]'
> > ./media-ctl -f  '"OMAP3 ISP resizer":0 [YUYV 734x471]'
> > ./media-ctl -f  '"OMAP3 ISP resizer":1 [YUYV 640x480]'
> > 
> > Hope it helps,
> 
> Thanks, I'll give this a try.
> 
> I assume that your sensor is probably larger than 752x480 (the mt9p031
> is 2592x1944 raw) and that setting the smaller frame size enables some
> scaling and/or cropping in the driver?

The mt9v034 is a wide VGA 752x480 sensor if I'm not mistaken. You should 
modify the resolutions in the above commands according to your sensor. Note 
that the CCDC crops online line when outputting data to the preview engine, 
and that the preview engine crops 18 columsn and 8 lines. You can then scale 
the image by modifying the resizer output size.

-- 
Regards,

Laurent Pinchart
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux