Quantcast

Caspa camera without DSP

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Caspa camera without DSP

zafrullahsyed
Hello all,

Hi, im trying to get the caspa camera working with yocto 1.4.2 (dylan) on 3.5.7 linux kernel but with no success.

I need to stream a video using gstreamer without DSP. There are many resources to work gstreamer with DSP but I should not use DSP. Any inputs where I am doing wrong?


When I give this command LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so mplayer tv:// -tv driver=v4l2:device=/dev/video6 -vo png -fps 1 , it is successfully capturing frames but only problem with Gstreamer.

gstreamer pipeline:

root@overo:~# gst-launch-0.10 -v v4l2src device=/dev/video6 queue-size=8 ! video/x-raw-yuv,format=\(fourcc\)UYVY,width=720,height=480 ! ffmpegcolorspace ! tcpserversink host=192.168.1.104 port=5000
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to enumerate possible video formats device '/dev/video6' can work with
Additional debug info:
/home/siguser/yocto-28-11/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gst-plugins-good/0.10.31-r8/gst-plugins-good-0.10.31/sys/v4l2/gstv4l2object.c(1122): gst_v4l2_object_fill_format_list (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Failed to get number 0 in pixelformat enumeration for /dev/video6. (25 - Inappropriate ioctl for device)
Setting pipeline to NULL ...
Freeing pipeline ...


root@overo:~# gst-launch-0.10 v4l2src --gst-debug=0 device=/dev/video6 ! video/x-raw-yuv,width=640,height=480,framerate=\(fraction\)2/1 ! ffmpegcolorspace ! smokeenc keyframe=8 qmax=40 ! udpsink host=192.168.1.104 port=5000
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to enumerate possible video formats device '/dev/video6' can work with
Additional debug info:
/home/siguser/yocto-28-11/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gst-plugins-good/0.10.31-r8/gst-plugins-good-0.10.31/sys/v4l2/gstv4l2object.c(1122): gst_v4l2_object_fill_format_list (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Failed to get number 0 in pixelformat enumeration for /dev/video6. (25 - Inappropriate ioctl for device)
Setting pipeline to NULL ...
Freeing pipeline ...

I followed this link http://gumstix.8.x6.nabble.com/Caspa-on-Overo-FE-3-5-kernel-td4966351.html and set width and height properly but again gstreamer gives the same error:

root@overo:~# gst-launch -v v4l2src device=/dev/video6 ! video/x-raw-yuv, width=734, height=471, framerate=\(fraction\)1/1 ! ffmpegcolorspace ! video/x-raw-yuv, format=\(fourcc\)UYVY ! jpegenc ! multipartmux ! tcpserversink host=192.168.1.104 port=5000
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to enumerate possible video formats device '/dev/video6' can work with
Additional debug info:
/home/siguser/yocto-28-11/build/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/gst-plugins-good/0.10.31-r8/gst-plugins-good-0.10.31/sys/v4l2/gstv4l2object.c(1122): gst_v4l2_object_fill_format_list (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Failed to get number 0 in pixelformat enumeration for /dev/video6. (25 - Inappropriate ioctl for device)
Setting pipeline to NULL ...
Freeing pipeline ...


root@overo:~# lsmod
Module                  Size  Used by
ipv6                  252525  24 
libertas_sdio          16484  0 
libertas               99993  1 libertas_sdio
firmware_class          6920  2 libertas_sdio,libertas
cfg80211              172644  1 libertas
rfkill                 17524  2 cfg80211
lib80211                5138  1 libertas
mt9v032                 7169  1 
omap3_isp             132270  0 
v4l2_common             8681  2 omap3_isp,mt9v032
videodev               98880  3 omap3_isp,mt9v032,v4l2_common
ads7846                10528  0 
media                  12853  3 omap3_isp,mt9v032,videodev

root@overo:~# LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so v4l2-ctl -d 6 --list-formats
ioctl: VIDIOC_ENUM_FMT
Index       : 0
Type        : Video Capture
Pixel Format: 'RGB3' (emulated)
Name        : RGB3

Index       : 1
Type        : Video Capture
Pixel Format: 'BGR3' (emulated)
Name        : BGR3

Index       : 2
Type        : Video Capture
Pixel Format: 'YU12' (emulated)
Name        : YU12

Index       : 3
Type        : Video Capture
Pixel Format: 'YV12' (emulated)
Name        : YV12



-- 
Regards,
Zafrullah Syed


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Caspa camera without DSP

zafrullahsyed
Hello all,

I am facing problems with correct media-ctl commands to my caspa vl camera mt9v032 ?

I guess after entity 12 are camera properties, properties of all devices Media information http://pastebin.com/xKrQMzcL 

- entity 12: OMAP3 ISP resizer output (1 pad, 1 link)
             type Node subtype V4L
             device node name /dev/video6
        pad0: Sink
                <- "OMAP3 ISP resizer":1 [ENABLED]
 
- entity 13: OMAP3 ISP AEWB (1 pad, 1 link)
             type V4L2 subdev subtype Unknown
             device node name /dev/v4l-subdev5
        pad0: Sink
                <- "OMAP3 ISP CCDC":2 [ENABLED,IMMUTABLE]
 
- entity 14: OMAP3 ISP AF (1 pad, 1 link)
             type V4L2 subdev subtype Unknown
             device node name /dev/v4l-subdev6
        pad0: Sink
                <- "OMAP3 ISP CCDC":2 [ENABLED,IMMUTABLE]
 
- entity 15: OMAP3 ISP histogram (1 pad, 1 link)
             type V4L2 subdev subtype Unknown
             device node name /dev/v4l-subdev7
        pad0: Sink
                <- "OMAP3 ISP CCDC":2 [ENABLED,IMMUTABLE]
 
- entity 16: mt9v032 3-005c (1 pad, 1 link)
             type V4L2 subdev subtype Unknown
             device node name /dev/v4l-subdev8
        pad0: Source
                [fmt:SGRBG10/752x480
                 crop:(1,5)/752x480]
                -> "OMAP3 ISP CCDC":0 [ENABLED]

media-ctl -r -l '"mt9v032 3-005c":0->"OMAP3 ISP CCDC":0[1], "OMAP3 ISP CCDC":2->"OMAP3 ISP preview":0[1], "OMAP3 ISP preview":1->"OMAP3 ISP resizer":0[1], "OMAP3 ISP resizer":1->"OMAP3 ISP resizer output":0[1]'

media-ctl -V '"mt9v032 3-005c":0[SGRBG10 752x480], "OMAP3 ISP CCDC":2[SGRBG10 752x480], "OMAP3 ISP preview":1[YUYV 752x480], "OMAP3 ISP resizer":1[YUYV 752x480]'

Are these correct commands?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Caspa camera without DSP

bhamadicharef
Hi zafrullahsyed

I never managed to get CASPA to stream with GSTreamer either.
I also get some format conversion issues. When I used USB cameras
it all works smoothly !

When I compare the source code of the MT9V032 and the MT9M001
on which it is based, there are some structures in the drivers which
are missing in the MT9V032. "static const structu mt9m001_datafmt"
for colour_fmts and monochrome_fmts. I beleive that when gstreamer
query the driver, it does not get any infos about the format and stops.

Has gumstix got any OS image (with 3.0, 3.2 or 3.5) with the CAPSA
camera working with gstreamer ? I am amazed that this has never
been solved !

Brahim
Loading...