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.

Linux/AM5728: AM5728 USB camera interface issue

Part Number: AM5728


Tool/software: Linux

Dear E2E Community,

I am using latest processor SDK and three Logitec c270 cameras

I am using USB/UVC patch from earlier thread :  https://e2e.ti.com/support/arm/sitara_arm/f/791/p/555118/2029600#2029600

The devices list is shown below:

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

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

UVC Camera (046d:0825) (usb-xhci-hcd.1.auto-1.2):
    /dev/video3

UVC Camera (046d:0825) (usb-xhci-hcd.1.auto-1.3):
    /dev/video2

I am able to run following commands for two cameras. But when I run for the third camera (while 2 usb cameras are in use already), I am getting error.

I am using shared memory as sink

step 1:

gst-launch-1.0   v4l2src device=/dev/video1 !   video/x-raw,width=640,height=480,framerate=10/1!   shmsink     socket-path=/tmp/foo2     sync=true     wait-for-connection=false     shm-size=10000000

step 2:

gst-launch-1.0   v4l2src device=/dev/video2 !   video/x-raw,width=640,height=480,framerate=10/1!   shmsink     socket-path=/tmp/foo3     sync=true     wait-for-connection=false     shm-size=10000000

step 3:

gst-launch-1.0   v4l2src device=/dev/video3 !   video/x-raw,width=640,height=480,framerate=10/1!   shmsink     socket-path=/tmp/foo4     sync=true     wait-for-connection=false     shm-size=10000000

Procedure:

Three terminals are opened. In first terminal step 1 is run. In second terminal step 2 is run.

No issue as of now. But when i run step 3 I get the following error:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not read from resource.
Additional debug info:
../../../gst-plugins-good-1.6.3/sys/v4l2/gstv4l2bufferpool.c(1055): gst_v4l2_buffer_pool_poll (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
poll error 1: No space left on device (28)
Execution ended after 0:00:01.541320120
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

Please suggest me on how to access 3 USB cameras. In-fact I want all the three cameras to work at resolution 1280 x 720


Thanks,

Siddartha