From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.181]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 8F81BE00A77 for ; Wed, 5 Mar 2014 09:44:08 -0800 (PST) Received: by mail-pd0-f181.google.com with SMTP id p10so1323417pdj.26 for ; Wed, 05 Mar 2014 09:44:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=txzBFIl1bOCXaCJUK3wQexuz3p/1ZIQQRgxKfmmaiJM=; b=XTGFxZX3oQo1wcvrZ+zaj+8viFrHZHiwoJSBHMMuq3cbssWNG2TbWxHxJ8ievk2nyL Yoqqz27qFD8WgMTS/uFbKQVeo+gPX1UcR6jxCKRwnWKj9V8ZNsiTFxQ0R/foBRL1+l4X rO0lMbVWM/vABhmWQ4k1MEg0/O3oZ0J0+xRNw7ll10Fk3YGDx2Riv3bkn9mMLNpQEzd8 Pem7UP3KudwATO6nGuE0SZJLT+kZVaJT3SW2F13xFG/6wfob77U3Kc6R1JLf6Dcl5OP9 wBkaSP8YpXMz4dSkFiDaMlQ74nyyaxZg7tJULr2/ri8kcsxE8AIEJKeOvRIAZXu1oqJa mFKw== X-Gm-Message-State: ALoCoQlIWHzUgVO1T/VRxNR9YDQoC/2WQZoLFTaTYrHwBx6R+EmNhoPdQyxeylftLxf9Ie1eY2o2 X-Received: by 10.66.250.161 with SMTP id zd1mr8715804pac.136.1394041448739; Wed, 05 Mar 2014 09:44:08 -0800 (PST) Received: from [192.168.0.53] ([63.226.49.26]) by mx.google.com with ESMTPSA id q7sm10687963pbc.20.2014.03.05.09.44.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Mar 2014 09:44:07 -0800 (PST) Message-ID: <53176264.8030108@boundarydevices.com> Date: Wed, 05 Mar 2014 10:44:04 -0700 From: Eric Nelson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Gary Thomas , "meta-freescale@yoctoproject.org" References: <5315EB25.9020903@mlbassoc.com> In-Reply-To: <5315EB25.9020903@mlbassoc.com> Subject: Re: [meta-fsl-arm] Using gstreamer on Nitrogen6x/SabreLite X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2014 17:44:09 -0000 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Gary, On 03/04/2014 08:03 AM, Gary Thomas wrote: > I have a SabreLite with the OV5642 camera. I'd like to capture > some video and display it on the screen. Here's my gstreamer > pipeline: > > gst-launch -e -vvv mfw_v4lsrc device=/dev/video0 num-buffers=100 typefind=true \ > ! "video/x-raw-yuv, format=(fourcc)I420, width=640, height=480, framerate=(fraction)30/1" \ > ! ffmpegcolorspace \ > ! ximagesink > > What I don't understand is why the format from mfw_v4lsrc has to > be I420 when the OV5642 [kernel] driver seems to only support YUYV > (yuyv422)? > > To further confuse, I can grab a frame like this: > yavta -fYUYV -s640x480 -F -c1 /dev/video0 > and the V4l2 subsystem tells me this sensor is YUYV: > root@nitrogen6x:~# v4l2-ctl -d /dev/video0 --list-formats > ioctl: VIDIOC_ENUM_FMT > Index : 0 > Type : Video Capture > Pixel Format: 'YUYV' > Name : This appears to be a bug in the video driver (mxc_v4l2_capture) with respect to enumeration (not a strong point for the drivers). The driver (mxc_v4l2_capture) appears to support a wide variety of pixel formats through the magic of the IPU. The mfw_v4lsrc plugin appears to be hard-coded to support only UYVY and I420 on i.MX6 though (and NV12 on i.MX51). Note that your pipeline is very expensive, and would benefit from using a sink that can support YUV natively (mfw_isink, mfw_v4lsink) or that can do the conversion in hardware (glimagesink). Regards, Eric