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.

AM57x USB camera v4l2 interface issue

Other Parts Discussed in Thread: BEAGLEBOARD-X15

Hi E2E Community,

I am trying to achieve usb camera record and rtp streaming on BeagleBoard-x15
Usb camera used :- logitech c270

I am using Ti Processor SDK(www.ti.com/.../PROCESSOR-SDK-AM57X) for this activity as I want to use all the Hw acceleration like  VPE, IVA,DucatiEncoder etc which is already built and hooked into gstreamer as plugins.

after connecting the USB camera below is the v4l2 device list

=====================================================
root@am57xx-evm:~/sid# v4l2-ctl --list-devices
wbcap (platform:omapwb-cap):
/dev/video11

omapwb-m2m (platform:omapwb-m2m):
/dev/video10

vpe (platform:vpe):
/dev/video0

UVC Camera (046d:0825) (usb-xhci-hcd.1.auto-1.1):
/dev/video1
====================================================


Now as explained in http://processors.wiki.ti.com/index.php/Processor_Training:_Multimedia#Encode_Pipeline


I tried below gstreamer command


A)  Capture and Encode into a MP4 file.

-------------------------------------------------------------------------------------------------------------

target # gst-launch-1.0 -e v4l2src device=/dev/video1 num-buffers=1000 io-mode=4 ! 'video/x-raw, \

format=(string)YUY2, width=(int)1280, height=(int)720, framerate=(fraction)30/1' ! vpe num-input-buffers=8 ! \
queue ! ducatimpeg4enc bitrate=4000 ! queue ! mpeg4videoparse ! qtmux ! filesink location=x.mp4

---------------------------------------------------------------------------------------------------------------------------------------------------------

also

B)

Note:

The following pipeline can be used in usecases where vpe processing is not required.

---------------------------------------------------------------------------------------------------------------------------------------------------------

target # gst-launch-1.0 -e v4l2src device=/dev/video1 num-buffers=1000 io-mode=5 ! 'video/x-raw, \

format=(string)NV12, width=(int)1280, height=(int)720, framerate=(fraction)30/1' ! ducatimpeg4enc bitrate=4000 ! \
queue ! mpeg4videoparse ! qtmux ! filesink location=x.mp4

---------------------------------------------------------------------------------------------------------------------------------------------------------

But getting the same error


==============================
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.
Additional debug info:
../../../../gstreamer-1.6.3/libs/gst/base/gstbasesrc.c(2943): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:

==============================

Note :-  I have also tried to look into matrix sample app script /usr/bin/runIvahdVipVpeMpeg4EncDec.sh
"Run VIP, VPE, Ducati MPEG4 Encode, Ducati MPEG4 Decode and Display" but it seems its looking Video devnode with VIP driver and not able to find it.


Can anybody guide me the way to make usb camera working with AM57X which uses all the available hw acceleration in TI chip. (At per current plan will not be able use separate camera module) 

Thanks for help 


Regards
Pallab Sarkar