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.

USB Camera Gstreamer Pipeline

Other Parts Discussed in Thread: DM385

Hi TI,

I have logitech camera. I'm trying to run pipeline in DM385 target board.

gst-launch -v v4l2src always-copy=FALSE ! 'video/x-raw-yuv,format=(fourcc)YUY2,width=640,height=480,framerate=15/1' ! omxbufferalloc numBuffers=10 ! queue ! gstperf ! omx_videosink sync=false

Getting this issue :-

gst-launch-0.10: OmxRpc.c:624: OmxRpc_Instance_init: Assertion `(OmxRpc_errorNone == retVal)' failed.
Aborted

Kindly guide me to solve this issue !!!

Regards,

Rajesh Kannan.S

  • Hello,

    Refer to thread [1], this seems to be a problem with omx_videosink plugin.

    [1] e2e.ti.com/.../777450

    Cheers,
    --Prabhakar Lad
  • Hello,

    Are you using EZSDK?
    If yes, EZSDK demos does not support capturing from USB camera. I would recommend you to try capture first with yavta for example.

    You could check this thread also:

    https://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/p/254427/897296

    I would recommend first to try with this pipeline too:

    gst-launch -v v4l2src always-copy=FALSE ! 'video/x-raw-yuv,format=(fourcc)YUY2,width=640,height=480,framerate=15/1' ! omxbufferalloc numBuffers=10 ! queue ! fakesink silent=false



    BR
    margarita

  • Thanks for your reply.., 

    I tried the above pipeline..No proper response and exit from target board !!! 

    Is it any other way to achieve this?

    What dependency for USB camera in EZSDK ??  

    Analog capture is proper without issue ??

    Could you explain to me while using USB Camera?

    Regards,

    Rajesh Kannan.S

  • Hello,

    What is the pipeline that you tried?

    BR
    Margarita
  • Hi Margarita,

    Thanks for your reply.

    I have tried the simple pipeline which has to do the capture and display

    gst-launch -v v4l2src always-copy=FALSE ! 'video/x-raw-yuv,fo

    rmat=(fourcc)YUY2,width=720,height=480,framerate=15/1' ! omxbufferalloc numBuffe

    rs=10 ! queue ! gstperf ! omx_videosink sync=false

    Setting pipeline to PAUSED ...

    Mode set is 1

    After that  No response from the target. The camera is not yet blinking. I need to reboot the target.

    If I tried with my Linux machine it's proper

    gst-launch-0.10  v4l2src  ! ximagesink

    Kindly suggest me to solve this issue ??

    Regards,

    Rajesh Kannan.S

  • Hello,

    I see this "Mode set is 1", in normal case you should see Mode set is 1080p for example.
    Please could you add --gst-debug=v4l2src:5 and post the log.
    One more note could you try pipeline with v4l2sink instead of omx_videosink.
    Please also verify is this patch is applied to omxbufferalloc:
    --- gst-openmax-dm81xx.orig/src/omx/gstomxbufferalloc.c 2012-11-14 16:15:41.392143697 -0600

    +++ gst-openmax-dm81xx/src/omx/gstomxbufferalloc.c 2012-11-14 16:17:40.760145714 -0600

    @@ -190,6 +190,7 @@

    gst_element_add_pad (GST_ELEMENT (filter), filter->sinkpad);

    gst_element_add_pad (GST_ELEMENT (filter), filter->srcpad);

    + filter->out_port.portptr = gst_omxportptr_new(&filter->out_port);

    filter->silent = FALSE;

    filter->out_port.num_buffers = 10;

    filter->out_port.always_copy = FALSE;

    What is the resolution format etc that your video source provides?

    BR
    Margarita
  • Hi Margarita,

    Thanks for your reply.

    I have attached the log file. Is it required to do some changes in the source code?

    By using this pipeline I could able to stream correct? 

    Setting pipeline to PAUSED ...
    0:00:02.403769750  1464    0x16050 INFO                 v4l2src gstv4l2src.c:626:gst_v4l2src_get_caps:<v4l2src0> probed caps: 0x2034c0
    0:00:02.407273751  1464    0x16050 DEBUG                v4l2src gstv4l2src.c:465:gst_v4l2src_negotiate:<v4l2src0> caps of src: 0x203300
    0:00:02.407419901  1464    0x16050 DEBUG                v4l2src gstv4l2src.c:466:gst_v4l2src_negotiate:<v4l2src0> thiscaps: 0x203300
    0:00:02.408701751  1464    0x16050 DEBUG                v4l2src gstv4l2src.c:474:gst_v4l2src_negotiate:<v4l2src0> caps of peer: 0x203280
    0:00:02.408837701  1464    0x16050 DEBUG                v4l2src gstv4l2src.c:475:gst_v4l2src_negotiate:<v4l2src0> peercaps: 0x203280
    0:00:02.409217351  1464    0x16050 DEBUG                v4l2src gstv4l2src.c:485:gst_v4l2src_negotiate:<v4l2src0> peer: 0x203260
    0:00:02.409314751  1464    0x16050 DEBUG                v4l2src gstv4l2src.c:486:gst_v4l2src_negotiate:<v4l2src0> ipcaps: 0x203260
    0:00:02.409476151  1464    0x16050 DEBUG                v4l2src gstv4l2src.c:498:gst_v4l2src_negotiate:<v4l2src0> intersect: 0x203240
    0:00:02.409555051  1464    0x16050 DEBUG                v4l2src gstv4l2src.c:499:gst_v4l2src_negotiate:<v4l2src0> icaps: 0x203240
    0:00:02.409732550  1464    0x16050 DEBUG                v4l2src gstv4l2src.c:553:gst_v4l2src_negotiate:<v4l2src0> fixated to: 0x203240
    0:00:02.409812650  1464    0x16050 DEBUG                v4l2src gstv4l2src.c:554:gst_v4l2src_negotiate:<v4l2src0> caps: 0x203240
    
     Mode set is 1
    0:00:02.410368150  1464    0x16050 DEBUG                v4l2src gstv4l2src.c:705:gst_v4l2src_set_caps:<v4l2src0> trying to set_capture 720x480 at 15/1 fps, format YCbCr4:2:2 YC Interleaved
    0:00:02.410509650  1464    0x16050 DEBUG                v4l2src v4l2src_calls.c:244:gst_v4l2src_set_capture:<v4l2src0> Desired framerate: 15/1
    0:00:02.410609050  1464    0x16050 DEBUG                v4l2src v4l2src_calls.c:267:gst_v4l2src_set_capture:<v4l2src0> Not setting framerate (not supported)
    0:00:02.410686050  1464    0x16050 DEBUG                v4l2src v4l2src_calls.c:313:gst_v4l2src_capture_init:<v4l2src0> initializing the capture system
    0:00:02.410760900  1464    0x16050 LOG                  v4l2src v4l2src_calls.c:323:gst_v4l2src_capture_init:<v4l2src0> initiating buffer pool
    
    
    
    

  • Hello,

    From the log it seems like the framerate is not supported.

    Please could you try pipelines like these:

    gst-launch -v v4l2src always-copy=FALSE ! 'video/x-raw-yuv,format=(fourcc)YUY2,width=720,height=480' ! omxbufferalloc numBuffers=10 ! queue ! gstperf ! fakesink silent=true

    gst-launch -v v4l2src always-copy=FALSE ! 'video/x-raw-yuv,format=(fourcc)YUY2,width=720,height=480' ! gstperf ! fakesink silent=true

    Let me know the result from pipeline 1. and 2.

    BR
    Margarita

  • Hi Margarita,

    Thanks for your reply.

    I have attached the two logs. Kindly guide me to siolve this issue !!!

    Regards,

    Rajesh Kannan.S

    Setting pipeline to PAUSED ...
    0:00:01.174047051  1469    0x16050 INFO                 v4l2src gstv4l2src.c:626:gst_v4l2src_get_caps:<v4l2src0> probed caps: 0xb1fa0
    0:00:01.174543901  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:465:gst_v4l2src_negotiate:<v4l2src0> caps of src: 0xb2040
    0:00:01.174640701  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:466:gst_v4l2src_negotiate:<v4l2src0> thiscaps: 0xb2040
    0:00:01.174891151  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:474:gst_v4l2src_negotiate:<v4l2src0> caps of peer: 0xb2020
    0:00:01.174975901  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:475:gst_v4l2src_negotiate:<v4l2src0> peercaps: 0xb2020
    0:00:01.175066201  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:485:gst_v4l2src_negotiate:<v4l2src0> peer: 0xb1f80
    0:00:01.175138151  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:486:gst_v4l2src_negotiate:<v4l2src0> ipcaps: 0xb1f80
    0:00:01.175293051  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:498:gst_v4l2src_negotiate:<v4l2src0> intersect: 0xb1fc0
    0:00:01.175370151  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:499:gst_v4l2src_negotiate:<v4l2src0> icaps: 0xb1fc0
    0:00:01.175513751  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:422:gst_v4l2src_fixate:<v4l2src0> fixating caps 0xb1fc0
    0:00:01.176380051  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:451:gst_v4l2src_fixate:<v4l2src0> fixated caps 0xb1fc0
    0:00:01.176485651  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:553:gst_v4l2src_negotiate:<v4l2src0> fixated to: 0xb1fc0
    0:00:01.176561751  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:554:gst_v4l2src_negotiate:<v4l2src0> caps: 0xb1fc0
    
     Mode set is 1
    0:00:01.176811251  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:705:gst_v4l2src_set_caps:<v4l2src0> trying to set_capture 720x480 at 100/1 fps, format YCbCr4:2:2 YC Interleaved
    0:00:01.176931051  1469    0x16050 DEBUG                v4l2src v4l2src_calls.c:244:gst_v4l2src_set_capture:<v4l2src0> Desired framerate: 100/1
    0:00:01.177382001  1469    0x16050 DEBUG                v4l2src v4l2src_calls.c:267:gst_v4l2src_set_capture:<v4l2src0> Not setting framerate (not supported)
    0:00:01.177473401  1469    0x16050 DEBUG                v4l2src v4l2src_calls.c:313:gst_v4l2src_capture_init:<v4l2src0> initializing the capture system
    0:00:01.177551351  1469    0x16050 LOG                  v4l2src v4l2src_calls.c:323:gst_v4l2src_capture_init:<v4l2src0> initiating buffer pool
    
    
    
    

     v4l2src always-copy=FALSE
     ! 'video/x-raw-yuv,format=(fourcc)YUY2,width=720,height=480' ! omxbufferalloc n
    umBuffers=10 ! queue ! gstperf ! fakesink silent=true
    Setting pipeline to PAUSED ...
    0:00:02.237321050  1469    0x16050 INFO                 v4l2src gstv4l2src.c:626:gst_v4l2src_get_caps:<v4l2src0> probed caps: 0xa0ce0
    0:00:02.237830400  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:465:gst_v4l2src_negotiate:<v4l2src0> caps of src: 0x20e940
    0:00:02.237928800  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:466:gst_v4l2src_negotiate:<v4l2src0> thiscaps: 0x20e940
    0:00:02.238243750  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:474:gst_v4l2src_negotiate:<v4l2src0> caps of peer: 0x20ea80
    0:00:02.238329700  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:475:gst_v4l2src_negotiate:<v4l2src0> peercaps: 0x20ea80
    0:00:02.238423500  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:485:gst_v4l2src_negotiate:<v4l2src0> peer: 0x20ea60
    0:00:02.238496950  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:486:gst_v4l2src_negotiate:<v4l2src0> ipcaps: 0x20ea60
    0:00:02.238654150  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:498:gst_v4l2src_negotiate:<v4l2src0> intersect: 0x20ea40
    0:00:02.238728500  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:499:gst_v4l2src_negotiate:<v4l2src0> icaps: 0x20ea40
    0:00:02.239588900  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:422:gst_v4l2src_fixate:<v4l2src0> fixating caps 0x20ea40
    0:00:02.239782900  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:451:gst_v4l2src_fixate:<v4l2src0> fixated caps 0x20ea40
    0:00:02.239877500  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:553:gst_v4l2src_negotiate:<v4l2src0> fixated to: 0x20ea40
    0:00:02.239951950  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:554:gst_v4l2src_negotiate:<v4l2src0> caps: 0x20ea40
    
     Mode set is 1
    0:00:02.240198850  1469    0x16050 DEBUG                v4l2src gstv4l2src.c:705:gst_v4l2src_set_caps:<v4l2src0> trying to set_capture 720x480 at 100/1 fps, format YCbCr4:2:2 YC Interleaved
    0:00:02.240660250  1469    0x16050 DEBUG                v4l2src v4l2src_calls.c:244:gst_v4l2src_set_capture:<v4l2src0> Desired framerate: 100/1
    0:00:02.240768300  1469    0x16050 DEBUG                v4l2src v4l2src_calls.c:267:gst_v4l2src_set_capture:<v4l2src0> Not setting framerate (not supported)
    0:00:02.240847900  1469    0x16050 DEBUG                v4l2src v4l2src_calls.c:313:gst_v4l2src_capture_init:<v4l2src0> initializing the capture system
    0:00:02.240920500  1469    0x16050 LOG                  v4l2src v4l2src_calls.c:323:gst_v4l2src_capture_init:<v4l2src0> initiating buffer pool
    

  • Hello,

    What is the framerate that you camera provides?

    BR
    Margarita
  • Hello,

    Please connect the camera to the PC again
    gst-launch-0.10 v4l2src num-buffers=5 ! ximagesink --gst-debug=v4l2src:5
    I will see the the capsfilter from this log.

    BR
    Margarita
  • Hi Margarita,

    Thanks for your reply.

    Find the attached log for your reference.

    Regards,

    Rajesh Kannan S

    Right log is here

    v4lcaps.txt

  • Hello,

    From this log it seems like the video source provides resolution 1600x1200, framerate 5, format yuy2:

    0:00:00.964975792 2990 0x1b77c90 DEBUG v4l2src gstv4l2src.c:539:gst_v4l2src_negotiate:<v4l2src0> caps: video/x-raw-yuv, format=(fourcc)YUY2, width=(int)1600, height=(int)1200, interlaced=(boolean)false, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)5/1
    0:00:00.965032352 2990 0x1b77c90 DEBUG v4l2src gstv4l2src.c:651:gst_v4l2src_set_caps:<v4l2src0> trying to set_capture 1600x1200 at 5/1 fps, format YUV 4:2:2 (YUYV)
    0:00:00.965069532 2990 0x1b77c90 DEBUG v4l2src v4l2src_calls.c:228:gst_v4l2src_set_capture:<v4l2src0> Desired framerate: 5/1
    0:00:00.965105857 2990 0x1b77c90 LOG v4l2src v4l2src_calls.c:252:gst_v4l2src_set_capture:<v4l2src0> Setting framerate to 5/1
    0:00:00.990393416 2990 0x1b77c90 INFO v4l2src v4l2src_calls.c:278:gst_v4l2src_set_capture:<v4l2src0> Set framerate to 5/1 and duration to 0:00:00.200000000

    BR
    Margarita
  • Hi Margarita,

    Thanks for your reply.

    Did u check the latest one v4lcaps.txt

    Regards,

    Rajesh Kannan.S
  • Yes, the above post is based on it.
    So what is the camera resolution and fps that it provides?
    Could you check it because in the log i see that the resolution that is set is 1600x1200, 5 fps on PC.


    BR
    Margarita

  • Hi Margarita,

    Thanks for your reply.

    I have tried with the target, expecting resolution is 720*480. If I tried with 640*480
    Fps is 5 that is sure.
    Tested with 1600*1200 also !!! same issue. Because of this resolution, it may be an issue?

    Regards,

    Rajesh Kannan S
  • Hello,

    In this log:
    0:00:02.410368150 1464 0x16050 DEBUG v4l2src gstv4l2src.c:705:gst_v4l2src_set_caps:<v4l2src0> trying to set_capture 720x480 at 15/1 fps, format YCbCr4:2:2 YC Interleaved
    0:00:02.410509650 1464 0x16050 DEBUG v4l2src v4l2src_calls.c:244:gst_v4l2src_set_capture:<v4l2src0> Desired framerate: 15/1
    0:00:02.410609050 1464 0x16050 DEBUG v4l2src v4l2src_calls.c:267:gst_v4l2src_set_capture:<v4l2src0> Not setting framerate (not supported)
    It seems like framerate is not supported.

    Could you post what exactly is the video source?

    BR
    Margarita
  • Hi Margarita,

    Thanks for your reply.

    Did you mean that the video source :- device /dev/video0

    Regards,

    Rajesh Kannan.S
  • Hello,

    I do not understand your question.

    BR
    Margarita
  • Hi Margarita,

    Thanks for your reply.

    Could you post what exactly is the video source?

    Camera device :- Logitech USB (/dev/video0)

    Regards,

    Rajesh Kannan S
  • Hi Margarita,

    Thanks for your reply.

    If you said that framerate is not proper ??

    It could n't able to capture 5 Fps in Target board ???

    Any limitation for EZSDK to support this?

    Regards,

    Rajesh Kannan S
  • Hello,

    Could you try:
    v4l2-ctl --list-formats-ext --device /dev/video0

    Please post me the result

    BR
    Margarita
  • Hi Margarita,

    Thanks for your reply.

    v4l2-ctl --list-formats-ext --device /dev/video0
    -sh: v4l2-ctl: not found

    Instead of using USB port I changed by using micro OTG, I could able to set frameRate as 5.

    Now I'm facing problem in setting caps

    Kindly suggest me to solve this

    Regards,

    Rajesh Kannan.S
  • Hello,

    As I said the USB capture is not tested on the board but there are community members who are able to capture from usb camera.

    Check this thread it could helps you with some ideas what to check or change:
    e2e.ti.com/.../1314305



    BR
    Margarita
  • Hello,

    If your target doesn’t have v4l-utils you can check it on linux machine (Ex Ubuntu) as well.
    If your linux machine doesnt have it install using following command:
    sudo apt-get install v4l-utils.

    And then later try out the pipline on the host (say ubuntu) first and then later on target.
    Note: you wont have omxbufferalloc/ omx_videosink on your host as these are target specific plugins, you will need to use alternative plugin on your host.

    Cheers,
    --Prabhakar Lad
  • Hi Margarita,

    Thanks for your reply.

    I have followed the link.

    gst-launch --gst-debug=v4l2src:5 v4l2src ! 'video/x-raw-yuv,format=(fourcc)YUY2,width=640,height=480,framerate=5/1' ! omx_videosink sync=false

    And tried this pipeline. May be I'm missing something. I have attached the file for your reference.

    Kindly guide me to solve this issue !!!

    Regards,

    Rajesh Kannan.S

    gst-launch --gst-debug=v4l2src:5 v4l2src ! 'video/x-raw-yuv,f
    ormat=(fourcc)YUY2,width=640,height=480,framerate=5/1' ! omx_videosink sync=fals
    e
    Setting pipeline to PAUSED ...
    0:00:02.696310150  1581    0x16050 INFO                 v4l2src gstv4l2src.c:626:gst_v4l2src_get_caps:<v4l2src0> probed caps: 0xb4bc0
    0:00:02.697784350  1581    0x16050 DEBUG                v4l2src gstv4l2src.c:465:gst_v4l2src_negotiate:<v4l2src0> caps of src: 0xb4c40
    0:00:02.697898850  1581    0x16050 DEBUG                v4l2src gstv4l2src.c:466:gst_v4l2src_negotiate:<v4l2src0> thiscaps: 0xb4c40
    0:00:02.698354750  1581    0x16050 DEBUG                v4l2src gstv4l2src.c:474:gst_v4l2src_negotiate:<v4l2src0> caps of peer: 0xb4ce0
    0:00:02.698446850  1581    0x16050 DEBUG                v4l2src gstv4l2src.c:475:gst_v4l2src_negotiate:<v4l2src0> peercaps: 0xb4ce0
    0:00:02.698536700  1581    0x16050 DEBUG                v4l2src gstv4l2src.c:485:gst_v4l2src_negotiate:<v4l2src0> peer: 0xb4d00
    0:00:02.698607550  1581    0x16050 DEBUG                v4l2src gstv4l2src.c:486:gst_v4l2src_negotiate:<v4l2src0> ipcaps: 0xb4d00
    0:00:02.699020300  1581    0x16050 DEBUG                v4l2src gstv4l2src.c:498:gst_v4l2src_negotiate:<v4l2src0> intersect: 0xb4d20
    0:00:02.699101200  1581    0x16050 DEBUG                v4l2src gstv4l2src.c:499:gst_v4l2src_negotiate:<v4l2src0> icaps: 0xb4d20
    0:00:02.699526200  1581    0x16050 DEBUG                v4l2src gstv4l2src.c:553:gst_v4l2src_negotiate:<v4l2src0> fixated to: 0xb4d20
    0:00:02.699613550  1581    0x16050 DEBUG                v4l2src gstv4l2src.c:554:gst_v4l2src_negotiate:<v4l2src0> caps: 0xb4d20
    
     Mode set is 0
    0:00:02.725228350  1581    0x16050 DEBUG                v4l2src gstv4l2src.c:705:gst_v4l2src_set_caps:<v4l2src0> trying to set_capture 640x480)
    0:00:02.725377400  1581    0x16050 DEBUG                v4l2src v4l2src_calls.c:244:gst_v4l2src_set_capture:<v4l2src0> Desired framerate: 5/1
    0:00:02.725474250  1581    0x16050 DEBUG                v4l2src v4l2src_calls.c:260:gst_v4l2src_set_capture:<v4l2src0> Desired framerate alreat
    0:00:02.725606000  1581    0x16050 INFO                 v4l2src v4l2src_calls.c:299:gst_v4l2src_set_capture:<v4l2src0> Set framerate to 5/1 an0
    0:00:02.725701750  1581    0x16050 DEBUG                v4l2src v4l2src_calls.c:313:gst_v4l2src_capture_init:<v4l2src0> initializing the captum
    0:00:02.725777500  1581    0x16050 LOG                  v4l2src v4l2src_calls.c:323:gst_v4l2src_capture_init:<v4l2src0> initiating buffer pool
    0:00:02.730719150  1581    0x16050 INFO                 v4l2src v4l2src_calls.c:352:gst_v4l2src_capture_init:<v4l2src0> capturing buffers via )
    0:00:02.730877650  1581    0x16050 DEBUG                v4l2src v4l2src_calls.c:399:gst_v4l2src_capture_start:<v4l2src0> starting the capturing
    0:00:02.742011400  1581    0x16050 LOG                  v4l2src gstv4l2src.c:824:gst_v4l2src_unlock_stop:<v4l2src0> No longer flushing
    Pipeline is live and does not need PREROLL ...
    Setting pipeline to PLAYING ...
    0:00:02.748257750  1581    0x16050 LOG                  v4l2src gstv4l2src.c:824:gst_v4l2src_unlock_stop:<v4l2src0> No longer flushing
    New clock: GstSystemClock
    0:00:02.750535800  1581   0x166d50 DEBUG                v4l2src v4l2src_calls.c:113:gst_v4l2src_grab_frame:<v4l2src0> grab frame
    0:00:03.944224050  1581   0x166d50 INFO                 v4l2src gstv4l2src.c:1054:gst_v4l2src_create:<v4l2src0> sync to 0:00:00.200000000
    ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.
    Additional debug info:
    gstbasesrc.c(2574): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
    streaming task paused, reason not-negotiated (-4)
    Execution ended after 1198989650 ns.
    Setting pipeline to PAUSED ...
    0:00:03.948170550  1581    0x16050 LOG                  v4l2src gstv4l2src.c:813:gst_v4l2src_unlock:<v4l2src0> Flushing
    Setting pipeline to READY ...
    0:00:03.949502100  1581    0x16050 LOG                  v4l2src gstv4l2src.c:813:gst_v4l2src_unlock:<v4l2src0> Flushing
    0:00:03.949638900  1581    0x16050 LOG                  v4l2src gstv4l2src.c:824:gst_v4l2src_unlock_stop:<v4l2src0> No longer flushing
    0:00:03.950683600  1581    0x16050 DEBUG                v4l2src v4l2src_calls.c:432:gst_v4l2src_capture_stop:<v4l2src0> stopping capturing
    0:00:03.952034850  1581    0x16050 DEBUG                v4l2src v4l2src_calls.c:469:gst_v4l2src_capture_deinit:<v4l2src0> deinitting capture sm
    Setting pipeline to NULL ...
    Freeing pipeline ...
    
    

  • Hello,

    Please execute this command
    v4l2-ctl --list-formats-ext --device /dev/video0 on the PC but first connect the camera to it.
    If there is a need you should change /dev/video0.
    Check the Prabhakar Lad 's post how to install v4l-utils.

    BR
    Margarita
  • Hi Margarita/Prabhakar,

    I tried with my UBUNTU machine it's properly streaming without issue

    Pipeline cmd :- gst-launch --gst-debug=v4l2src:5 v4l2src always-copy=false queue-size=4 ! 'video/x-raw-yuv,format=(fourcc)YUY2,width=640,height=480,framerate=30/1' ! xvimagesink sync=false

    For target what are the changes required to achieve the same !!!

    Thanks & Regards,

    Rajesh Kannan S
  • Hello,

    Please post the result of v4l2-ctl command on PC.
    I would also recommend you to check the link 4 posts above.

    BR
    Margarita