Error starting streaming on device '/dev/video0'. system error: Cannot allocate memory

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Error starting streaming on device '/dev/video0'. system error: Cannot allocate memory

Aldo85
Hi all,
I've found an issue creating a pipeline to get images from a webcam:
root@spear600:~# gst-launch-0.10 v4l2src device=/dev/video0 ! video/x-raw-yuv,width=320,height=240,framerate=15/1  !  ffmpegcolorspace ! jpegenc ! multifilesink location=/opt/image-out-%05d.jpg

Setting pipeline to PAUSED ...
uvcvideo: device USB Video Camera requested null bandwidth, defaulting to lowest.
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Error starting streaming on device '/dev/video0'.
Additional debug info:
../../../sys/v4l2/gstv4l2object.c(1983): gst_v4l2_object_start_streaming (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
system error: Cannot allocate memory
Setting pipeline to NULL ...
Freeing pipeline ...

NOTE: this pipeline has a correct syntax because it works good on Ubuntu... It gives error only on my stlinux OS...
Other details:
-when I plug the wecam I get these messages:
root@spear600:~# usb 1-1: new high speed USB device using spear-ehci and address 2
usb 1-1: configuration #1 chosen from 1 choice
uvcvideo: Found UVC 1.00 device USB Video Camera (0553:0522)
input: USB Video Camera as /class/input/input1

The webcam device exists inside /dev :
root@spear600:~# ls /dev | grep video
video
video0

What can i do to fix my issue? can anyone help me ?
Thankyou!