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.

Need more example GStreamer pipelines for DM814x

I want some pipeline examples such as Capture/Encoder/Networking for DM8148 besides those listed in example_pipeline.sh.

Could someone share them here or update the wiki page http://processors.wiki.ti.com/index.php/Example_GStreamer_Pipelines?

Thanks a lot!

  • Gstreamer Pipelines tested on DM81xx can be  found at  http://processors.wiki.ti.com/index.php/DM81xx_Gstreamer_Pipelines. This page doesn't have capture+encode+stream pipelines yet since there was no video capture element supported yet in gstreamer port for DM81xx (available at gstreamer.ti.com). This page will be updated with capture+encode+stream pipelines as soon as we have gstreamer element for video capture available.

    Thanks

    Satish   

     

     

  • Satish, this implies that even today there are no Gstreamer elements for video capture available? I would be also interested in capturing with gstreamer!

  • Hello Tobias,

    Gstreamer capturing:

    You could use v4l2.

    Best Regards,

    Margarita

  • Hello,

    Here is example:

    gst-launch -v v4l2src always-copy=false queue-size=12 num-buffers=2000 ! 'video/x-raw-yuv-strided,format=(fourcc)NV12,width=1920,height=1080,framerate=(fraction)60/1' ! omxbufferalloc numBuffers=12 ! omx_h264enc bitrate=5000000 ! filesink location=v4l2cap.h264

    Best Regards,

    Margarita

  • Margarita, thanks for your example. As I don't have anything connected to the video inputs your pipeline doesn't record anything. But I would like to use a UVC USB Webcam (Logitech 9000) - but I don't get it running, I either get "could not link v2l4src0 to ..." or "Could not negotiate format":

    root@dm814x-evm:~# gst-launch -v -e v4l2src always-copy=false device=/dev/video4 ! 'video/x-raw-yuv,format=(fourcc)YUYV,width=640,height=480,framerate=(fraction)30/1' ! ffmpegcolorspace ! fakesink
    WARNING: erroneous pipeline: could not link v4l2src0 to ffmpegcsp0

    root@dm814x-evm:~# ./yavta --enum-formats /dev/video4
    Device /dev/video4 opened.
    Device `UVC Camera (046d:0990)' on `usb-musb-hdrc.0-1' is a video capture device.
    - Available formats:
            Format 0: MJPEG (47504a4d)
            Type: Video capture (1)
            Name: MJPEG
            Frame size: 160x120 (1/30, 1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 176x144 (1/30, 1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 320x240 (1/30, 1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 352x288 (1/30, 1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 640x480 (1/30, 1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 800x600 (1/30, 1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 960x720 (1/15, 1/10, 1/5)

            Format 1: YUYV (56595559)
            Type: Video capture (1)
            Name: YUV 4:2:2 (YUYV)
            Frame size: 160x120 (1/30, 1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 176x144 (1/30, 1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 320x240 (1/30, 1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 352x288 (1/30, 1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 640x480 (1/30, 1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 800x600 (1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 960x720 (1/10, 1/5)
            Frame size: 1600x1200 (1/5)

    Video format: MJPEG (47504a4d) 320x240 (stride 0) buffer size 102400

    Any idea why I get that error? On my desktop I can run this pipeline with that USB camera without problems...

  • Hello,

    "gst-launch -v -e v4l2src always-copy=false device=/dev/video4 ! 'video/x-raw-yuv,format=(fourcc)YUYV,width=640,height=480,framerate=(fraction)30/1' ! ffmpegcolorspace ! fakesink"

    WARNING: erroneous pipeline: could not link v4l2src0 to ffmpegcsp0

    In this case it means that could not link the v4l2src component. I guess when you don't use ffmpegcolorspace component you get the error:  "Could not negotiate format". In both cases it means that your video source is not recognized.

    Are you using EZSDK?

    Best Regards,

    Margarita

  • Margarita Gashova said:

    Hello,

    "gst-launch -v -e v4l2src always-copy=false device=/dev/video4 ! 'video/x-raw-yuv,format=(fourcc)YUYV,width=640,height=480,framerate=(fraction)30/1' ! ffmpegcolorspace ! fakesink"

    WARNING: erroneous pipeline: could not link v4l2src0 to ffmpegcsp0

    In this case it means that could not link the v4l2src component. I guess when you don't use ffmpegcolorspace component you get the error:  "Could not negotiate format". In both cases it means that your video source is not recognized.

    Are you using EZSDK?

    yes

    It seems to me that its a problem with v4l2src of GST in EZSDK. The camera has following formats:

    root@dm814x-evm:~# ./yavta --enum-formats /dev/video0
    Device /dev/video0 opened.
    Device `UVC Camera (046d:0990)' on `usb-musb-hdrc.0-1' is a video capture device.
    - Available formats:
            Format 0: MJPEG (47504a4d)
            Type: Video capture (1)
            Name: MJPEG
            Frame size: 160x120 (1/30, 1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 176x144 (1/30, 1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 320x240 (1/30, 1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 352x288 (1/30, 1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 640x480 (1/30, 1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 800x600 (1/30, 1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 960x720 (1/15, 1/10, 1/5)

            Format 1: YUYV (56595559)
            Type: Video capture (1)
            Name: YUV 4:2:2 (YUYV)
            Frame size: 160x120 (1/30, 1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 176x144 (1/30, 1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 320x240 (1/30, 1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 352x288 (1/30, 1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 640x480 (1/30, 1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 800x600 (1/25, 1/20, 1/15, 1/10, 1/5)
            Frame size: 960x720 (1/10, 1/5)
            Frame size: 1600x1200 (1/5)

    Video format: MJPEG (47504a4d) 320x240 (stride 0) buffer size 102400
    root@dm814x-evm:~#

    I used the following pipelines to check functionality

    ## Record AVI with MJPEG , camera input YUV
    gst-launch -v -e v4l2src device=/dev/video4 num-buffers=30 ! video/x-raw-yuv,width=320,height=240,framerate=30/1 ! ffmpegcolorspace ! jpegenc ! avimux ! filesink location=record.avi

    ## Record AVI with MJPEG, camera input MJPEG
    gst-launch -v -e v4l2src device=/dev/video4 num-buffers=30 ! image/jpeg,width=320,height=240,framerate=30/1 ! avimux ! filesink location=video.avi

    ## Both results in the following error:
    ## ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not negotiate format

    ## Recording to fakesink - just  for checking functionality of camera, input YUV
    gst-launch -v -e v4l2src device=/dev/video4 num-buffers=30 ! 'video/x-raw-yuv,format=(fourcc)YUYV,width=320,height=240,framerate=(fraction)15/1' ! ffmpegcolorspace ! fakesink

    gst-launch -v -e v4l2src device=/dev/video4 num-buffers=30 ! 'video/x-raw-yuv,format=(fourcc)YUYV,width=320,height=240,framerate=(fraction)15/1' ! fakesink

    ## Both results in the following error:
    ## WARNING: erroneous pipeline: could not link v4l2src0 to fakesink0

    Could the problem be, that the camera has only YUYV, but there is actually no gst-element that supports YUYV? A interesting thing is, the the pipe is working on PC, but there it automatically selects YUV2 as format. Webcam used was a Logitech Pro 9000.




  • Hi

    I am trying to test my camera , but i am getting following issues,  can some one help me.

    Thanks in advance

    root@dm814x-evm:/usr/lib/gstreamer-0.10# gst-launch  v4l2src ! image/jpeg, width
    =640, height=480 ! fakesink
    0:00:00.000909200  1404    0x16050 INFO                GST_INIT gst.c:605:init_pre: Initializing GStreamer Core Library version 0.10.32
    0:00:00.001429650  1404    0x16050 INFO                GST_INIT gst.c:606:init_pre: Using library installed in /usr/lib
    0:00:00.001577100  1404    0x16050 INFO                GST_INIT gst.c:616:init_pre: Linux dm814x-evm 2.6.37 #1 Fri May 17 18:43:46 IST 2013 armv7l
    0:00:00.002552649  1404    0x16050 INFO                GST_INIT gstquery.c:108:_gst_query_initialize: init queries
    0:00:00.010068350  1404    0x16050 INFO                GST_INIT gstmessage.c:73:_gst_message_initialize: init messages
    0:00:00.011980549  1404    0x16050 INFO      GST_PLUGIN_LOADING gstplugin.c:350:_gst_plugin_initialize: registering 0 static plugins
    0:00:00.013437550  1404    0x16050 INFO      GST_PLUGIN_LOADING gstplugin.c:255:gst_plugin_register_static: registered static plugin "staticelements"
    0:00:00.013580250  1404    0x16050 INFO      GST_PLUGIN_LOADING gstplugin.c:257:gst_plugin_register_static: added static plugin "staticelements", result: 1
    0:00:00.016738200  1404    0x16050 INFO            GST_REGISTRY gstregistry.c:1599:ensure_current_registry: reading registry cache: /home/root/.gstreamer-0.10/registry.arm.bin
    0:00:00.183613450  1404    0x16050 INFO            GST_REGISTRY gstregistrybinary.c:614:gst_registry_binary_read_cache: loaded /home/root/.gstreamer-0.10/registry.arm.bin in 0.166584 seconds
    0:00:00.184320350  1404    0x16050 INFO            GST_REGISTRY gstregistry.c:1469:scan_and_update_registry: Validating plugins from registry cache: /home/root/.gstreamer-0.10/registry.arm.bin
    0:00:00.213310750  1404    0x16050 INFO            GST_REGISTRY gstregistry.c:1561:scan_and_update_registry: Registry cache has not changed
    0:00:00.213523950  1404    0x16050 INFO            GST_REGISTRY gstregistry.c:1628:ensure_current_registry: registry reading and updating done, result = 1
    0:00:00.213607500  1404    0x16050 INFO                GST_INIT gst.c:792:init_post: GLib runtime version: 2.24.1
    0:00:00.213691100  1404    0x16050 INFO                GST_INIT gst.c:794:init_post: GLib headers version: 2.24.1
    0:00:00.213984900  1404    0x16050 INFO            GST_PIPELINE gstparse.c:299:gst_parse_launch_full: parsing pipeline description 'v4l2src ! image/jpeg, width=640, height=480 ! fakesink '
    0:00:00.222070149  1404    0x16050 INFO      GST_PLUGIN_LOADING gstplugin.c:859:gst_plugin_load_file: plugin "/usr/lib/gstreamer-0.10/libgstvideo4linux2.so" loaded
    0:00:00.222268299  1404    0x16050 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:371:gst_element_factory_create: creating element "v4l2src"
    0:00:00.227921200  1404    0x16050 INFO        GST_ELEMENT_PADS gstelement.c:716:gst_element_add_pad:<GstBaseSrc@0x154060> adding pad 'src'
    0:00:00.233453950  1404    0x16050 INFO      GST_PLUGIN_LOADING gstplugin.c:859:gst_plugin_load_file: plugin "/usr/lib/gstreamer-0.10/libgstcoreelements.so" loaded
    0:00:00.233634800  1404    0x16050 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:371:gst_element_factory_create: creating element "fakesink"
    0:00:00.235381800  1404    0x16050 INFO        GST_ELEMENT_PADS gstelement.c:716:gst_element_add_pad:<GstBaseSink@0x15a098> adding pad 'sink'
    0:00:00.235826900  1404    0x16050 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:371:gst_element_factory_create: creating element "pipeline"
    0:00:00.236642250  1404    0x16050 INFO            GST_PIPELINE ./grammar.y:568:gst_parse_perform_link: linking v4l2src0:(any) to fakesink0:(any) (0/0) with caps "0x72a20"
    0:00:00.236807650  1404    0x16050 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:371:gst_element_factory_create: creating element "capsfilter"
    0:00:00.237811200  1404    0x16050 INFO        GST_ELEMENT_PADS gstelement.c:716:gst_element_add_pad:<GstBaseTransform@0x15e068> adding pad 'sink'
    0:00:00.238105550  1404    0x16050 INFO        GST_ELEMENT_PADS gstelement.c:716:gst_element_add_pad:<GstBaseTransform@0x15e068> adding pad 'src'
    0:00:00.238296400  1404    0x16050 INFO              GST_STATES gstbin.c:1759:gst_bin_get_state_func:<pipeline0> getting state
    0:00:00.238510550  1404    0x16050 INFO              GST_STATES gstelement.c:2341:gst_element_continue_state:<capsfilter0> completed state change to NULL
    0:00:00.238756400  1404    0x16050 INFO        GST_ELEMENT_PADS gstutils.c:1568:gst_element_link_pads_full: trying to link element v4l2src0:(any) to element capsfilter0:sink
    0:00:00.238870250  1404    0x16050 INFO        GST_ELEMENT_PADS gstelement.c:963:gst_element_get_static_pad: found pad capsfilter0:sink
    0:00:00.239014500  1404    0x16050 INFO                GST_PADS gstutils.c:1468:prepare_link_maybe_ghosting: v4l2src0 and capsfilter0 in same bin, no need for ghost pads
    0:00:00.239264950  1404    0x16050 INFO                GST_PADS gstpad.c:1941:gst_pad_link_prepare: trying to link v4l2src0:src and capsfilter0:sink
    0:00:00.240595400  1404    0x16050 INFO                GST_PADS gstpad.c:2124:gst_pad_link_full: linked v4l2src0:src and capsfilter0:sink, successful
    0:00:00.577333700  1404    0x16050 INFO        GST_ELEMENT_PADS gstutils.c:1568:gst_element_link_pads_full: trying to link element capsfilter0:src to element fakesink0:(any)
    0:00:00.577467100  1404    0x16050 INFO        GST_ELEMENT_PADS gstelement.c:963:gst_element_get_static_pad: found pad capsfilter0:src
    0:00:00.577574100  1404    0x16050 INFO                GST_PADS gstutils.c:1028:gst_pad_check_link: trying to link capsfilter0:src and fakesink0:sink
    0:00:00.581544050  1404    0x16050 INFO                GST_PADS gstutils.c:1468:prepare_link_maybe_ghosting: capsfilter0 and fakesink0 in same bin, no need for ghost pads
    0:00:00.581755250  1404    0x16050 INFO                GST_PADS gstpad.c:1941:gst_pad_link_prepare: trying to link capsfilter0:src and fakesink0:sink
    0:00:00.585510050  1404    0x16050 INFO                GST_PADS gstpad.c:2124:gst_pad_link_full: linked capsfilter0:src and fakesink0:sink, successful
    Setting pipeline to PAUSED ...
    0:00:00.589961950  1404    0x16050 INFO              GST_STATES gstelement.c:2341:gst_element_continue_state:<fakesink0> completed state change to READY
    0:00:00.590096450  1404    0x16050 INFO              GST_STATES gstelement.c:2354:gst_element_continue_state:<fakesink0> posting state-changed NULL to READY
    0:00:00.590420300  1404    0x16050 INFO              GST_STATES gstbin.c:2492:gst_bin_change_state_func:<pipeline0> child 'fakesink0' changed state to 2(READY) successfully
    0:00:00.590566200  1404    0x16050 INFO              GST_STATES gstelement.c:2341:gst_element_continue_state:<capsfilter0> completed state change to READY
    0:00:00.590656550  1404    0x16050 INFO              GST_STATES gstelement.c:2354:gst_element_continue_state:<capsfilter0> posting state-changed NULL to READY
    0:00:00.590787100  1404    0x16050 INFO              GST_STATES gstbin.c:2492:gst_bin_change_state_func:<pipeline0> child 'capsfilter0' changed state to 2(READY) successfully
    0:00:00.591990699  1404    0x16050 INFO                    v4l2 v4l2_calls.c:480:gst_v4l2_open:<v4l2src0> Opened device 'UVC Camera (046d:080a)' (/dev/video0) successfully
    0:00:00.592266399  1404    0x16050 INFO              GST_STATES gstelement.c:2341:gst_element_continue_state:<v4l2src0> completed state change to READY
    0:00:00.592372749  1404    0x16050 INFO              GST_STATES gstelement.c:2354:gst_element_continue_state:<v4l2src0> posting state-changed NULL to READY
    0:00:00.592526649  1404    0x16050 INFO              GST_STATES gstbin.c:2492:gst_bin_change_state_func:<pipeline0> child 'v4l2src0' changed state to 2(READY) successfully
    0:00:00.592755149  1404    0x16050 INFO              GST_STATES gstelement.c:2314:gst_element_continue_state:<pipeline0> committing state from NULL to READY, pending PAUSED, next PAUSED
    0:00:00.593138649  1404    0x16050 INFO              GST_STATES gstelement.c:2323:gst_element_continue_state:<pipeline0> continue state change READY to PAUSED, final PAUSED
    0:00:00.593578550  1404    0x16050 INFO              GST_STATES gstbin.c:2498:gst_bin_change_state_func:<pipeline0> child 'fakesink0' is changing state asynchronously to PAUSED
    0:00:00.929600450  1404    0x16050 INFO              GST_STATES gstelement.c:2341:gst_element_continue_state:<capsfilter0> completed state change to PAUSED
    0:00:00.929714150  1404    0x16050 INFO              GST_STATES gstelement.c:2354:gst_element_continue_state:<capsfilter0> posting state-changed READY to PAUSED
    0:00:00.929856250  1404    0x16050 INFO              GST_STATES gstbin.c:2492:gst_bin_change_state_func:<pipeline0> child 'capsfilter0' changed state to 3(PAUSED) successfully
    0:00:00.930113450  1404    0x16050 INFO                    v4l2 gstv4l2object.c:1036:gst_v4l2_object_fill_format_list:<v4l2src0> got 2 format(s):
    0:00:00.930208400  1404    0x16050 INFO                    v4l2 gstv4l2object.c:1042:gst_v4l2_object_fill_format_list:<v4l2src0>   YUYV
    0:00:00.930283900  1404    0x16050 INFO                    v4l2 gstv4l2object.c:1042:gst_v4l2_object_fill_format_list:<v4l2src0>   MJPG
    0:00:02.248799600  1404    0x16050 INFO                 v4l2src gstv4l2src.c:610:gst_v4l2src_get_caps:<v4l2src0> probed caps: 0x72c60

     Mode set is 0
    0:00:02.250864650  1404    0x16050 WARN                    v4l2 gstv4l2object.c:1522:gst_v4l2_object_get_caps_info:<v4l2src0> VIDIOC_TRY_FMT should not fail.. driver problem?
    0:00:02.251056000  1404    0x16050 INFO                 v4l2src v4l2src_calls.c:290:gst_v4l2src_set_capture:<v4l2src0> Set framerate to 30/1 and duration to 0:00:00.033333333
    0:00:02.251491450  1404    0x16050 WARN                    v4l2 gstv4l2bufferpool.c:446:gst_v4l2_buffer_pool_new:<v4l2src0> error: Could not get buffers from device '/dev/video0'.
    0:00:02.251595000  1404    0x16050 WARN                    v4l2 gstv4l2bufferpool.c:446:gst_v4l2_buffer_pool_new:<v4l2src0> error: error requesting 2 buffers: Invalid argument
    0:00:02.251852400  1404    0x16050 INFO        GST_ERROR_SYSTEM gstelement.c:1865:gst_element_message_full:<v4l2src0> posting message: Could not get buffers from device '/dev/video0'.
    0:00:02.252063600  1404    0x16050 INFO        GST_ERROR_SYSTEM gstelement.c:1888:gst_element_message_full:<v4l2src0> posted error message: Could not get buffers from device '/dev/video0'.
    0:00:02.252269600  1404    0x16050 WARN                 v4l2src v4l2src_calls.c:345:gst_v4l2src_capture_init:<v4l2src0> error: Could not map buffers from device '/dev/video0'
    0:00:02.252358200  1404    0x16050 WARN                 v4l2src v4l2src_calls.c:345:gst_v4l2src_capture_init:<v4l2src0> error: Failed to create buffer pool: Invalid argument
    0:00:02.252500400  1404    0x16050 INFO        GST_ERROR_SYSTEM gstelement.c:1865:gst_element_message_full:<v4l2src0> posting message: Could not map buffers from device '/dev/video0'
    0:00:02.252644000  1404    0x16050 INFO        GST_ERROR_SYSTEM gstelement.c:1888:gst_element_message_full:<v4l2src0> posted error message: Could not map buffers from device '/dev/video0'
    0:00:02.252777800  1404    0x16050 WARN                 basesrc gstbasesrc.c:2778:gst_base_src_start:<v4l2src0> error: Could not negotiate format
    0:00:02.252856700  1404    0x16050 WARN                 basesrc gstbasesrc.c:2778:gst_base_src_start:<v4l2src0> error: Check your filtered caps, if any
    0:00:02.253001800  1404    0x16050 INFO        GST_ERROR_SYSTEM gstelement.c:1865:gst_element_message_full:<v4l2src0> posting message: Could not negotiate format
    0:00:02.253257751  1404    0x16050 INFO        GST_ERROR_SYSTEM gstelement.c:1888:gst_element_message_full:<v4l2src0> posted error message: Could not negotiate format
    0:00:02.253379401  1404    0x16050 WARN                 basesrc gstbasesrc.c:2974:gst_base_src_activate_push:<v4l2src0> Failed to start in push mode
    0:00:02.253456651  1404    0x16050 INFO                GST_PADS gstpad.c:983:gst_pad_activate_push:<v4l2src0:src> failed to activate in push mode
    0:00:02.253550201  1404    0x16050 WARN                GST_PADS gstpad.c:734:gst_pad_set_active:<v4l2src0:src> Failed to activate pad
    0:00:02.253651351  1404    0x16050 INFO              GST_STATES gstelement.c:2658:gst_element_change_state:<v4l2src0> have FAILURE change_state return
    0:00:02.253741101  1404    0x16050 INFO              GST_STATES gstelement.c:2235:gst_element_abort_state:<v4l2src0> aborting state from READY to PAUSED
    0:00:02.253832401  1404    0x16050 INFO              GST_STATES gstbin.c:2508:gst_bin_change_state_func:<pipeline0> child 'v4l2src0' failed to go to state 3(PAUSED)
    0:00:02.590081900  1404    0x16050 INFO              GST_STATES gstelement.c:2658:gst_element_change_state:<pipeline0> have FAILURE change_state return
    ERROR: Pipeline doesn't want to pause.
    ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not get buffers from device '/dev/video0'.
    Additional debug info:
    gstv4l2bufferpool.c(446): gst_v4l2_buffer_pool_new (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
    error requesting 2 buffers: Invalid argument
    Setting pipeline to NULL ...
    0:00:02.592563500  1404    0x16050 INFO              GST_STATES gstelement.c:2314:gst_element_continue_state:<fakesink0> committing state from READY to READY, pending NULL, next NULL
    0:00:02.592730350  1404    0x16050 INFO              GST_STATES gstelement.c:2323:gst_element_continue_state:<fakesink0> continue state change READY to NULL, final NULL
    0:00:02.592917550  1404    0x16050 INFO              GST_STATES gstelement.c:2341:gst_element_continue_state:<fakesink0> completed state change to NULL
    0:00:02.593010450  1404    0x16050 INFO              GST_STATES gstelement.c:2354:gst_element_continue_state:<fakesink0> posting state-changed READY to NULL
    0:00:02.593140000  1404    0x16050 INFO              GST_STATES gstbin.c:2492:gst_bin_change_state_func:<pipeline0> child 'fakesink0' changed state to 1(NULL) successfully
    0:00:02.593399451  1404    0x16050 INFO              GST_STATES gstelement.c:2314:gst_element_continue_state:<capsfilter0> committing state from PAUSED to READY, pending NULL, next NULL
    0:00:02.593536051  1404    0x16050 INFO              GST_STATES gstelement.c:2323:gst_element_continue_state:<capsfilter0> continue state change READY to NULL, final NULL
    0:00:02.593667701  1404    0x16050 INFO              GST_STATES gstelement.c:2341:gst_element_continue_state:<capsfilter0> completed state change to NULL
    0:00:02.593753701  1404    0x16050 INFO              GST_STATES gstelement.c:2354:gst_element_continue_state:<capsfilter0> posting state-changed READY to NULL
    0:00:02.593873351  1404    0x16050 INFO              GST_STATES gstbin.c:2492:gst_bin_change_state_func:<pipeline0> child 'capsfilter0' changed state to 1(NULL) successfully
    0:00:02.594521501  1404    0x16050 INFO              GST_STATES gstelement.c:2341:gst_element_continue_state:<v4l2src0> completed state change to NULL
    0:00:02.594630201  1404    0x16050 INFO              GST_STATES gstelement.c:2354:gst_element_continue_state:<v4l2src0> posting state-changed READY to NULL
    0:00:02.594770951  1404    0x16050 INFO              GST_STATES gstbin.c:2492:gst_bin_change_state_func:<pipeline0> child 'v4l2src0' changed state to 1(NULL) successfully
    0:00:02.595028701  1404    0x16050 INFO              GST_STATES gstelement.c:2341:gst_element_continue_state:<pipeline0> completed state change to NULL
    0:00:02.595122051  1404    0x16050 INFO              GST_STATES gstelement.c:2354:gst_element_continue_state:<pipeline0> posting state-changed READY to NULL
    0:00:02.595262501  1404    0x16050 INFO              GST_STATES gstbin.c:1759:gst_bin_get_state_func:<pipeline0> getting state
    Freeing pipeline ...
    0:00:02.931283750  1404    0x16050 INFO        GST_ELEMENT_PADS gstpad.c:1713:gst_pad_unlink: unlinking capsfilter0:src(0x156258) and fakesink0:sink(0x1560c8)
    0:00:02.931493650  1404    0x16050 INFO        GST_ELEMENT_PADS gstpad.c:1758:gst_pad_unlink: unlinked capsfilter0:src and fakesink0:sink
    0:00:02.931663900  1404    0x16050 INFO        GST_ELEMENT_PADS gstpad.c:1713:gst_pad_unlink: unlinking v4l2src0:src(0x156000) and capsfilter0:sink(0x156190)
    0:00:02.931803900  1404    0x16050 INFO        GST_ELEMENT_PADS gstpad.c:1758:gst_pad_unlink: unlinked v4l2src0:src and capsfilter0:sink
    0:00:02.931976000  1404    0x16050 INFO           GST_PARENTAGE gstbin.c:1440:gst_bin_remove_func:<pipeline0> removed child "capsfilter0"
    0:00:02.932136900  1404    0x16050 INFO         GST_REFCOUNTING gstelement.c:2955:gst_element_dispose:<capsfilter0> dispose
    0:00:02.932230550  1404    0x16050 INFO        GST_ELEMENT_PADS gstelement.c:835:gst_element_remove_pad:<capsfilter0> removing pad 'src'
    0:00:02.932501850  1404    0x16050 INFO        GST_ELEMENT_PADS gstelement.c:835:gst_element_remove_pad:<capsfilter0> removing pad 'sink'
    0:00:02.932645300  1404    0x16050 INFO         GST_REFCOUNTING gstelement.c:2979:gst_element_dispose:<capsfilter0> parent class dispose
    0:00:02.932747250  1404    0x16050 INFO         GST_REFCOUNTING gstelement.c:3010:gst_element_finalize:<capsfilter0> finalize
    0:00:02.932840800  1404    0x16050 INFO         GST_REFCOUNTING gstelement.c:3021:gst_element_finalize:<capsfilter0> finalize parent
    0:00:02.932960050  1404    0x16050 INFO           GST_PARENTAGE gstbin.c:1440:gst_bin_remove_func:<pipeline0> removed child "fakesink0"
    0:00:02.933085150  1404    0x16050 INFO         GST_REFCOUNTING gstelement.c:2955:gst_element_dispose:<fakesink0> dispose
    0:00:02.933218351  1404    0x16050 INFO        GST_ELEMENT_PADS gstelement.c:835:gst_element_remove_pad:<fakesink0> removing pad 'sink'
    0:00:02.933355051  1404    0x16050 INFO         GST_REFCOUNTING gstelement.c:2979:gst_element_dispose:<fakesink0> parent class dispose
    0:00:02.933459151  1404    0x16050 INFO         GST_REFCOUNTING gstelement.c:3010:gst_element_finalize:<fakesink0> finalize
    0:00:02.933549251  1404    0x16050 INFO         GST_REFCOUNTING gstelement.c:3021:gst_element_finalize:<fakesink0> finalize parent
    0:00:02.933664301  1404    0x16050 INFO           GST_PARENTAGE gstbin.c:1440:gst_bin_remove_func:<pipeline0> removed child "v4l2src0"
    0:00:02.933836951  1404    0x16050 INFO         GST_REFCOUNTING gstelement.c:2955:gst_element_dispose:<v4l2src0> dispose
    0:00:02.933927101  1404    0x16050 INFO        GST_ELEMENT_PADS gstelement.c:835:gst_element_remove_pad:<v4l2src0> removing pad 'src'
    0:00:02.934051701  1404    0x16050 INFO         GST_REFCOUNTING gstelement.c:2979:gst_element_dispose:<v4l2src0> parent class dispose
    0:00:02.934257201  1404    0x16050 INFO         GST_REFCOUNTING gstelement.c:3010:gst_element_finalize:<v4l2src0> finalize
    0:00:03.270729350  1404    0x16050 INFO         GST_REFCOUNTING gstelement.c:3021:gst_element_finalize:<v4l2src0> finalize parent
    0:00:03.270879450  1404    0x16050 INFO         GST_REFCOUNTING gstelement.c:2955:gst_element_dispose:<pipeline0> dispose
    0:00:03.271103350  1404    0x16050 INFO         GST_REFCOUNTING gstelement.c:2979:gst_element_dispose:<pipeline0> parent class dispose
    0:00:03.271207500  1404    0x16050 INFO         GST_REFCOUNTING gstelement.c:3010:gst_element_finalize:<pipeline0> finalize
    0:00:03.271301250  1404    0x16050 INFO         GST_REFCOUNTING gstelement.c:3021:gst_element_finalize:<pipeline0> finalize parent
    0:00:03.271402450  1404    0x16050 INFO                GST_INIT gst.c:1010:gst_deinit: deinitializing GStreamer
    0:00:03.297803650  1404    0x16050 INFO                GST_INIT gst.c:1113:gst_deinit: deinitialized GStreamer

  • Hello Tobias,

    This error 'Could not negotiate format' indicates some parameters are not set right in GstV4l2Src/V4l2 driver layer or not supported by camera, but gstreamer component is asking for them. So, it is better to try capture using only V4l2 level, with out Gstreamer and make it work. After that try with Gstreamer. I mean you could try to run saLoopBack demos in EZSDK:

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_VIDEO_CAPTURE_Driver_User_Guid

    Sample application chapter.

    Let me know the result.

    Best Regards,

    Margarita

  • Hello rajesh,

    rajesh singh said:
    0:00:02.250864650  1404    0x16050 WARN                    v4l2 gstv4l2object.c:1522:gst_v4l2_object_get_caps_info:<v4l2src0> VIDIOC_TRY_FMT should not fail.. driver problem?

    What is your video source?

    Best Regards,

    Margarita