Hello all,
I am trying to do the video streaming through PureThermal mini- FLIR Lepton USB web cam. The webcam is been detected but as soon as I put the below command I get "Internal Data stream error " :
gst-launch-1.0 -e v4l2src device=/dev/video3 ! "video/x-raw, format=UYVY, width=160, height=120,framerate=9/1" ! autovideosink
dmseg log :
Setting pipeline to PAUSED ...
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
Pipeline is live and does not need PREROLL ...
Got context from element 'autovideosink0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayVivFB\)\ gldisplayvivfb0";
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[ 205.459934] uvcvideo 3-1:1.1: Failed to submit URB 0 (-28).
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory.
Additional debug info:
../git/sys/v4l2/gstv4l2src.c(659): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Buffer pool activation failed
Execution ended after 0:00:00.040366375
Setting pipeline to NULL ...
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
../git/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Freeing pipeline ...
My kernel version is : 5.15
Waiting for your response,
Thanks & Regards,
Monica Sharma
hi, i'm can't able to open dual usb camera at same time but it is working well for single usb camera .i have connected these usb camera through usb hub .
it shows error message that :
1. not enough bandwidth for new state
2. not enough bandwidth for altsetting 11.
3. gstreamer warning : embedded video playback halted ; module v4l2src1 reported : Failed to allocate required memory.
4. gstreamer warning : unable to start pipeline
and i have pic for your reference guys .please help with it .
try to use the command as below, I tested on my imx8mm successfully
gst-launch-1.0 -e v4l2src device=/dev/videoX ! image/jpeg,format=MJPEG,width=x,height=y ,framerate=30/1 ! jpegdec ! waylandsink
videoX, x, y depends on your video device and width height you need
Hello Joanxie,
I tried the above command, I am getting the following error :
gst-launch-1.0 -e v4l2src device=/dev/video3 ! image/jpeg,format=MJPEG,width=160,height=120 ,framerate=9/1 ! jpegdec ! waylandsink
Setting pipeline to PAUSED ...
error: XDG_RUNTIME_DIR not set in the environment.
Failed to set pipeline to PAUSED.
Setting pipeline to NULL ...
Freeing pipeline ...
Thanks & Regards,
Monica Sharma
I just tested nxp bsp withouth modification, did your image use wayland as backend when buiding the image?
what bsp do you use? the images you built or demo images? pls try the demo images to test firstly
Hello joanxie,
I am using meta-freescale, I also tried the demo image by copying “image-imx8mmevk.bin” and imx8mm-evk.dtb in my boot partition. But getting the same - "internal data stream error".
Please let me know if I am supposed to do any changes in the device tree.