Dear All:
I am trying to let v4l2 capture use a usb camera working on my evm814x board from mistral .
The EZSDK I am using is Version5_05_01_04.
My usb camera can support the following format:
YUY2(320*240)
MJPEG(640*480)
My bootargs are:
#setenv bootargs console=ttyO0,115200n8 rootwait rw mem=364M@0x80000000 mem=320M@0x9FC00000
vmalloc=500M notifyk.vpssm3_sva=0xBF900000 root=/dev/nfs
nfsroot=192.168.1.200:/home/be/targetfs ip=dhcp
#setenv serverip '192.168.1.200';tftp 0x82000000 uImage-dm814x-evm.bin;
#setenv bootcmd 'tftpboot 0x82000000 uImage-dm814x-evm.bin;bootm 0x82000000';
I download the gstreamer_ti_dm81xx source from
https://gstreamer.ti.com/svn/gstreamer_ti/trunk/gstreamer_ti_dm81xx
What I modified is following:
1、change_resolution.sh 1080p60
2、change_display.sh hdmi
3、change from OMX to V4L2 firmware for capture/display
#cp load-hd-v4l2-firmware.sh /etc/init.d/load-hd-firmware.sh
#sync
when I run the following commands are success working on evm814x board
#gst-launch -v videotestsrc num-buffers=1000 ! omx_h264enc ! filesink location=sample.264
#gst-launch -v videotestsrc num-buffers=1000 ! omx_h264enc ! gstperf ! rtph264pay pt=102 !
udpsink host=192.168.1.4 port=6010 sync=false
#gst-launch -v filesrc location=/usr/share/ti/data/videos/dm816x_1080p_demo.264 ! 'video/x-
h264' ! h264parse access-unit=true ! omx_h264dec ! omx_scaler ! omx_ctrl display-
mode=OMX_DC_MODE_1080P_60 ! omx_videosink sync=false
But when I run the following commands is wrong working on evm814x board
root@dm814x-evm:~# gst-launch v4l2src num-buffers=1 ! ffmpegcolorspace ! video/x
-raw-yuv, format=\(fourcc\)YUY2, width=320,height=240 ! filesink location=test.
yuv
Setting pipeline to PAUSED ...
Mode set is 0
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not negotiate format
Additional debug info:
gstbasesrc.c(2778): gst_base_src_start (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Check your filtered caps, if any
Setting pipeline to NULL ...
Freeing pipeline ...
but the command can work on my ubuntu use the same usb scamera.
when I use the v4l2src plugin ,I alaway get the error.
Can anyone help me the solve problem or tell me why?
Thanks!