[Community] [News] GTA04 Camera

Dr. H. Nikolaus Schaller hns at goldelico.com
Tue Apr 16 10:50:54 CEST 2013


Hi,

Am 16.04.2013 um 02:37 schrieb Benjamin Deering:

> On 04/10/2013 06:58 AM, Radek Polak wrote:
>> 
>> On Tuesday, April 09, 2013 06:46:35 PM Dr. H. Nikolaus Schaller wrote:
>>  
>> > Hi,
>> > the camera is finally starting to work!
>>  
> That is great news!
>> 
>>  
>> > Now as the basics are here, I am curious which distro will be the first to
>> > come with a camera application :)
>>  
>> 
> SHR has cheese (gnome camera program) available in the build tree.  I built it and it runs on my GTA04, but it does not detect the camera.

I think this v42l subdevice arrangement is quite new so that autodetection for SoC cameras may not work.

> 
> I did some research and found that I need to get gstreamer working before cheese can work.  After running the media-ctl commands from the camera demo, I tried the following command:
> 
> gst-launch -v v4l2src device=$(media-ctl -e "OMAP3 ISP CCDC output") --gst-debug=v4l2:5
> 
> Here is what seems to be the  important part:
> 
> 0:00:00.327880859  1651  0x1962b40 DEBUG                   v4l2 gstv4l2object.c:710:gst_v4l2_set_defaults:<v4l2src0> tv_norm=0x0, norm=(nil)
> 0:00:00.328399658  1651  0x1962b40 DEBUG                   v4l2 v4l2_calls.c:579:gst_v4l2_get_norm:<v4l2src0> getting norm
> 0:00:00.328918457  1651  0x1962b40 DEBUG                   v4l2 v4l2_calls.c:593:gst_v4l2_get_norm: Failed to get the current norm for device /dev/video2
> 0:00:00.329559326  1651  0x1962b40 DEBUG                   v4l2 v4l2_calls.c:818:gst_v4l2_get_input:<v4l2src0> trying to get input
> 0:00:00.330139160  1651  0x1962b40 DEBUG                   v4l2 v4l2_calls.c:828:gst_v4l2_get_input:<v4l2src0> input: 0
> 0:00:00.331420898  1651  0x1962b40 DEBUG                   v4l2 gstv4l2object.c:1068:gst_v4l2_object_fill_format_list:<v4l2src0> getting src format enumerations
> 0:00:00.332916259  1651  0x1962b40 WARN                    v4l2 gstv4l2object.c:1122:gst_v4l2_object_fill_format_list:<v4l2src0> error: Failed to enumerate possible video formats device '/dev/video2' can work with
> 0:00:00.334136963  1651  0x1962b40 WARN                    v4l2 gstv4l2object.c:1122:gst_v4l2_object_fill_format_list:<v4l2src0> error: Failed to get number 0 in pixelformat enumeration for /dev/video2. (25 - Inappropriate ioctl for device)
> ERROR: Pipeline doesn't want to pause.
> ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to enumerate possible video formats device '/dev/video2' can work with
> Additional debug info:
> gstv4l2object.c(1122): gst_v4l2_object_fill_format_list (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
> Failed to get number 0 in pixelformat enumeration for /dev/video2. (25 - Inappropriate ioctl for device)

Hm. I have also seen that mplayer reports some failing ioctls.

I think the v42l-subdev framework is not yet mature enough to cover all possible situations.
Since the ioctl fails for /dev/video2 this is not "our" driver but a general issue of the "OMAP3 ISP CCDC output".

So you should try to configure gstreamer manually for SXGA resolution and UYVY format. You may also have
to rotate the image by 90 degrees to compensate for the camera orientation (it is in portrait orientation in the GTA02 case but is read in landscape orientation)

> 
> This thread deals with getting gstreamer working with another omap_isp type camera.  It looks like some methods were missing from the driver initially?:
> 
> http://e2e.ti.com/support/dsp/omap_applications_processors/f/447/t/240296.aspx
> 

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

So I think you have to specify more paramerters explicitly (like I did for mplayer) since the drivers do not report them automaticaly.

BR,
Nikolaus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.goldelico.com/pipermail/community/attachments/20130416/2451192b/attachment.html>


More information about the Community mailing list