This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM3730 + gstreamer + ov5640 ISP camera problem

Other Parts Discussed in Thread: DM3730

Hi everyone,

    I want to achieve the following functions with my dm3730 board in linux system:   

    "capture->encoder->network(rtp)"

and i used the gstreamer command as follow, and it works fine with a normal usb camera:

gst-launch -v v4l2src device=/dev/video9 !\
ffmpegcolorspace !\
video/x-raw-yuv,format=\(fourcc\)UYVY !\
TIVidenc1 codecName=h264enc engineName=codecServer !\
rtph264pay pt=96 ! udpsink host=192.168.2.32 port=7000  sync=false async=false

but when i replaced with ISP camera (ov5640) , it doesn't work

gst-launch -v v4l2src device=/dev/video2 !\
ffmpegcolorspace !\
video/x-raw-yuv,format=\(fourcc\)UYVY !\
TIVidenc1 codecName=h264enc engineName=codecServer !\
rtph264pay pt=96 ! udpsink host=192.168.2.32 port=7000  sync=false async=false

and print error message as follow:

Setting pipeline to PAUSED ...
libv4lcontrol: error getting username using uid instead: No such file or directory
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video2' cannot capture at 32768x32768
Additional debug info:
gstv4l2object.c(2082): gst_v4l2_object_set_format (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Call to S_FMT failed for YU12 @ 32768x32768: Invalid argument
Setting pipeline to NULL ...
Freeing pipeline ...

I think my ov5640 driver is correct. it's works with android system.

 3060.ov5640_regs.h

1172.ov5640.c

and my kernel version is linux2.6.37, the follow is part of my kernel log:

[    3.061096] Linux media interface: v0.10
[    3.065399] Linux video capture interface: v2.00
[    3.070465] ov5640_init() ENTER
[    3.070495] ov5640_init() EXIT
[    3.071197] omap3isp supply VDD_CSIPHY1 not found, using dummy regulator
[    3.078308] omap3isp supply VDD_CSIPHY2 not found, using dummy regulator
[    3.085540] omap3isp omap3isp: Revision 15.0 found
[    3.090606] omap-iommu omap-iommu.0: isp: version 1.1
[    3.096069] omap3isp omap3isp: hist: DMA channel = 2
[    3.096984] V4L_DEBUG: register OMAP3 ISP CCP2 as v4l-subdev0
[    3.097320] V4L_DEBUG: register OMAP3 ISP CCP2 input as video0
[    3.097656] V4L_DEBUG: register OMAP3 ISP CSI2a as v4l-subdev1
[    3.097961] V4L_DEBUG: register OMAP3 ISP CSI2a output as video1
[    3.098266] V4L_DEBUG: register OMAP3 ISP CCDC as v4l-subdev2
[    3.098602] V4L_DEBUG: register OMAP3 ISP CCDC output as video2
[    3.098907] V4L_DEBUG: register OMAP3 ISP preview as v4l-subdev3
[    3.099243] V4L_DEBUG: register OMAP3 ISP preview input as video3
[    3.099578] V4L_DEBUG: register OMAP3 ISP preview output as video4
[    3.099914] V4L_DEBUG: register OMAP3 ISP resizer as v4l-subdev4
[    3.114440] V4L_DEBUG: register OMAP3 ISP resizer input as video5
[    3.114776] V4L_DEBUG: register OMAP3 ISP resizer output as video6
[    3.115112] V4L_DEBUG: register OMAP3 ISP AEWB as v4l-subdev5
[    3.115478] V4L_DEBUG: register OMAP3 ISP AF as v4l-subdev6
[    3.115783] V4L_DEBUG: register OMAP3 ISP histogram as v4l-subdev7
[    3.115783] V4L_DEBUG, module name: mt9v113, addr: 0x3C
[    3.116668] V4L_DEBUG: register mt9v113 2-003c as v4l-subdev8
[    3.171508] omap3isp omap3isp: isp_set_xclk(): cam_xclka set to 24685714 Hz
[    3.171600] usb 1-2: new high speed USB device using ehci-omap and address 2
[    3.179077] mt9v113 2-003c: mt9v113_read_reg reg=0x0, val=0x0
[    3.179138] mt9v113 2-003c: chip id detected 0x0
[    3.179138] mt9v113 2-003c: chip id mismatch read 0x0, expecting 0x2280
[    3.186614] omap3isp omap3isp: isp_set_xclk(): cam_xclka set to 0 Hz
[    3.187225] isp_register_subdev_group: Unable to register subdev mt9v113
[    3.194305] V4L_DEBUG, module name: ov5640, addr: 0x3C
[    3.194824] ov5640_probe() ENTER
[    3.194854] ov5640_probe() EXIT
[    3.195220] V4L_DEBUG: register ov5640 2-003c as v4l-subdev8
[    3.195251] ov5640_s_config() ENTER
[    3.195251] ov5640_dev_init() ENTER
[    3.250061] omap3isp omap3isp: isp_set_xclk(): cam_xclka set to 24685714 Hz
[    3.250091] ov5640_detect() ENTER
[    3.251129] ov5640 2-003c: ov5640 found at 0x78 (OMAP I2C adapter)
[    3.257629] ov5640_detect() EXIT
[    3.260101] omap3isp omap3isp: isp_set_xclk(): cam_xclka set to 0 Hz
[    3.260101] ov5640_dev_init() EXIT
[    3.260131] ov5640_s_config() EXIT
[    3.260131] V4L_DEBUG, module name: mt9t111, addr: 0x3C
[    3.260375] i2c i2c-2: Failed to register i2c client mt9t111 at 0x3c (-16)
[    3.267639] isp_register_subdev_group: Unable to register subdev mt9t111
[    3.275238] usbcore: registered new interface driver uvcvideo
[    3.281280] USB Video Class driver (v1.0.0)

 and i used dvsdk4.03

ps: sorry for my english.

 

BR

Berlin Chen

20130121

  • Hello Chen,

    Could you add to pipeline --gst-debug=v4l2:5 and post the log.

    Best Regards,

    Margarita

  • hi Margarita,

          I add "--gst-debug=v4l2:5" and the log as follow:

    [@OMAP3EVM /]# gst-launch -v v4l2src device=/dev/video2 !\
    > ffmpegcolorspace !\
    > video/x-raw-yuv,format=\(fourcc\)UYVY !\
    > TIVidenc1 codecName=h264enc engineName=codecServer !\
    > rtph264pay pt=96 ! udpsink host=192.168.2.32 port=7000 sync=false async=false
    --gst-debug=v4l2:5

    (gst-launch-0.10:866): GLib-WARNING **: getpwuid_r(): failed due to unknown user id (0)
    Setting pipeline to PAUSED ...
    0:00:00.343718793 866 0x15018 DEBUG v4l2 v4l2_calls.c:499:gst_v4l2_open:<v4l2src0> Trying to open device /dev/video2
    libv4lcontrol: error getting username using uid instead: No such file or directory
    0:00:00.347075726 866 0x15018 DEBUG v4l2 v4l2_calls.c:83:gst_v4l2_get_capabilities:<v4l2src0> getting capabilities
    0:00:00.347380902 866 0x15018 LOG v4l2 v4l2_calls.c:91:gst_v4l2_get_capabilities:<v4l2src0> driver: 'ispvideo'
    0:00:00.347564007 866 0x15018 LOG v4l2 v4l2_calls.c:92:gst_v4l2_get_capabilities:<v4l2src0> card: 'OMAP3 ISP CCDC output'
    0:00:00.347686078 866 0x15018 LOG v4l2 v4l2_calls.c:93:gst_v4l2_get_capabilities:<v4l2src0> bus_info: 'media'
    0:00:00.347808148 866 0x15018 LOG v4l2 v4l2_calls.c:94:gst_v4l2_get_capabilities:<v4l2src0> version: 00000001
    0:00:00.347930218 866 0x15018 LOG v4l2 v4l2_calls.c:95:gst_v4l2_get_capabilities:<v4l2src0> capabilites: 05000001
    0:00:00.348052289 866 0x15018 DEBUG v4l2 v4l2_calls.c:127:gst_v4l2_fill_lists:<v4l2src0> getting enumerations
    0:00:00.348235394 866 0x15018 DEBUG v4l2 v4l2_calls.c:130:gst_v4l2_fill_lists:<v4l2src0> channels
    0:00:00.348387982 866 0x15018 DEBUG v4l2 v4l2_calls.c:960:gst_v4l2_set_input:<v4l2src0> trying to set input to 0
    0:00:00.348571087 866 0x15018 DEBUG v4l2 v4l2_calls.c:934:gst_v4l2_get_input:<v4l2src0> trying to get input
    0:00:00.348693158 866 0x15018 DEBUG v4l2 v4l2_calls.c:944:gst_v4l2_get_input:<v4l2src0> input: 0
    0:00:00.348815228 866 0x15018 LOG v4l2 v4l2_calls.c:198:gst_v4l2_fill_lists:<v4l2src0> index: 0
    0:00:00.348937298 866 0x15018 LOG v4l2 v4l2_calls.c:199:gst_v4l2_fill_lists:<v4l2src0> name: 'camera'
    0:00:00.349028851 866 0x15018 LOG v4l2 v4l2_calls.c:200:gst_v4l2_fill_lists:<v4l2src0> type: 00000002
    0:00:00.349150921 866 0x15018 LOG v4l2 v4l2_calls.c:201:gst_v4l2_fill_lists:<v4l2src0> audioset: 00000000
    0:00:00.349272991 866 0x15018 LOG v4l2 v4l2_calls.c:202:gst_v4l2_fill_lists:<v4l2src0> std: 0000000000000000
    0:00:00.349395062 866 0x15018 LOG v4l2 v4l2_calls.c:203:gst_v4l2_fill_lists:<v4l2src0> status: 00000000
    0:00:00.349822308 866 0x15018 DEBUG v4l2 v4l2_calls.c:246:gst_v4l2_fill_lists:<v4l2src0> norms
    0:00:00.349974896 866 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'NTSC', fps: 30000 / 1001
    0:00:00.350219036 866 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'NTSC-M', fps: 30000 / 1001
    0:00:00.350371624 866 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'NTSC-M-JP', fps: 30000 / 1001
    0:00:00.350524212 866 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'NTSC-M-KR', fps: 30000 / 1001
    0:00:00.350676800 866 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'PAL', fps: 25 / 1
    0:00:00.350829388 866 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'PAL-BG', fps: 25 / 1
    0:00:00.701171185 866 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'PAL-H', fps: 25 / 1
    0:00:00.701415325 866 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'PAL-I', fps: 25 / 1
    0:00:00.701567913 866 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'PAL-DK', fps: 25 / 1
    0:00:00.701720501 866 0x15018 DEBUG v4l2 v4l2_calls.c:287:gst_v4l2_fill_lists:<v4l2src0> controls+menus
    0:00:00.701873089 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980900
    0:00:00.701995159 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980900
    0:00:00.702117230 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980901
    0:00:00.702269817 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980901
    0:00:00.702361370 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980902
    0:00:00.702544476 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980902
    0:00:00.702727582 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980903
    0:00:00.702849652 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980903
    0:00:00.702971723 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980904
    0:00:00.703124311 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980904
    0:00:00.703215863 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980905
    0:00:00.703368451 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980905
    0:00:00.703460004 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980906
    0:00:00.703612592 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980906
    0:00:00.703704144 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980907
    0:00:00.703856732 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980907
    0:00:00.704009320 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980908
    0:00:00.704131391 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980908
    0:00:00.704253461 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980909
    0:00:01.055663373 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980909
    0:00:01.055846478 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098090a
    0:00:01.055968549 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098090a
    0:00:01.056090619 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098090b
    0:00:01.056212689 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098090b
    0:00:01.056334760 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098090c
    0:00:01.056456830 866 0x15018 DEBUG v4l2 v4l2_calls.c:388:gst_v4l2_fill_lists:<v4l2src0> Adding ControlID Whitebalance (software) (98090c)
    0:00:01.056762006 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098090d
    0:00:01.056975629 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098090d
    0:00:01.057097699 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098090e
    0:00:01.057250287 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098090e
    0:00:01.057372357 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098090f
    0:00:01.057494427 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098090f
    0:00:01.057616498 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980910
    0:00:01.057738568 866 0x15018 DEBUG v4l2 v4l2_calls.c:388:gst_v4l2_fill_lists:<v4l2src0> Adding ControlID Gamma (software) (980910)
    0:00:01.057860638 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980911
    0:00:01.057982709 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980911
    0:00:01.058104779 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980912
    0:00:01.058257367 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980912
    0:00:01.058379437 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980913
    0:00:01.058532025 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980913
    0:00:01.058654095 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980914
    0:00:01.410155560 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980915
    0:00:01.410308148 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980916
    0:00:01.410460736 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980916
    0:00:01.410582806 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980917
    0:00:01.410704876 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980917
    0:00:01.410826947 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980918
    0:00:01.410949017 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980918
    0:00:01.411071087 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980919
    0:00:01.411193158 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980919
    0:00:01.411315228 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098091a
    0:00:01.411467816 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098091a
    0:00:01.411589886 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098091b
    0:00:01.411711956 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098091b
    0:00:01.411834027 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098091c
    0:00:01.411956097 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098091c
    0:00:01.412078167 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098091d
    0:00:01.412200238 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098091d
    0:00:01.412322308 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098091e
    0:00:01.412444378 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098091e
    0:00:01.412566448 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098091f
    0:00:01.412688519 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098091f
    0:00:01.412810589 866 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980920
    0:00:01.412963177 866 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980920
    0:00:01.764617230 866 0x15018 DEBUG v4l2 v4l2_calls.c:297:gst_v4l2_fill_lists:<v4l2src0> checking private CIDs
    0:00:01.764800335 866 0x15018 DEBUG v4l2 v4l2_calls.c:456:gst_v4l2_fill_lists:<v4l2src0> done
    0:00:01.764922405 866 0x15018 INFO v4l2 v4l2_calls.c:558:gst_v4l2_open:<v4l2src0> Opened device 'OMAP3 ISP CCDC output' (/dev/video2) successfully
    0:00:01.765105511 866 0x15018 DEBUG v4l2 v4l2_calls.c:660:gst_v4l2_get_norm:<v4l2src0> getting norm
    0:00:01.765349652 866 0x15018 DEBUG v4l2 v4l2_calls.c:934:gst_v4l2_get_input:<v4l2src0> trying to get input
    0:00:01.765471723 866 0x15018 DEBUG v4l2 v4l2_calls.c:944:gst_v4l2_get_input:<v4l2src0> input: 0
    0:00:01.770476605 866 0x15018 DEBUG v4l2 gstv4l2object.c:919:gst_v4l2_object_fill_format_list:<v4l2src0> getting src format enumerations
    0:00:01.770781781 866 0x15018 LOG v4l2 gstv4l2object.c:937:gst_v4l2_object_fill_format_list:<v4l2src0> index: 0
    0:00:01.770934368 866 0x15018 LOG v4l2 gstv4l2object.c:938:gst_v4l2_object_fill_format_list:<v4l2src0> type: 1
    0:00:01.771056439 866 0x15018 LOG v4l2 gstv4l2object.c:939:gst_v4l2_object_fill_format_list:<v4l2src0> flags: 00000002
    0:00:01.771178509 866 0x15018 LOG v4l2 gstv4l2object.c:941:gst_v4l2_object_fill_format_list:<v4l2src0> description: 'RGB3'
    0:00:01.771300579 866 0x15018 LOG v4l2 gstv4l2object.c:943:gst_v4l2_object_fill_format_list:<v4l2src0> pixelformat: RGB3
    0:00:01.771453167 866 0x15018 LOG v4l2 gstv4l2object.c:937:gst_v4l2_object_fill_format_list:<v4l2src0> index: 1
    0:00:01.771605755 866 0x15018 LOG v4l2 gstv4l2object.c:938:gst_v4l2_object_fill_format_list:<v4l2src0> type: 1
    0:00:01.771727825 866 0x15018 LOG v4l2 gstv4l2object.c:939:gst_v4l2_object_fill_format_list:<v4l2src0> flags: 00000002
    0:00:01.771849896 866 0x15018 LOG v4l2 gstv4l2object.c:941:gst_v4l2_object_fill_format_list:<v4l2src0> description: 'BGR3'
    0:00:01.771971966 866 0x15018 LOG v4l2 gstv4l2object.c:943:gst_v4l2_object_fill_format_list:<v4l2src0> pixelformat: BGR3
    0:00:01.772094036 866 0x15018 LOG v4l2 gstv4l2object.c:937:gst_v4l2_object_fill_format_list:<v4l2src0> index: 2
    0:00:01.772216107 866 0x15018 LOG v4l2 gstv4l2object.c:938:gst_v4l2_object_fill_format_list:<v4l2src0> type: 1
    0:00:01.772338177 866 0x15018 LOG v4l2 gstv4l2object.c:939:gst_v4l2_object_fill_format_list:<v4l2src0> flags: 00000002
    0:00:01.772460247 866 0x15018 LOG v4l2 gstv4l2object.c:941:gst_v4l2_object_fill_format_list:<v4l2src0> description: 'YU12'
    0:00:01.772582317 866 0x15018 LOG v4l2 gstv4l2object.c:943:gst_v4l2_object_fill_format_list:<v4l2src0> pixelformat: YU12
    0:00:02.123198773 866 0x15018 LOG v4l2 gstv4l2object.c:937:gst_v4l2_object_fill_format_list:<v4l2src0> index: 3
    0:00:02.123381878 866 0x15018 LOG v4l2 gstv4l2object.c:938:gst_v4l2_object_fill_format_list:<v4l2src0> type: 1
    0:00:02.123503948 866 0x15018 LOG v4l2 gstv4l2object.c:939:gst_v4l2_object_fill_format_list:<v4l2src0> flags: 00000002
    0:00:02.123626019 866 0x15018 LOG v4l2 gstv4l2object.c:941:gst_v4l2_object_fill_format_list:<v4l2src0> description: 'YV12'
    0:00:02.123748089 866 0x15018 LOG v4l2 gstv4l2object.c:943:gst_v4l2_object_fill_format_list:<v4l2src0> pixelformat: YV12
    0:00:02.123900677 866 0x15018 INFO v4l2 gstv4l2object.c:956:gst_v4l2_object_fill_format_list:<v4l2src0> got 4 format(s):
    0:00:02.124022747 866 0x15018 INFO v4l2 gstv4l2object.c:962:gst_v4l2_object_fill_format_list:<v4l2src0> YU12 (emulated)
    0:00:02.124114300 866 0x15018 INFO v4l2 gstv4l2object.c:962:gst_v4l2_object_fill_format_list:<v4l2src0> YV12 (emulated)
    0:00:02.124236370 866 0x15018 INFO v4l2 gstv4l2object.c:962:gst_v4l2_object_fill_format_list:<v4l2src0> BGR3 (emulated)
    0:00:02.124358441 866 0x15018 INFO v4l2 gstv4l2object.c:962:gst_v4l2_object_fill_format_list:<v4l2src0> RGB3 (emulated)
    0:00:02.124602582 866 0x15018 DEBUG v4l2 gstv4l2object.c:1655:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Enumerating frame sizes
    0:00:02.124846723 866 0x15018 DEBUG v4l2 gstv4l2object.c:1766:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Failed to enumerate frame sizes for pixelformat YU12 (Invalid argument)
    0:00:02.125029828 866 0x15018 LOG v4l2 gstv4l2object.c:1873:gst_v4l2_object_get_nearest_size:<v4l2src0> getting nearest size to 1x1 with format YU12
    0:00:02.125243451 866 0x15018 WARN v4l2 gstv4l2object.c:1804:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Could not probe minimum capture size for pixelformat YU12
    0:00:02.125396039 866 0x15018 LOG v4l2 gstv4l2object.c:1873:gst_v4l2_object_get_nearest_size:<v4l2src0> getting nearest size to 32768x32768 with format YU12
    0:00:02.125548627 866 0x15018 WARN v4l2 gstv4l2object.c:1810:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Could not probe maximum capture size for pixelformat YU12
    0:00:02.125792767 866 0x15018 DEBUG v4l2 gstv4l2object.c:1655:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Enumerating frame sizes
    0:00:02.126036908 866 0x15018 DEBUG v4l2 gstv4l2object.c:1766:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Failed to enumerate frame sizes for pixelformat YV12 (Invalid argument)
    0:00:02.126189496 866 0x15018 LOG v4l2 gstv4l2object.c:1873:gst_v4l2_object_get_nearest_size:<v4l2src0> getting nearest size to 1x1 with format YV12
    0:00:02.126342084 866 0x15018 WARN v4l2 gstv4l2object.c:1804:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Could not probe minimum capture size for pixelformat YV12
    0:00:02.477385785 866 0x15018 LOG v4l2 gstv4l2object.c:1873:gst_v4l2_object_get_nearest_size:<v4l2src0> getting nearest size to 32768x32768 with format YV12
    0:00:02.477629926 866 0x15018 WARN v4l2 gstv4l2object.c:1810:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Could not probe maximum capture size for pixelformat YV12
    0:00:02.477874066 866 0x15018 DEBUG v4l2 gstv4l2object.c:1655:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Enumerating frame sizes
    0:00:02.478087689 866 0x15018 DEBUG v4l2 gstv4l2object.c:1766:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Failed to enumerate frame sizes for pixelformat BGR3 (Invalid argument)
    0:00:02.478209760 866 0x15018 LOG v4l2 gstv4l2object.c:1873:gst_v4l2_object_get_nearest_size:<v4l2src0> getting nearest size to 1x1 with format BGR3
    0:00:02.478362347 866 0x15018 WARN v4l2 gstv4l2object.c:1804:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Could not probe minimum capture size for pixelformat BGR3
    0:00:02.478514935 866 0x15018 LOG v4l2 gstv4l2object.c:1873:gst_v4l2_object_get_nearest_size:<v4l2src0> getting nearest size to 32768x32768 with format BGR3
    0:00:02.478667523 866 0x15018 WARN v4l2 gstv4l2object.c:1810:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Could not probe maximum capture size for pixelformat BGR3
    0:00:02.478942181 866 0x15018 DEBUG v4l2 gstv4l2object.c:1655:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Enumerating frame sizes
    0:00:02.479125287 866 0x15018 DEBUG v4l2 gstv4l2object.c:1766:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Failed to enumerate frame sizes for pixelformat RGB3 (Invalid argument)
    0:00:02.479247357 866 0x15018 LOG v4l2 gstv4l2object.c:1873:gst_v4l2_object_get_nearest_size:<v4l2src0> getting nearest size to 1x1 with format RGB3
    0:00:02.479399945 866 0x15018 WARN v4l2 gstv4l2object.c:1804:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Could not probe minimum capture size for pixelformat RGB3
    0:00:02.479552533 866 0x15018 LOG v4l2 gstv4l2object.c:1873:gst_v4l2_object_get_nearest_size:<v4l2src0> getting nearest size to 32768x32768 with format RGB3
    0:00:02.479705121 866 0x15018 WARN v4l2 gstv4l2object.c:1810:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Could not probe maximum capture size for pixelformat RGB3
    0:00:02.496001507 866 0x15018 DEBUG v4l2 gstv4l2object.c:1980:gst_v4l2_object_set_format:<v4l2src0> Setting format to 32768x32768, format YU12
    0:00:02.496276166 866 0x15018 DEBUG v4l2 gstv4l2object.c:2048:gst_v4l2_object_set_format:<v4l2src0> trying again...
    0:00:02.496550824 866 0x15018 WARN v4l2 gstv4l2object.c:2082:gst_v4l2_object_set_format:<v4l2src0> error: Device '/dev/video2' cannot capture at 32768x32768
    0:00:02.496672894 866 0x15018 WARN v4l2 gstv4l2object.c:2082:gst_v4l2_object_set_format:<v4l2src0> error: Call to S_FMT failed for YU12 @ 32768x32768: Invalid argument
    ERROR: Pipeline doesn't want to pause.
    ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video2' cannot capture at 32768x32768
    Additional debug info:
    gstv4l2object.c(2082): gst_v4l2_object_set_format (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
    Call to S_FMT failed for YU12 @ 32768x32768: Invalid argument
    Setting pipeline to NULL ...
    0:00:02.853575970 866 0x15018 DEBUG v4l2 v4l2_calls.c:629:gst_v4l2_close:<v4l2src0> Trying to close /dev/video2
    0:00:02.853942181 866 0x15018 DEBUG v4l2 v4l2_calls.c:464:gst_v4l2_empty_lists:<v4l2src0> deleting enumerations
    Freeing pipeline ...

    5140.gst_log.txt


    I found somebody told that I should got a tool named "media-ctl" for setting the camera before use gstreamer tools.

    am I need this tool?

    BR 

    Berlin Chen


  • Hello Chen,

    Could you try to put cap filter in, between v4l2src and sink. Something like:

    gst-launch v4l2src ! 'video/x-raw-yuv,width=720,height=480...'  ! .........

    Best Regards,

    Margarita

  • Margarita,

           I add cap filter, but still doesn't work.  the print log as follow:

    [@OMAP3EVM /]# gst-launch -v v4l2src device=/dev/video2 !\
    > ffmpegcolorspace !\
    > video/x-raw-yuv,format=\(fourcc\)UYVY,width=640,height=480 !\
    > TIVidenc1 codecName=h264enc engineName=codecServer !\
    > rtph264pay pt=96 ! udpsink host=192.168.2.32 port=7000 sync=false async=false
    --gst-debug=v4l2:5

    (gst-launch-0.10:837): GLib-WARNING **: getpwuid_r(): failed due to unknown user id (0)
    Setting pipeline to PAUSED ...
    0:00:00.618438721 837 0x15018 DEBUG v4l2 v4l2_calls.c:499:gst_v4l2_open:<v4l2src0> Trying to open device /dev/video2
    libv4lcontrol: error getting username using uid instead: No such file or directory
    0:00:00.621917725 837 0x15018 DEBUG v4l2 v4l2_calls.c:83:gst_v4l2_get_capabilities:<v4l2src0> getting capabilities
    0:00:00.622253419 837 0x15018 LOG v4l2 v4l2_calls.c:91:gst_v4l2_get_capabilities:<v4l2src0> driver: 'ispvideo'
    0:00:00.622436524 837 0x15018 LOG v4l2 v4l2_calls.c:92:gst_v4l2_get_capabilities:<v4l2src0> card: 'OMAP3 ISP CCDC output'
    0:00:00.622558594 837 0x15018 LOG v4l2 v4l2_calls.c:93:gst_v4l2_get_capabilities:<v4l2src0> bus_info: 'media'
    0:00:00.622680665 837 0x15018 LOG v4l2 v4l2_calls.c:94:gst_v4l2_get_capabilities:<v4l2src0> version: 00000001
    0:00:00.622802735 837 0x15018 LOG v4l2 v4l2_calls.c:95:gst_v4l2_get_capabilities:<v4l2src0> capabilites: 05000001
    0:00:00.622924805 837 0x15018 DEBUG v4l2 v4l2_calls.c:127:gst_v4l2_fill_lists:<v4l2src0> getting enumerations
    0:00:00.623138428 837 0x15018 DEBUG v4l2 v4l2_calls.c:130:gst_v4l2_fill_lists:<v4l2src0> channels
    0:00:00.623291016 837 0x15018 DEBUG v4l2 v4l2_calls.c:960:gst_v4l2_set_input:<v4l2src0> trying to set input to 0
    0:00:00.623443604 837 0x15018 DEBUG v4l2 v4l2_calls.c:934:gst_v4l2_get_input:<v4l2src0> trying to get input
    0:00:00.623565674 837 0x15018 DEBUG v4l2 v4l2_calls.c:944:gst_v4l2_get_input:<v4l2src0> input: 0
    0:00:00.623687745 837 0x15018 LOG v4l2 v4l2_calls.c:198:gst_v4l2_fill_lists:<v4l2src0> index: 0
    0:00:00.623779297 837 0x15018 LOG v4l2 v4l2_calls.c:199:gst_v4l2_fill_lists:<v4l2src0> name: 'camera'
    0:00:00.623901368 837 0x15018 LOG v4l2 v4l2_calls.c:200:gst_v4l2_fill_lists:<v4l2src0> type: 00000002
    0:00:00.624023438 837 0x15018 LOG v4l2 v4l2_calls.c:201:gst_v4l2_fill_lists:<v4l2src0> audioset: 00000000
    0:00:00.624145508 837 0x15018 LOG v4l2 v4l2_calls.c:202:gst_v4l2_fill_lists:<v4l2src0> std: 0000000000000000
    0:00:00.624267579 837 0x15018 LOG v4l2 v4l2_calls.c:203:gst_v4l2_fill_lists:<v4l2src0> status: 00000000
    0:00:00.624664307 837 0x15018 DEBUG v4l2 v4l2_calls.c:246:gst_v4l2_fill_lists:<v4l2src0> norms
    0:00:00.624847413 837 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'NTSC', fps: 30000 / 1001
    0:00:00.625061036 837 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'NTSC-M', fps: 30000 / 1001
    0:00:00.625244141 837 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'NTSC-M-JP', fps: 30000 / 1001
    0:00:00.625396729 837 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'NTSC-M-KR', fps: 30000 / 1001
    0:00:00.625549317 837 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'PAL', fps: 25 / 1
    0:00:00.625671387 837 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'PAL-BG', fps: 25 / 1
    0:00:00.977325440 837 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'PAL-H', fps: 25 / 1
    0:00:00.977539063 837 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'PAL-I', fps: 25 / 1
    0:00:00.977691651 837 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'PAL-DK', fps: 25 / 1
    0:00:00.977874756 837 0x15018 DEBUG v4l2 v4l2_calls.c:287:gst_v4l2_fill_lists:<v4l2src0> controls+menus
    0:00:00.977996826 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980900
    0:00:00.978149414 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980900
    0:00:00.978271485 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980901
    0:00:00.978393555 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980901
    0:00:00.978515625 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980902
    0:00:00.978668213 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980902
    0:00:00.978790283 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980903
    0:00:00.978912354 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980903
    0:00:00.979034424 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980904
    0:00:00.979156494 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980904
    0:00:00.979278564 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980905
    0:00:00.979400635 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980905
    0:00:00.979522705 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980906
    0:00:00.979644775 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980906
    0:00:00.979766846 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980907
    0:00:00.979888916 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980907
    0:00:00.980010986 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980908
    0:00:00.980163574 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980908
    0:00:00.980285644 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980909
    0:00:01.331634521 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980909
    0:00:01.331787109 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098090a
    0:00:01.331909180 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098090a
    0:00:01.332031250 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098090b
    0:00:01.332153320 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098090b
    0:00:01.332305909 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098090c
    0:00:01.332458497 837 0x15018 DEBUG v4l2 v4l2_calls.c:388:gst_v4l2_fill_lists:<v4l2src0> Adding ControlID Whitebalance (software) (98090c)
    0:00:01.332733155 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098090d
    0:00:01.332885743 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098090d
    0:00:01.333068848 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098090e
    0:00:01.333190919 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098090e
    0:00:01.333312989 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098090f
    0:00:01.333435059 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098090f
    0:00:01.333557130 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980910
    0:00:01.333679200 837 0x15018 DEBUG v4l2 v4l2_calls.c:388:gst_v4l2_fill_lists:<v4l2src0> Adding ControlID Gamma (software) (980910)
    0:00:01.333801270 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980911
    0:00:01.333923340 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980911
    0:00:01.334045411 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980912
    0:00:01.334167481 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980912
    0:00:01.334289551 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980913
    0:00:01.334442139 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980913
    0:00:01.334564210 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980914
    0:00:01.685913087 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980915
    0:00:01.686065674 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980916
    0:00:01.686187745 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980916
    0:00:01.686309815 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980917
    0:00:01.686431885 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980917
    0:00:01.686553956 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980918
    0:00:01.686676026 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980918
    0:00:01.686798096 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980919
    0:00:01.686920166 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980919
    0:00:01.687042237 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098091a
    0:00:01.687164307 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098091a
    0:00:01.687316895 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098091b
    0:00:01.687438965 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098091b
    0:00:01.687561036 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098091c
    0:00:01.687683106 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098091c
    0:00:01.687805176 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098091d
    0:00:01.687927246 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098091d
    0:00:01.688049317 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098091e
    0:00:01.688171387 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098091e
    0:00:01.688293457 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098091f
    0:00:01.688415528 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098091f
    0:00:01.688507080 837 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980920
    0:00:01.688659668 837 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980920
    0:00:02.040130615 837 0x15018 DEBUG v4l2 v4l2_calls.c:297:gst_v4l2_fill_lists:<v4l2src0> checking private CIDs
    0:00:02.040283203 837 0x15018 DEBUG v4l2 v4l2_calls.c:456:gst_v4l2_fill_lists:<v4l2src0> done
    0:00:02.040405274 837 0x15018 INFO v4l2 v4l2_calls.c:558:gst_v4l2_open:<v4l2src0> Opened device 'OMAP3 ISP CCDC output' (/dev/video2) successfully
    0:00:02.040588379 837 0x15018 DEBUG v4l2 v4l2_calls.c:660:gst_v4l2_get_norm:<v4l2src0> getting norm
    0:00:02.040740967 837 0x15018 DEBUG v4l2 v4l2_calls.c:934:gst_v4l2_get_input:<v4l2src0> trying to get input
    0:00:02.040893555 837 0x15018 DEBUG v4l2 v4l2_calls.c:944:gst_v4l2_get_input:<v4l2src0> input: 0
    0:00:02.046142579 837 0x15018 DEBUG v4l2 gstv4l2object.c:919:gst_v4l2_object_fill_format_list:<v4l2src0> getting src format enumerations
    0:00:02.046447754 837 0x15018 LOG v4l2 gstv4l2object.c:937:gst_v4l2_object_fill_format_list:<v4l2src0> index: 0
    0:00:02.046600342 837 0x15018 LOG v4l2 gstv4l2object.c:938:gst_v4l2_object_fill_format_list:<v4l2src0> type: 1
    0:00:02.046752930 837 0x15018 LOG v4l2 gstv4l2object.c:939:gst_v4l2_object_fill_format_list:<v4l2src0> flags: 00000002
    0:00:02.046875000 837 0x15018 LOG v4l2 gstv4l2object.c:941:gst_v4l2_object_fill_format_list:<v4l2src0> description: 'RGB3'
    0:00:02.046997071 837 0x15018 LOG v4l2 gstv4l2object.c:943:gst_v4l2_object_fill_format_list:<v4l2src0> pixelformat: RGB3
    0:00:02.047119141 837 0x15018 LOG v4l2 gstv4l2object.c:937:gst_v4l2_object_fill_format_list:<v4l2src0> index: 1
    0:00:02.047302246 837 0x15018 LOG v4l2 gstv4l2object.c:938:gst_v4l2_object_fill_format_list:<v4l2src0> type: 1
    0:00:02.047424317 837 0x15018 LOG v4l2 gstv4l2object.c:939:gst_v4l2_object_fill_format_list:<v4l2src0> flags: 00000002
    0:00:02.047546387 837 0x15018 LOG v4l2 gstv4l2object.c:941:gst_v4l2_object_fill_format_list:<v4l2src0> description: 'BGR3'
    0:00:02.047668457 837 0x15018 LOG v4l2 gstv4l2object.c:943:gst_v4l2_object_fill_format_list:<v4l2src0> pixelformat: BGR3
    0:00:02.047790528 837 0x15018 LOG v4l2 gstv4l2object.c:937:gst_v4l2_object_fill_format_list:<v4l2src0> index: 2
    0:00:02.047912598 837 0x15018 LOG v4l2 gstv4l2object.c:938:gst_v4l2_object_fill_format_list:<v4l2src0> type: 1
    0:00:02.048034668 837 0x15018 LOG v4l2 gstv4l2object.c:939:gst_v4l2_object_fill_format_list:<v4l2src0> flags: 00000002
    0:00:02.048156739 837 0x15018 LOG v4l2 gstv4l2object.c:941:gst_v4l2_object_fill_format_list:<v4l2src0> description: 'YU12'
    0:00:02.048278809 837 0x15018 LOG v4l2 gstv4l2object.c:943:gst_v4l2_object_fill_format_list:<v4l2src0> pixelformat: YU12
    0:00:02.398773194 837 0x15018 LOG v4l2 gstv4l2object.c:937:gst_v4l2_object_fill_format_list:<v4l2src0> index: 3
    0:00:02.398956299 837 0x15018 LOG v4l2 gstv4l2object.c:938:gst_v4l2_object_fill_format_list:<v4l2src0> type: 1
    0:00:02.399108887 837 0x15018 LOG v4l2 gstv4l2object.c:939:gst_v4l2_object_fill_format_list:<v4l2src0> flags: 00000002
    0:00:02.399230957 837 0x15018 LOG v4l2 gstv4l2object.c:941:gst_v4l2_object_fill_format_list:<v4l2src0> description: 'YV12'
    0:00:02.399322510 837 0x15018 LOG v4l2 gstv4l2object.c:943:gst_v4l2_object_fill_format_list:<v4l2src0> pixelformat: YV12
    0:00:02.399475098 837 0x15018 INFO v4l2 gstv4l2object.c:956:gst_v4l2_object_fill_format_list:<v4l2src0> got 4 format(s):
    0:00:02.399597168 837 0x15018 INFO v4l2 gstv4l2object.c:962:gst_v4l2_object_fill_format_list:<v4l2src0> YU12 (emulated)
    0:00:02.399719239 837 0x15018 INFO v4l2 gstv4l2object.c:962:gst_v4l2_object_fill_format_list:<v4l2src0> YV12 (emulated)
    0:00:02.399841309 837 0x15018 INFO v4l2 gstv4l2object.c:962:gst_v4l2_object_fill_format_list:<v4l2src0> BGR3 (emulated)
    0:00:02.399932862 837 0x15018 INFO v4l2 gstv4l2object.c:962:gst_v4l2_object_fill_format_list:<v4l2src0> RGB3 (emulated)
    0:00:02.400146485 837 0x15018 DEBUG v4l2 gstv4l2object.c:1655:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Enumerating frame sizes
    0:00:02.400390625 837 0x15018 DEBUG v4l2 gstv4l2object.c:1766:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Failed to enumerate frame sizes for pixelformat YU12 (Invalid argument)
    0:00:02.400573731 837 0x15018 LOG v4l2 gstv4l2object.c:1873:gst_v4l2_object_get_nearest_size:<v4l2src0> getting nearest size to 1x1 with format YU12
    0:00:02.400787354 837 0x15018 WARN v4l2 gstv4l2object.c:1804:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Could not probe minimum capture size for pixelformat YU12
    0:00:02.400939941 837 0x15018 LOG v4l2 gstv4l2object.c:1873:gst_v4l2_object_get_nearest_size:<v4l2src0> getting nearest size to 32768x32768 with format YU12
    0:00:02.401092529 837 0x15018 WARN v4l2 gstv4l2object.c:1810:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Could not probe maximum capture size for pixelformat YU12
    0:00:02.401336670 837 0x15018 DEBUG v4l2 gstv4l2object.c:1655:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Enumerating frame sizes
    0:00:02.401580811 837 0x15018 DEBUG v4l2 gstv4l2object.c:1766:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Failed to enumerate frame sizes for pixelformat YV12 (Invalid argument)
    0:00:02.401733398 837 0x15018 LOG v4l2 gstv4l2object.c:1873:gst_v4l2_object_get_nearest_size:<v4l2src0> getting nearest size to 1x1 with format YV12
    0:00:02.401916504 837 0x15018 WARN v4l2 gstv4l2object.c:1804:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Could not probe minimum capture size for pixelformat YV12
    0:00:02.753082275 837 0x15018 LOG v4l2 gstv4l2object.c:1873:gst_v4l2_object_get_nearest_size:<v4l2src0> getting nearest size to 32768x32768 with format YV12
    0:00:02.753295898 837 0x15018 WARN v4l2 gstv4l2object.c:1810:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Could not probe maximum capture size for pixelformat YV12
    0:00:02.753540039 837 0x15018 DEBUG v4l2 gstv4l2object.c:1655:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Enumerating frame sizes
    0:00:02.753753662 837 0x15018 DEBUG v4l2 gstv4l2object.c:1766:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Failed to enumerate frame sizes for pixelformat BGR3 (Invalid argument)
    0:00:02.753875732 837 0x15018 LOG v4l2 gstv4l2object.c:1873:gst_v4l2_object_get_nearest_size:<v4l2src0> getting nearest size to 1x1 with format BGR3
    0:00:02.754058838 837 0x15018 WARN v4l2 gstv4l2object.c:1804:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Could not probe minimum capture size for pixelformat BGR3
    0:00:02.754241944 837 0x15018 LOG v4l2 gstv4l2object.c:1873:gst_v4l2_object_get_nearest_size:<v4l2src0> getting nearest size to 32768x32768 with format BGR3
    0:00:02.754425050 837 0x15018 WARN v4l2 gstv4l2object.c:1810:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Could not probe maximum capture size for pixelformat BGR3
    0:00:02.754669190 837 0x15018 DEBUG v4l2 gstv4l2object.c:1655:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Enumerating frame sizes
    0:00:02.754852296 837 0x15018 DEBUG v4l2 gstv4l2object.c:1766:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Failed to enumerate frame sizes for pixelformat RGB3 (Invalid argument)
    0:00:02.754974366 837 0x15018 LOG v4l2 gstv4l2object.c:1873:gst_v4l2_object_get_nearest_size:<v4l2src0> getting nearest size to 1x1 with format RGB3
    0:00:02.755126954 837 0x15018 WARN v4l2 gstv4l2object.c:1804:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Could not probe minimum capture size for pixelformat RGB3
    0:00:02.755279542 837 0x15018 LOG v4l2 gstv4l2object.c:1873:gst_v4l2_object_get_nearest_size:<v4l2src0> getting nearest size to 32768x32768 with format RGB3
    0:00:02.755432130 837 0x15018 WARN v4l2 gstv4l2object.c:1810:gst_v4l2_object_probe_caps_for_format:<v4l2src0> Could not probe maximum capture size for pixelformat RGB3
    0:00:02.771789551 837 0x15018 DEBUG v4l2 gstv4l2object.c:1980:gst_v4l2_object_set_format:<v4l2src0> Setting format to 640x480, format YU12
    0:00:02.772064210 837 0x15018 DEBUG v4l2 gstv4l2object.c:2048:gst_v4l2_object_set_format:<v4l2src0> trying again...
    0:00:02.772308350 837 0x15018 WARN v4l2 gstv4l2object.c:2082:gst_v4l2_object_set_format:<v4l2src0> error: Device '/dev/video2' cannot capture at 640x480
    0:00:02.772460938 837 0x15018 WARN v4l2 gstv4l2object.c:2082:gst_v4l2_object_set_format:<v4l2src0> error: Call to S_FMT failed for YU12 @ 640x480: Invalid argument
    ERROR: Pipeline doesn't want to pause.
    ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video2' cannot capture at 640x480
    Additional debug info:
    gstv4l2object.c(2082): gst_v4l2_object_set_format (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
    Call to S_FMT failed for YU12 @ 640x480: Invalid argument
    Setting pipeline to NULL ...
    0:00:03.129150391 837 0x15018 DEBUG v4l2 v4l2_calls.c:629:gst_v4l2_close:<v4l2src0> Trying to close /dev/video2
    0:00:03.129547120 837 0x15018 DEBUG v4l2 v4l2_calls.c:464:gst_v4l2_empty_lists:<v4l2src0> deleting enumerations
    Freeing pipeline ...

    Is there something wrong with my driver?

    Best Regards,

    Berlin Chen

  • Hello Chen,

    Could you check if the driver prints anything to the kernel log (use the dmesg 
    command) when you get the above error with GStreamer.

    Best Regards,

    Margarita

  • Hi Margarita ,

              There is nothing be printed in kernel log.

              There are two tools named "media-ctl" and "yavta" were mentioned in follow webs:

    http://www.compulab.co.il/workspace/mediawiki/index.php5/CM-T3730:_Linux:_Camera#Overview

    https://gitorious.org/omap4-v4l2-camera/pages/Home

           Are these tools necessary ?

    Thanks very much

    BR

    Berlin Chen

  • Hi Margarita,

             I can get the raw images with media-ctl and yavta tools.

    ./media-ctl -l '"ov5640 2-003c":0->"OMAP3 ISP CCDC":0[1]'
    ./media-ctl -l '"OMAP3 ISP CCDC":1->"OMAP3 ISP CCDC output":0[1]'
    ./media-ctl -f '"ov5640 2-003c":0[UYVY 640x480]'
    ./media-ctl -f '"OMAP3 ISP CCDC":0[UYVY 640x480]'
    ./media-ctl -f '"OMAP3 ISP CCDC":1[UYVY 640x480]'

    ./yavta -p -f UYVY -s 640x480 -n 4 --capture=5 -F `media-ctl -e \
    "OMAP3 ISP CCDC output"` --file=img#.raw

    Then I can get 5 raw images(img000000.raw -- img000004.raw).

    but when I use gstreamer for loopback, still doesn't work.

    ./media-ctl -r -l '"ov5640 2-003c":0->"OMAP3 ISP CCDC":0[1], "OMAP3 ISP CCDC":1->"OMAP3 ISP CCDC output":0[1]'
    ./media-ctl -v --set-format '"ov5640 2-003c":0 [UYVY 640x480]'
    ./media-ctl -v --set-format '"OMAP3 ISP CCDC":0 [UYVY 640x480]'
    ./media-ctl -v --set-format '"OMAP3 ISP CCDC":1 [UYVY 640x480]'

    gst-launch -v v4l2src device=/dev/video2 !\
    ffmpegcolorspace ! \
    video/x-raw-yuv,format=\(fourcc\)UYVY !\
    tidisplaysink2 -v device=/dev/video7 \
    --gst-debug=v4l2:5

    The logs as follow:

    (gst-launch-0.10:861): GLib-WARNING **: getpwuid_r(): failed due to unknown user id (0)
    Setting pipeline to PAUSED ...
    0:00:00.321746801 861 0x15018 DEBUG v4l2 v4l2_calls.c:499:gst_v4l2_open:<v4l2src0> Trying to open device /dev/video2
    libv4lcontrol: error getting username using uid instead: No such file or directory
    0:00:01.714599584 861 0x15018 DEBUG v4l2 v4l2_calls.c:83:gst_v4l2_get_capabilities:<v4l2src0> getting capabilities
    0:00:01.714965795 861 0x15018 LOG v4l2 v4l2_calls.c:91:gst_v4l2_get_capabilities:<v4l2src0> driver: 'ispvideo'
    0:00:01.715240453 861 0x15018 LOG v4l2 v4l2_calls.c:92:gst_v4l2_get_capabilities:<v4l2src0> card: 'OMAP3 ISP CCDC output'
    0:00:01.715362524 861 0x15018 LOG v4l2 v4l2_calls.c:93:gst_v4l2_get_capabilities:<v4l2src0> bus_info: 'media'
    0:00:01.715515111 861 0x15018 LOG v4l2 v4l2_calls.c:94:gst_v4l2_get_capabilities:<v4l2src0> version: 00000001
    0:00:01.715637182 861 0x15018 LOG v4l2 v4l2_calls.c:95:gst_v4l2_get_capabilities:<v4l2src0> capabilites: 05000001
    0:00:01.715759252 861 0x15018 DEBUG v4l2 v4l2_calls.c:127:gst_v4l2_fill_lists:<v4l2src0> getting enumerations
    0:00:01.715911840 861 0x15018 DEBUG v4l2 v4l2_calls.c:130:gst_v4l2_fill_lists:<v4l2src0> channels
    0:00:01.716064428 861 0x15018 DEBUG v4l2 v4l2_calls.c:960:gst_v4l2_set_input:<v4l2src0> trying to set input to 0
    0:00:01.716247533 861 0x15018 DEBUG v4l2 v4l2_calls.c:934:gst_v4l2_get_input:<v4l2src0> trying to get input
    0:00:01.716369603 861 0x15018 DEBUG v4l2 v4l2_calls.c:944:gst_v4l2_get_input:<v4l2src0> input: 0
    0:00:01.716552709 861 0x15018 LOG v4l2 v4l2_calls.c:198:gst_v4l2_fill_lists:<v4l2src0> index: 0
    0:00:01.716674779 861 0x15018 LOG v4l2 v4l2_calls.c:199:gst_v4l2_fill_lists:<v4l2src0> name: 'camera'
    0:00:01.716796850 861 0x15018 LOG v4l2 v4l2_calls.c:200:gst_v4l2_fill_lists:<v4l2src0> type: 00000002
    0:00:01.716918920 861 0x15018 LOG v4l2 v4l2_calls.c:201:gst_v4l2_fill_lists:<v4l2src0> audioset: 00000000
    0:00:01.717040990 861 0x15018 LOG v4l2 v4l2_calls.c:202:gst_v4l2_fill_lists:<v4l2src0> std: 0000000000000000
    0:00:01.717163060 861 0x15018 LOG v4l2 v4l2_calls.c:203:gst_v4l2_fill_lists:<v4l2src0> status: 00000000
    0:00:01.717590306 861 0x15018 DEBUG v4l2 v4l2_calls.c:246:gst_v4l2_fill_lists:<v4l2src0> norms
    0:00:01.717773412 861 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'NTSC', fps: 30000 / 1001
    0:00:01.718078588 861 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'NTSC-M', fps: 30000 / 1001
    0:00:01.718261693 861 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'NTSC-M-JP', fps: 30000 / 1001
    0:00:01.718414281 861 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'NTSC-M-KR', fps: 30000 / 1001
    0:00:01.718597386 861 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'PAL', fps: 25 / 1
    0:00:01.718749974 861 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'PAL-BG', fps: 25 / 1
    0:00:01.718994116 861 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'PAL-H', fps: 25 / 1
    0:00:02.065612768 861 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'PAL-I', fps: 25 / 1
    0:00:02.065856908 861 0x15018 DEBUG v4l2 v4l2_calls.c:274:gst_v4l2_fill_lists:<v4l2src0> 'PAL-DK', fps: 25 / 1
    0:00:02.066040014 861 0x15018 DEBUG v4l2 v4l2_calls.c:287:gst_v4l2_fill_lists:<v4l2src0> controls+menus
    0:00:02.066192602 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980900
    0:00:02.066345190 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980900
    0:00:02.066467260 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980901
    0:00:02.066619848 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980901
    0:00:02.066741918 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980902
    0:00:02.066925024 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980902
    0:00:02.067047094 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980903
    0:00:02.067199682 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980903
    0:00:02.067321752 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980904
    0:00:02.067474340 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980904
    0:00:02.067596410 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980905
    0:00:02.067718480 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980905
    0:00:02.067871068 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980906
    0:00:02.067993139 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980906
    0:00:02.068115209 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980907
    0:00:02.068298314 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980907
    0:00:02.068420385 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980908
    0:00:02.068572973 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980908
    0:00:02.068695043 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980909
    0:00:02.068817113 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980909
    0:00:02.415954565 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098090a
    0:00:02.416198705 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098090a
    0:00:02.416351293 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098090b
    0:00:02.416473364 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098090b
    0:00:02.416625951 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098090c
    0:00:02.416748022 861 0x15018 DEBUG v4l2 v4l2_calls.c:388:gst_v4l2_fill_lists:<v4l2src0> Adding ControlID Whitebalance (software) (98090c)
    0:00:02.417114233 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098090d
    0:00:02.417327856 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098090d
    0:00:02.417480444 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098090e
    0:00:02.417602514 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098090e
    0:00:02.417724584 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098090f
    0:00:02.417877172 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098090f
    0:00:02.417999242 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980910
    0:00:02.418121313 861 0x15018 DEBUG v4l2 v4l2_calls.c:388:gst_v4l2_fill_lists:<v4l2src0> Adding ControlID Gamma (software) (980910)
    0:00:02.418273901 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980911
    0:00:02.418395971 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980911
    0:00:02.418518041 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980912
    0:00:02.418670629 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980912
    0:00:02.418792699 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980913
    0:00:02.418914770 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980913
    0:00:02.419036840 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980914
    0:00:02.419158910 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980915
    0:00:02.766326879 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980916
    0:00:02.766509985 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980916
    0:00:02.766632055 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980917
    0:00:02.766784643 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980917
    0:00:02.766906713 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980918
    0:00:02.767059301 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980918
    0:00:02.767181372 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980919
    0:00:02.767303442 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980919
    0:00:02.767425512 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098091a
    0:00:02.767578100 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098091a
    0:00:02.767730688 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098091b
    0:00:02.767852758 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098091b
    0:00:02.768005346 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098091c
    0:00:02.768127416 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098091c
    0:00:02.768249487 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098091d
    0:00:02.768371557 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098091d
    0:00:02.768524145 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098091e
    0:00:02.768646215 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098091e
    0:00:02.768768285 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 0098091f
    0:00:02.768890356 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 0098091f
    0:00:02.769042944 861 0x15018 DEBUG v4l2 v4l2_calls.c:312:gst_v4l2_fill_lists:<v4l2src0> checking control 00980920
    0:00:02.769195531 861 0x15018 DEBUG v4l2 v4l2_calls.c:318:gst_v4l2_fill_lists:<v4l2src0> skipping control 00980920
    0:00:02.769317602 861 0x15018 DEBUG v4l2 v4l2_calls.c:297:gst_v4l2_fill_lists:<v4l2src0> checking private CIDs
    0:00:03.116577123 861 0x15018 DEBUG v4l2 v4l2_calls.c:456:gst_v4l2_fill_lists:<v4l2src0> done
    0:00:03.116729711 861 0x15018 INFO v4l2 v4l2_calls.c:558:gst_v4l2_open:<v4l2src0> Opened device 'OMAP3 ISP CCDC output' (/dev/video2) successfully
    0:00:03.116943334 861 0x15018 DEBUG v4l2 v4l2_calls.c:660:gst_v4l2_get_norm:<v4l2src0> getting norm
    0:00:03.117126439 861 0x15018 DEBUG v4l2 v4l2_calls.c:934:gst_v4l2_get_input:<v4l2src0> trying to get input
    0:00:03.117279027 861 0x15018 DEBUG v4l2 v4l2_calls.c:944:gst_v4l2_get_input:<v4l2src0> input: 0
    0:00:03.118835424 861 0x15018 DEBUG v4l2 gstv4l2object.c:919:gst_v4l2_object_fill_format_list:<v4l2src0> getting src format enumerations
    0:00:03.119079565 861 0x15018 LOG v4l2 gstv4l2object.c:937:gst_v4l2_object_fill_format_list:<v4l2src0> index: 0
    0:00:03.119262670 861 0x15018 LOG v4l2 gstv4l2object.c:938:gst_v4l2_object_fill_format_list:<v4l2src0> type: 1
    0:00:03.119415258 861 0x15018 LOG v4l2 gstv4l2object.c:939:gst_v4l2_object_fill_format_list:<v4l2src0> flags: 00000002
    0:00:03.119567846 861 0x15018 LOG v4l2 gstv4l2object.c:941:gst_v4l2_object_fill_format_list:<v4l2src0> description: 'RGB3'
    0:00:03.119689916 861 0x15018 LOG v4l2 gstv4l2object.c:943:gst_v4l2_object_fill_format_list:<v4l2src0> pixelformat: RGB3
    0:00:03.119842504 861 0x15018 LOG v4l2 gstv4l2object.c:937:gst_v4l2_object_fill_format_list:<v4l2src0> index: 1
    0:00:03.119964575 861 0x15018 LOG v4l2 gstv4l2object.c:938:gst_v4l2_object_fill_format_list:<v4l2src0> type: 1
    0:00:03.120086645 861 0x15018 LOG v4l2 gstv4l2object.c:939:gst_v4l2_object_fill_format_list:<v4l2src0> flags: 00000002
    0:00:03.120208715 861 0x15018 LOG v4l2 gstv4l2object.c:941:gst_v4l2_object_fill_format_list:<v4l2src0> description: 'BGR3'
    0:00:03.120330785 861 0x15018 LOG v4l2 gstv4l2object.c:943:gst_v4l2_object_fill_format_list:<v4l2src0> pixelformat: BGR3
    0:00:03.120483373 861 0x15018 LOG v4l2 gstv4l2object.c:937:gst_v4l2_object_fill_format_list:<v4l2src0> index: 2
    0:00:03.120605444 861 0x15018 LOG v4l2 gstv4l2object.c:938:gst_v4l2_object_fill_format_list:<v4l2src0> type: 1
    0:00:03.120727514 861 0x15018 LOG v4l2 gstv4l2object.c:939:gst_v4l2_object_fill_format_list:<v4l2src0> flags: 00000002
    0:00:03.120880102 861 0x15018 LOG v4l2 gstv4l2object.c:941:gst_v4l2_object_fill_format_list:<v4l2src0> description: 'YU12'
    0:00:03.121002172 861 1138.995483] ------------[ cut here ]------------
    00m 0x15018 WARNING: at drivers/media/video/isp/ispvideo.c:307 isp_video_pix_to_mbus+0x70/0xa4()
    [37mLOG [ 1139.011657] Modules linked in: sdmak v4l2 gstv4 lpm_omap3530l2object.c:943:g dsplinkkst_v4l2_object_f cmemkill_format_list:
    <v4l2src0> [ 1139.026367] Backtrace: pixelformat: YU1
    2
    0:00:03.12115[ 1139.031738] [<c004eb90>] (dump_backtrace+0x0/0x110) from [<c046f708>] (dump_stack+0x18/0x1c)
    4760 861[ 1139.041961] r7:00000000 0x15018 r6:c03424c4 LOG 5:c05aa6be0m r4:00000133 v4l2 gst
    v4l2object.c:937[ 1139.054901] [<c046f6f0>] (dump_stack+0x0/0x1c) from [<c00799b8>] (warn_slowpath_common+0x54/0x6c)
    :gst_v4l2_object[ 1139.065612] [<c0079964>] (warn_slowpath_common+0x0/0x6c) from [<c00799f4>] (warn_slowpath_null+0x24/0x2c)
    _fill_format_lis[ 1139.077026] r9:df2840c0t:<v4l2src0>8:df2c5bf0m index: 3 r7:df2840c4
    0:00:03.468475 r6:df2e9bec316 8615:df2840c4[00m 0x15018
    [ 1139.090850] r4:df2e9becLOG
    [ 1139.096435] [<c00799d0>] (warn_slowpath_null+0x0/0x2c) from [<c03424c4>] (isp_video_pix_to_mbus+0x70/0xa4)
    v4l2 gstv[ 1139.107940] [<c0342454>] (isp_video_pix_to_mbus+0x0/0xa4) from [<c0342b88>] (isp_video_try_format+0x5c/0xd8)
    4l2object.c:938:[ 1139.119903] r5:df2c58d8gst_v4l2_object_ r4:df2840c0fill_format_list
    :<v4l2src0>[ 1139.127593] [<c0342b2c>] (isp_video_try_format+0x0/0xd8) from [<c032da0c>] (__video_do_ioctl+0xe48/0x3f34)
    [ 1139.139099] [<c032cbc4>] (__video_do_ioctl+0x0/0x3f34) from [<c032c9b4>] (__video_usercopy+0x2e4/0x428)

    0:00:03.4686279[ 1139.150329] [<c032c6d0>] (__video_usercopy+0x0/0x428) from [<c032cb28>] (video_ioctl2+0x30/0x38)
    04 861 1139.160949] [<c032caf8>] (video_ioctl2+0x0/0x38) from [<c032b9a8>] (v4l2_ioctl+0x70/0x11c)
    00m 0x15018 r5:df2c5bf0[37mLOG r4:dc017940
    v4l2 gstv4[ 1139.178924] [<c032b938>] (v4l2_ioctl+0x0/0x11c) from [<c010cd6c>] (vfs_ioctl+0x28/0x44)
    l2object.c:939:g[ 1139.188720] r9:df2e8000st_v4l2_object_f r8:bef28f74ill_format_list: r7:00000008<v4l2src0> r6:00000008flags: 000 r5:dc01794000002
    0:00:03.4
    [ 1139.202545] r4:0000000068780492
    861 0x1[ 1139.208099] [<c010cd44>] (vfs_ioctl+0x0/0x44) from [<c010d47c>] (do_vfs_ioctl+0x500/0x540)
    5018 LOG [ 1139.218475] [<c010cf7c>] (do_vfs_ioctl+0x0/0x540) from [<c010d514>] (sys_ioctl+0x58/0x7c)
    [ 1139.228149] [<c010d4bc>] (sys_ioctl+0x0/0x7c) from [<c004a5a0>] (ret_fast_syscall+0x0/0x30)
    v4l2[ 1139.238281] r8:c004a748 gstv4l2object.c r7:00000036:941:gst_v4l2_ob r6:401f0ab7ject_fill_format r5:00000064_list:<v4l2src0> r4:0000006c descriptio
    n: 'YV12'
    0:00:[ 1139.253692] ---[ end trace cac4008479135461 ]---
    03.468963598 1139.260375] ------------[ cut here ]------------
    34m 861 [ 1139.266174] WARNING: at drivers/media/video/isp/ispvideo.c:307 isp_video_pix_to_mbus+0x70/0xa4()
    0x15018 LO[ 1139.276794] Modules linked in:G sdmak lpm_omap3530v4l2 gstv4l2obje dsplinkkct.c:943:gst_v4l cmemk2_object_fill_fo
    rmat_list:<v4l2s[ 1139.291503] Backtrace: rc0> pixelf
    ormat: YV12
    0:0[ 1139.296875] [<c004eb90>] (dump_backtrace+0x0/0x110) from [<c046f708>] (dump_stack+0x18/0x1c)
    0:03.469085669 r7:00000000[334m 861 r6:c03424c4 0x15018 5:c05aa6be01mINFO r4:00000133
    v4l2 gstv4l[ 1139.320037] [<c046f6f0>] (dump_stack+0x0/0x1c) from [<c00799b8>] (warn_slowpath_common+0x54/0x6c)
    2object.c:956:gs[ 1139.330749] [<c0079964>] (warn_slowpath_common+0x0/0x6c) from [<c00799f4>] (warn_slowpath_null+0x24/0x2c)
    r6:df2e9bect_fi[ 1139.342163] r9:df2840c0ll_format_list:< r8:df2c5bf0v4l2src0> g r7:df2840c4ot 4 format(s):
    0:00:03.4692382 r5:df2840c456 861
    1139.355987] r4:df2e9bec00m 0x15018
    INFO 1139.361572] [<c00799d0>] (warn_slowpath_null+0x0/0x2c) from [<c03424c4>] (isp_video_pix_to_mbus+0x70/0xa4)
    00m [ 1139.373077] [<c0342454>] (isp_video_pix_to_mbus+0x0/0xa4) from [<c0342b88>] (isp_video_try_format+0x5c/0xd8)
    v4l2 gs[ 1139.384765] r5:df2c58d8tv4l2object.c:96 r4:df2840c02:gst_v4l2_objec
    t_fill_format_li[ 1139.392730] [<c0342b2c>] (isp_video_try_format+0x0/0xd8) from [<c032da0c>] (__video_do_ioctl+0xe48/0x3f34)
    st:<v4l2src0> 1139.404510] [<c032cbc4>] (__video_do_ioctl+0x0/0x3f34) from [<c032c9b4>] (__video_usercopy+0x2e4/0x428)
    0m YU12 (emula[ 1139.415466] [<c032c6d0>] (__video_usercopy+0x0/0x428) from [<c032cb28>] (video_ioctl2+0x30/0x38)
    ted)

    。。。。。。

    The file for detail:

    2084.gst-log2.txt


    Is something wrong for my ISP driver? 

    I can't fix the problem 

    BR

    Berlin Chen


  • Hello,


    "Is something wrong for my ISP driver? "

    Check if the driver prints anything to the kernel log (use the dmesg command)
     when you get the above error with GStreamer and post the kernel log.

    Best Regards,
    Margarita
  • Hello,

    First of all you need to verify that your capture and display port is working properly.

    To do that, i would recommend you running DVSDK encode decode demo to test your capture -> display path. If everything is working as expected then i don't see any reason why gstreamer v4l2src will not work.

    The error: "<v4l2src0> error: Device '/dev/video2' cannot capture at 640x480" and  is a big clue.  It means that whatever is coming out of v4l2src is not supported by your video device.  Also, "check your filtered caps" means, your caps are wrong. 

    Find out what caps your video device supports.  Then using those caps, build a new caps filter.  You may also need to find the framerate you can support. 

    Test your caps using variations of this pipeline:

    gst-launch    v4l2src always-copy=false num_buffers=-5 !  video/x-raw-yuv,width=720,height=480,framerate=30000/1001 ! fakesink -v

    Notice I set num-buffers to 5.  If the pipe works, that's enought to prove it and few enough that you will be able to read all the progress/state messages. 

    Best Regards,

    Margarita

  • Hi Margarita,

             I'm sure my capture and display port works fine, because I can capture and display with usb camera.

    I can get capture with yavta tool. The follow I config:

    /*** sensor->ccdc->memory ***/
    ./media-ctl -l '17:0->5:0[1]' /*ov5640-->ccdc input*/
    ./media-ctl -l '5:1->6:0[1]' /*ccdc --> ccdc output(/dev/video2)*/
    ./media-ctl -f '17:0[UYVY 640x480]'
    ./media-ctl -f '5:1[UYVY 640x480]'

    ./yavta -p -f UYVY -s 640x480 -n 1 --capture=10 -F `media-ctl -e \
    "OMAP3 ISP CCDC output"` --file=img#.uyvy

    Device /dev/video2 opened.
    Device `OMAP3 ISP CCDC output' on `media' is a video capture device.
    Video format set: UYVY (59565955) 640x480 (stride 1280) buffer size 614400
    Video format: UYVY (59565955) 640x480 (stride 1280) buffer size 614400
    10 buffers requested.
    length: 614400 offset: 0
    Buffer 0 mapped at address 0x40274000.
    length: 614400 offset: 614400
    Buffer 1 mapped at address 0x403ff000.
    length: 614400 offset: 1228800
    Buffer 2 mapped at address 0x4058c000.
    length: 614400 offset: 1843200
    Buffer 3 mapped at address 0x40686000.
    length: 614400 offset: 2457600
    Buffer 4 mapped at address 0x40791000.
    length: 614400 offset: 3072000
    Buffer 5 mapped at address 0x408a6000.
    length: 614400 offset: 3686400
    Buffer 6 mapped at address 0x40a13000.
    length: 614400 offset: 4300800
    Buffer 7 mapped at address 0x40b21000.
    length: 614400 offset: 4915200
    Buffer 8 mapped at address 0x40ca5000.
    length: 614400 offset: 5529600
    Buffer 9 mapped at address 0x40dd9000.
    Press enter to start capture

    0 (0) [-] 4294967295 614400 bytes 1631.554594 1631.554686 12.978 fps
    1 (1) [-] 4294967295 614400 bytes 1631.619355 1631.619477 15.441 fps
    2 (2) [-] 4294967295 614400 bytes 1631.684142 1631.684264 15.435 fps
    3 (3) [-] 4294967295 614400 bytes 1631.748932 1631.749054 15.434 fps
    4 (4) [-] 4294967295 614400 bytes 1631.813720 1631.813812 15.435 fps
    5 (5) [-] 4294967295 614400 bytes 1631.878479 1631.878601 15.442 fps
    6 (6) [-] 4294967295 614400 bytes 1631.943267 1631.943298 15.435 fps
    7 (7) [-] 4294967295 614400 bytes 1632.008056 1632.008087 15.435 fps
    8 (8) [-] 4294967295 614400 bytes 1632.072814 1632.072937 15.442 fps
    9 (9) [-] 4294967295 614400 bytes 1632.137603 1632.137725 15.435 fps
    Captured 10 frames in 0.660186 seconds (15.147246 fps, 9306467.726055 B/s).
    10 buffers released.

    and I can get 10 files (img000000.uyvy - img000009.uyvy) 

    but gstreamer still not work. I don't know why 

    Thanks,

    Berlin Chen

  • Hi Margarita,

             I add some printk() in my kernel. I found the error occurred when gst-lauch set  "VIDIOC_TRY_FMT" in v4l2-ioctl.c -> __video_do_ioctl() .

    It will finnally call the function isp_video_try_format() with wrong parameters.

    I get lots of calls to isp_video_try_format for unrelated formats like YU12, YV12, BGR3, and RGB3. I assume this is gstreamer's fault.

    Is this expected? What would be the best way to resolve it?


    Here is the log:

    [@OMAP3EVM /]# gst-launch -v v4l2src device=/dev/video2 !\
    > ffmpegcolorspace !\
    > video/x-raw-yuv,format=\(fourcc\)UYVY, width=640, height=480!\
    > TIVidenc1 codecName=h264enc engineName=codecServer !\
    > rtph264pay pt=96 ! udpsink host=192.168.2.32 port=7000 sync=false async=false

    (gst-launch-0.10:844): GLib-WARNING **: getpwuid_r(): failed due to unknown user id (0)
    Setting pipeline to PAUSED ...
    [ 75.233489] chen-__video_do_ioctl() ENTER
    [ 75.238861] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCAP(0)
    [ 75.245544] chen-__video_do_ioctl EXIT
    [ 75.249481] chen-__video_do_ioctl() ENTER
    [ 75.253723] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_G_FMT(4)
    [ 75.260131] chen-__video_do_ioctl EXIT
    [ 75.264099] chen-__video_do_ioctl() ENTER
    [ 75.268341] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_ENUM_FMT(2)
    [ 75.274993] chen-__video_do_ioctl EXIT
    [ 75.278930] chen-__video_do_ioctl() ENTER
    [ 75.283172] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCAP(0)
    [ 75.289825] chen-__video_do_ioctl EXIT
    [ 75.294097] chen-__video_do_ioctl() ENTER
    [ 75.298309] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_G_INPUT(38)
    [ 75.304992] chen-__video_do_ioctl EXIT
    [ 75.308929] chen-__video_do_ioctl() ENTER
    [ 75.313140] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_ENUMINPUT(26)
    [ 75.320007] chen-__video_do_ioctl EXIT
    [ 75.324920] chen-__video_do_ioctl() ENTER
    [ 75.329132] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.336029] chen-__video_do_ioctl EXIT
    [ 75.339965] chen-__video_do_ioctl() ENTER
    [ 75.344177] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.351043] chen-__video_do_ioctl EXIT
    [ 75.354980] chen-__video_do_ioctl() ENTER
    [ 75.359191] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.366058] chen-__video_do_ioctl EXIT
    [ 75.369995] chen-__video_do_ioctl() ENTER
    [ 75.374206] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.381072] chen-__video_do_ioctl EXIT
    [ 75.385284] chen-__video_do_ioctl() ENTER
    [ 75.389495] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.396331] chen-__video_do_ioctl EXIT
    [ 75.400299] chen-__video_do_ioctl() ENTER
    [ 75.404510] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCAP(0)
    [ 75.411193] chen-__video_do_ioctl EXIT

    libv4lcontrol: e[ 75.095550] chen-__video_do_ioctl() ENTER
    rror getting use[ 75.100067] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCAP(0)
    rname using uid [ 75.108123] chen-__video_do_ioctl EXIT
    instead: No such[ 75.113525] chen-__video_do_ioctl() ENTER
    file or directo[ 75.119079] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_ENUMINPUT(26)
    ry
    [ 75.127319] chen-__video_do_ioctl EXIT
    [ 75.131622] chen-__video_do_ioctl() ENTER
    [ 75.136108] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_S_INPUT(39)
    [ 75.142791] chen-__video_do_ioctl EXIT
    [ 75.146728] chen-__video_do_ioctl() ENTER
    [ 75.150970] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_G_INPUT(38)
    [ 75.157623] chen-__video_do_ioctl EXIT
    [ 75.161834] chen-__video_do_ioctl() ENTER
    [ 75.166107] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_ENUMINPUT(26)
    [ 75.172943] chen-__video_do_ioctl EXIT
    [ 75.176910] chen-__video_do_ioctl() ENTER
    [ 75.181091] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_ENUMSTD(25)
    [ 75.187774] chen-__video_do_ioctl EXIT
    [ 75.191833] chen-__video_do_ioctl() ENTER
    [ 75.196044] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_ENUMSTD(25)
    [ 75.202728] chen-__video_do_ioctl EXIT
    [ 75.206695] chen-__video_do_ioctl() ENTER
    [ 75.210876] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_ENUMSTD(25)
    [ 75.217559] chen-__video_do_ioctl EXIT
    [ 75.221527] chen-__video_do_ioctl() ENTER
    [ 75.225738] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_ENUMSTD(25)
    [ 75.232696] chen-__video_do_ioctl EXIT
    [ 75.236694] chen-__video_do_ioctl() ENTER
    [ 75.240875] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_ENUMSTD(25)
    [ 75.247558] chen-__video_do_ioctl EXIT
    [ 75.251525] chen-__video_do_ioctl() ENTER
    [ 75.255737] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_ENUMSTD(25)
    [ 75.262420] chen-__video_do_ioctl EXIT
    [ 75.266357] chen-__video_do_ioctl() ENTER
    [ 75.270599] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_ENUMSTD(25)
    [ 75.277252] chen-__video_do_ioctl EXIT
    [ 75.281219] chen-__video_do_ioctl() ENTER
    [ 75.285430] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_ENUMSTD(25)
    [ 75.292114] chen-__video_do_ioctl EXIT
    [ 75.296051] chen-__video_do_ioctl() ENTER
    [ 75.300292] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_ENUMSTD(25)
    [ 75.306976] chen-__video_do_ioctl EXIT
    [ 75.310913] chen-__video_do_ioctl() ENTER
    [ 75.315124] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_ENUMSTD(25)
    [ 75.321807] chen-__video_do_ioctl EXIT
    [ 75.326019] chen-__video_do_ioctl() ENTER
    [ 75.330261] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.337097] chen-__video_do_ioctl EXIT
    [ 75.341064] chen-__video_do_ioctl() ENTER
    [ 75.345275] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.352111] chen-__video_do_ioctl EXIT
    [ 75.356079] chen-__video_do_ioctl() ENTER
    [ 75.360290] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.367126] chen-__video_do_ioctl EXIT
    [ 75.371093] chen-__video_do_ioctl() ENTER
    [ 75.375305] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.382141] chen-__video_do_ioctl EXIT
    [ 75.386108] chen-__video_do_ioctl() ENTER
    [ 75.390319] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.397155] chen-__video_do_ioctl EXIT
    [ 75.401123] chen-__video_do_ioctl() ENTER
    [ 75.405303] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.412170] chen-__video_do_ioctl EXIT
    [ 75.416381] chen-__video_do_ioctl() ENTER
    [ 75.420593] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.427459] chen-__video_do_ioctl EXIT
    [ 75.431396] chen-__video_do_ioctl() ENTER
    [ 75.435607] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.442474] chen-__video_do_ioctl EXIT
    [ 75.446411] chen-__video_do_ioctl() ENTER
    [ 75.450622] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.457489] chen-__video_do_ioctl EXIT
    [ 75.461425] chen-__video_do_ioctl() ENTER
    [ 75.465637] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.472503] chen-__video_do_ioctl EXIT
    [ 75.476440] chen-__video_do_ioctl() ENTER
    [ 75.480651] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.487518] chen-__video_do_ioctl EXIT
    [ 75.491424] chen-__video_do_ioctl() ENTER
    [ 75.495666] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.502532] chen-__video_do_ioctl EXIT
    [ 75.506591] chen-__video_do_ioctl() ENTER
    [ 75.511108] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.517974] chen-__video_do_ioctl EXIT
    [ 75.521911] chen-__video_do_ioctl() ENTER
    [ 75.526153] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.532989] chen-__video_do_ioctl EXIT
    [ 75.536926] chen-__video_do_ioctl() ENTER
    [ 75.541168] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.548004] chen-__video_do_ioctl EXIT
    [ 75.552062] chen-__video_do_ioctl() ENTER
    [ 75.556274] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.563140] chen-__video_do_ioctl EXIT
    [ 75.567108] chen-__video_do_ioctl() ENTER
    [ 75.571319] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.578155] chen-__video_do_ioctl EXIT
    [ 75.582122] chen-__video_do_ioctl() ENTER
    [ 75.586334] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.593170] chen-__video_do_ioctl EXIT
    [ 75.597137] chen-__video_do_ioctl() ENTER
    [ 75.601348] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.608459] chen-__video_do_ioctl EXIT
    [ 75.612426] chen-__video_do_ioctl() ENTER
    [ 75.616638] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.623504] chen-__video_do_ioctl EXIT
    [ 75.627441] chen-__video_do_ioctl() ENTER
    [ 75.631652] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.638488] chen-__video_do_ioctl EXIT
    [ 75.642456] chen-__video_do_ioctl() ENTER
    [ 75.646667] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.653503] chen-__video_do_ioctl EXIT
    [ 75.657440] chen-__video_do_ioctl() ENTER
    [ 75.661682] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.668518] chen-__video_do_ioctl EXIT
    [ 75.672454] chen-__video_do_ioctl() ENTER
    [ 75.676696] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.683532] chen-__video_do_ioctl EXIT
    [ 75.687469] chen-__video_do_ioctl() ENTER
    [ 75.691680] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.698791] chen-__video_do_ioctl EXIT
    [ 75.702728] chen-__video_do_ioctl() ENTER
    [ 75.706970] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.713806] chen-__video_do_ioctl EXIT
    [ 75.717742] chen-__video_do_ioctl() ENTER
    [ 75.721984] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.728820] chen-__video_do_ioctl EXIT
    [ 75.732757] chen-__video_do_ioctl() ENTER
    [ 75.736999] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.743835] chen-__video_do_ioctl EXIT
    [ 75.747772] chen-__video_do_ioctl() ENTER
    [ 75.752014] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_QUERYCTRL(36)
    [ 75.758850] chen-__video_do_ioctl EXIT
    [ 75.762847] chen-__video_do_ioctl() ENTER
    [ 75.767059] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_G_STD(23)
    [ 75.773559] chen-__video_do_ioctl EXIT
    [ 75.777526] chen-__video_do_ioctl() ENTER
    [ 75.781738] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_G_INPUT(38)
    [ 75.788421] chen-__video_do_ioctl EXIT
    [ 75.797149] chen-__video_do_ioctl() ENTER
    [ 75.801452] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_TRY_FMT(64)
    [ 75.808135] chen- type=1, with=1, height=1, pixelformat=YU12
    [ 75.814086] chen - isp_video_try_format() ENTER
    [ 75.818847] chen-__video_do_ioctl EXIT
    [ 75.822845] chen-__video_do_ioctl() ENTER
    [ 75.827056] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_TRY_FMT(64)
    [ 75.833740] chen- type=1, with=1, height=1, pixelformat=YU12
    [ 75.839691] chen - isp_video_try_format() ENTER
    [ 75.844421] chen-__video_do_ioctl EXIT
    [ 75.848388] chen-__video_do_ioctl() ENTER
    [ 75.852600] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_TRY_FMT(64)
    [ 75.859283] chen- type=1, with=32768, height=32768, pixelformat=YU12
    [ 75.865966] chen - isp_video_try_format() ENTER
    [ 75.870727] chen-__video_do_ioctl EXIT
    [ 75.874664] chen-__video_do_ioctl() ENTER
    [ 75.878875] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_TRY_FMT(64)
    [ 75.885833] chen- type=1, with=32768, height=32768, pixelformat=YU12
    [ 75.892486] chen - isp_video_try_format() ENTER
    [ 75.897216] chen-__video_do_ioctl EXIT
    [ 75.901306] chen-__video_do_ioctl() ENTER
    [ 75.905487] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_TRY_FMT(64)
    [ 75.912200] chen- type=1, with=1, height=1, pixelformat=YV12
    [ 75.918151] chen - isp_video_try_format() ENTER
    [ 75.922882] chen-__video_do_ioctl EXIT
    [ 75.926849] chen-__video_do_ioctl() ENTER
    [ 75.931060] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_TRY_FMT(64)
    [ 75.937744] chen- type=1, with=1, height=1, pixelformat=YV12
    [ 75.943695] chen - isp_video_try_format() ENTER
    [ 75.948455] chen-__video_do_ioctl EXIT
    [ 75.952392] chen-__video_do_ioctl() ENTER
    [ 75.956604] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_TRY_FMT(64)
    [ 75.963287] chen- type=1, with=32768, height=32768, pixelformat=YV12
    [ 75.969970] chen - isp_video_try_format() ENTER
    [ 75.974731] chen-__video_do_ioctl EXIT
    [ 75.978912] chen-__video_do_ioctl() ENTER
    [ 75.983123] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_TRY_FMT(64)
    [ 75.989807] chen- type=1, with=32768, height=32768, pixelformat=YV12
    [ 75.996490] chen - isp_video_try_format() ENTER
    [ 76.001251] chen-__video_do_ioctl EXIT
    [ 76.005310] chen-__video_do_ioctl() ENTER
    [ 76.009552] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_TRY_FMT(64)
    [ 76.016204] chen- type=1, with=1, height=1, pixelformat=BGR3
    [ 76.022155] chen - isp_video_try_format() ENTER
    [ 76.026916] chen-__video_do_ioctl EXIT
    [ 76.030853] chen-__video_do_ioctl() ENTER
    [ 76.035064] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_TRY_FMT(64)
    [ 76.041748] chen- type=1, with=1, height=1, pixelformat=BGR3
    [ 76.047698] chen - isp_video_try_format() ENTER
    [ 76.052459] chen-__video_do_ioctl EXIT
    [ 76.056396] chen-__video_do_ioctl() ENTER
    [ 76.060607] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_TRY_FMT(64)
    [ 76.067291] chen- type=1, with=32768, height=32768, pixelformat=BGR3
    [ 76.074249] chen - isp_video_try_format() ENTER
    [ 76.078979] chen-__video_do_ioctl EXIT
    [ 76.082946] chen-__video_do_ioctl() ENTER
    [ 76.087158] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_TRY_FMT(64)
    [ 76.093841] chen- type=1, with=32768, height=32768, pixelformat=BGR3
    [ 76.100494] chen - isp_video_try_format() ENTER
    [ 76.105285] chen-__video_do_ioctl EXIT
    [ 76.109313] chen-__video_do_ioctl() ENTER
    [ 76.113555] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_TRY_FMT(64)
    [ 76.120239] chen- type=1, with=1, height=1, pixelformat=RGB3
    [ 76.126159] chen - isp_video_try_format() ENTER
    [ 76.130920] chen-__video_do_ioctl EXIT
    [ 76.134887] chen-__video_do_ioctl() ENTER
    [ 76.139068] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_TRY_FMT(64)
    [ 76.145751] chen- type=1, with=1, height=1, pixelformat=RGB3
    [ 76.151702] chen - isp_video_try_format() ENTER
    [ 76.156463] chen-__video_do_ioctl EXIT
    [ 76.160400] chen-__video_do_ioctl() ENTER
    [ 76.164611] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_TRY_FMT(64)
    [ 76.171569] chen- type=1, with=32768, height=32768, pixelformat=RGB3
    [ 76.178253] chen - isp_video_try_format() ENTER
    [ 76.183013] chen-__video_do_ioctl EXIT
    [ 76.186950] chen-__video_do_ioctl() ENTER
    [ 76.191162] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_TRY_FMT(64)
    [ 76.197845] chen- type=1, with=32768, height=32768, pixelformat=RGB3
    [ 76.204528] chen - isp_video_try_format() ENTER
    [ 76.209289] chen-__video_do_ioctl EXIT
    [ 76.228729] chen-__video_do_ioctl() ENTER
    [ 76.232940] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_TRY_FMT(64)
    [ 76.239624] chen- type=1, with=640, height=480, pixelformat=YU12
    [ 76.245941] chen - isp_video_try_format() ENTER
    [ 76.250701] chen-__video_do_ioctl EXIT
    [ 76.254669] chen-__video_do_ioctl() ENTER
    [ 76.258880] chen-name=OMAP3 ISP CCDC output : cmd=VIDIOC_TRY_FMT(64)
    [ 76.265838] chen- type=1, with=640, height=480, pixelformat=YU12
    [ 76.272155] chen - isp_video_try_format() ENTER
    [ 76.276916] chen-__video_do_ioctl EXIT
    ERROR: Pipeline doesn't want to pause.
    ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video2' cannot capture at 640x480
    Additional debug info:
    gstv4l2object.c(2082): gst_v4l2_object_set_format (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
    Call to S_FMT failed for YU12 @ 640x480: Invalid argument
    Setting pipeline to NULL ...
    Freeing pipeline ...
    5050.gst-log3.txt

    when I use the usb camera there is nothing be printed, and works fine.

    [@OMAP3EVM bin]# gst-launch -v v4l2src device=/dev/video9 !\
    > ffmpegcolorspace !\
    > video/x-raw-yuv,format=\(fourcc\)UYVY, width=640, height=480!\
    > TIVidenc1 codecName=h264enc engineName=codecServer !\
    > rtph264pay pt=96 ! udpsink host=192.168.2.32 port=7000 sync=false async=false

    (gst-launch-0.10:856): GLib-WARNING **: getpwuid_r(): failed due to unknown user id (0)
    Setting pipeline to PAUSED ...
    /GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)YUY2, width=(int)640, height=(int)480, framerate=(fraction)30/1
    Pipeline is live and does not need PREROLL ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock
    /GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)UYVY, framerate=(fraction)30/1, width=(int)640, height=(int)480
    /GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)YUY2, width=(int)640, height=(int)480, framerate=(fraction)30/1
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)UYVY, framerate=(fraction)30/1, width=(int)640, height=(int)480
    /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)UYVY, framerate=(fraction)30/1, width=(int)640, height=(int)480
    /GstPipeline:pipeline0/GstTIVidenc1:tividenc10.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)UYVY, framerate=(fraction)30/1, width=(int)640, height=(int)480
    /GstPipeline:pipeline0/GstTIVidenc1:tividenc10.GstPad:src: caps = video/x-h264, framerate=(fraction)30/1, width=(int)640, height=(int)480
    /GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0.GstPad:sink: caps = video/x-h264, framerate=(fraction)30/1, width=(int)640, height=(int)480
    /GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0.GstPad:src: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, sprop-parameter-sets=(string)\"Z0KAHotoCgPRAA\\=\\=\\,aM4BqHcgAA\\=\\=\", payload=(int)96, ssrc=(uint)818544319, clock-base=(uint)1466114291, seqnum-base=(uint)4924
    /GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, sprop-parameter-sets=(string)\"Z0KAHotoCgPRAA\\=\\=\\,aM4BqHcgAA\\=\\=\", payload=(int)96, ssrc=(uint)818544319, clock-base=(uint)1466114291, seqnum-base=(uint)4924

    B. R

    Berlin Chen


  • Hi Chen,

    The driver ov5640 is a subdevice of OMAP3 ISP driver. It's a new v4l2 framework, the v4l2-subdev. The proposal is that you need a media-controller

    framework (media-ctl) to configure. 

    There are this links about it:

    Kernel Documentation: http://www.kernel.org/doc/Documentation/video4linux/omap3isp.txt

    Laurent's Presentation: http://linuxtv.org/downloads/presentations/summit_jun_2010/20100206-fosdem.pdf

    Wiki: http://www.omappedia.org/wiki/Camera-ISP_Driver

    Regards

    Adriano Martins

  • Hi chen, the ov5640.c and ov5640_regs.h are the same in the https://gitorious.org/ap-module-dm37/kernel/commit/b82d1037321bb17f6c6873cfa42c2c94f7a1b009/diffs ?

    I'm porting the ov5640.c too. Do you make changes in this files?

    Thanks

    Regards

    Adriano Martins

  • Hi adriano,

                  Thank you for your links. It's very helpful for me.

                  >Do you make changes in this files?

                  Yes, I porting the ov5640 driver in that link, and doesn't make any change.


    Best Regards

    Berlin Chen


  • Hi Chen,

    Great. I think a google seach with terms "gstreamer" and "yavta" together, is uselful to your problem.
    Thanks for information!

    Regards
    Adriano Martins

  • Hi adriano,

                 I think there is something wrong with my ISP driver. I found a patch for my kernel about OMAP3 ISP driver.

    but I don't know how to get it. Can you help me? 

    The follow link described the patch:

    http://comments.gmane.org/gmane.linux.ports.arm.omap/47026

    Thanks,

    Berlin Chen

  • Hi Margarita,

             I have fixed the problem! I found  my ISP video driver doesn't support enumerate  format and frame sizes.

     I modified the driver and it works. Now I can put the video to my computer via gstreamer and rtp.

    Thanks for all the replies.

    Best regards.

    Berlin Chen <armlovelinux@163.com>

  • Hello,

    I am glad that this issue is solved.

    Best Regards,

    Margarita

  • Hi Chen,

    Sorry, I can't try solve your problem in last day,

    it's great that you fix it.

    Regards

    Adriano Martins

  • Hi Chen,

    Can you provide the solution for your problem?

    Thanks

    Adriano Martins

  • Hi adriano,

             Sorry for late.

             I found gstreamer will call the function vidioc_enum_fmt_vid_cap() and vidioc_enum_framesizes() before capture video,

             but my ISP driver haven't such functions, I appended and implemented these function, and It's works.


    BR

    Berlin Chen

  • Hi

    I have the same problem to.

    Can you help me solved it? How did you implemented this function?

    in driver - "Currently only supports VGA resolution"
    Did you add new resolution in driver?

    BR

    Michael

  • Hi Мichael, Sorry for long time to reply,

    Whats your question about ov5640 driver?

    Do you have already a part of code? Any example?

    I code the driver in linux-3.2.30, using v4l2-subdev interface. So, if you are using linux 2.6.37, I'm not sure that the subdev framework is already implemented. You'll need apply patches to support it.

    Did you get the source provided in the begin of topic?

    BR

    Adriano Martins

  • Hi Adriano!

    Yes, I got the source code from here

    My problem is that I can't configure chip OV5640 for work with Beagleboard-xM.