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.
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