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/TMS320DM8148: Using Fb0/1/2 as Source encode to h264 and Network as sink .

Part Number: TMS320DM8148
Other Parts Discussed in Thread: AM5728

Tool/software: Linux

Is it possible to use gstreamer for using fb0/1/2 as source and convert data to h264 and then stream it over network?

Br

Ammar Zafar

  • Hello,

    I have not tried such use case.
    You could try something like:
    .... multifilesrc location=/dev/fb0 ! ....
    Keep in mind that the omx_h264enc accept NV12 format.
    For csc you could use ffmpegcolorspace element.
    I would recommend you first to build the pipeline with filesink element or fakesink after that with streaming element.

    Hope this helps.

    BR
    Margarita

  • Thanks Margarita for the reply,

    I am new to gstreamer , in my case i am displaying some data on fb0 device and want to convert it in h264 , i have tried converting a mp4 file and transmited it over ethernet using

    gst-launch filesrc location=test.mp4 ! tee name=t \t. ! queue ! qtdemux !  h264parse !omx_h264dec ! omx_scaler ! 'video/x-raw-yuv,width=(int)800,height=(int)600'! v4l2sink \t. ! queue ! qtdemux !  h264parse !  gstperf ! rtph264pay ! udpsink host=192.168.10.201 port=5554 -v

    But i am confused about how can i use data from Fb0 which is in ARGB Format ?

    BR

    Ammar Zafar

  • Hello,

    As I said in my previous post you could check ffmpegcolorspace element for csc.
    You could execute gst-inspect ffmpegcolorspace in the console to check what are the color formats that it supports on the sink and src (input and output).
    The pipeline you could try is:
    gst-launch multifilesrc location=/dev/fb0 ! queue ! ffmpegcolorspace ! queue ! omx_h264enc ! h264parse ! gstperf ! fakesink silent=true
    Keep in mind that this pipeline is not tested.

    BR
    Margarita
  • Thanks Margarita for reply,

    Its giving me this error ... any more suggestion ?

    root@dm814x-evm:/# gst-launch multifilesrc location=/dev/fb0 ! queue ! ffmpegcol
    orspace ! queue ! omx_h264enc ! h264parse ! gstperf ! fakesink silent=true
    Setting pipeline to PAUSED ...
    Pipeline is PREROLLING ...
    ti81xxfb ti81xxfb: Unknown ioctl 0x5401
    ERROR: from element /GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0: not negotiad
    Additional debug info:
    gstbasetransform.c(2265): gst_base_transform_handle_buffer (): /GstPipeline:pip:
    not negotiated
    ERROR: pipeline doesn't want to preroll.
    Setting pipeline to NULL ...
    ti81xxfb ti81xxfb: Unknown ioctl 0x5401
    Freeing pipeline ...
    root@dm814x-evm:/#
  • Hello,

    Could you post the execution of this :
    gst-launch -v multifilesrc location=/dev/fb0 ! fakesink silent=true

    BR
    Margarita
  • This is the log

    root@dm814x-evm:~# gst-launch -v multifilesrc location=/dev/fb0 ! fakesink silen
    t=true
    Setting pipeline to PAUSED ...
    Pipeline is PREROLLING ...
    ti81xxfb ti81xxfb: Unknown ioctl 0x5401
    Pipeline is PREROLLED ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock
    ti81xxfb ti81xxfb: Unknown ioctl 0x5401
    ti81xxfb ti81xxfb: Unknown ioctl 0x5401
    ti81xxfb ti81xxfb: Unknown ioctl 0x5401
    ti81xxfb ti81xxfb: Unknown ioctl 0x5401
    ti81xxfb ti81xxfb: Unknown ioctl 0x5401
    ti81xxfb ti81xxfb: Unknown ioctl 0x5401
    ti81xxfb ti81xxfb: Unknown ioctl 0x5401
    BUG: Bad page map in process multifilesrc0:s pte:8262c1cf pmd:8827e031
    page:c060a580 count:1 mapcount:-1 mapping:c93ae661 index:0x417dc
    page flags: 0x100068(uptodate|lru|active|swapbacked)
    addr:424f5000 vm_flags:00100073 anon_vma:c93ae660 mapping: (null) index:417dc
    Backtrace:
    [<c004abd0>] (dump_backtrace+0x0/0x110) from [<c03e4bdc>] (dump_stack+0x18/0x1c)
    r7:424f5000 r6:0004019a r5:40eb3000 r4:c82c7318
    [<c03e4bc4>] (dump_stack+0x0/0x1c) from [<c00b811c>] (print_bad_pte+0x16c/0x198)
    [<c00b7fb0>] (print_bad_pte+0x0/0x198) from [<c00ba370>] (unmap_vmas+0x358/0x59c)
    [<c00ba018>] (unmap_vmas+0x0/0x59c) from [<c00bcb04>] (unmap_region+0x80/0x10c)
    [<c00bca84>] (unmap_region+0x0/0x10c) from [<c00bdbcc>] (do_munmap+0x228/0x294)
    [<c00bd9a4>] (do_munmap+0x0/0x294) from [<c00bdc7c>] (sys_munmap+0x44/0x58)
    [<c00bdc38>] (sys_munmap+0x0/0x58) from [<c0046e00>] (ret_fast_syscall+0x0/0x30)
    r7:0000005b r6:40297e3c r5:40eb3008 r4:40543264
    Disabling lock debugging due to kernel taint
    BUG: Bad page state in process multifilesrc0:s pfn:8262c
    page:c060a580 count:0 mapcount:-1 mapping: (null) index:0x417dc
    page flags: 0x100008(uptodate|swapbacked)
    Backtrace:
    [<c004abd0>] (dump_backtrace+0x0/0x110) from [<c03e4bdc>] (dump_stack+0x18/0x1c)
    r7:00000000 r6:00000000 r5:c060a580 r4:c05a490c
    [<c03e4bc4>] (dump_stack+0x0/0x1c) from [<c00a8c98>] (bad_page+0xd8/0x108)
    [<c00a8bc0>] (bad_page+0x0/0x108) from [<c00a96b4>] (free_pages_prepare+0x78/0x108)
    r5:00000000 r4:c060a580
    [<c00a963c>] (free_pages_prepare+0x0/0x108) from [<c00a9884>] (free_hot_cold_page+0x2c/0x19c)
    [<c00a9858>] (free_hot_cold_page+0x0/0x19c) from [<c00acf94>] (put_page+0x130/0x144)
    r9:c0538a34 r8:c827ebd4 r7:c82c7318 r6:424f5000 r5:c060a580
    r4:c060a580
    [<c00ace64>] (put_page+0x0/0x144) from [<c00ba378>] (unmap_vmas+0x360/0x59c)
    r5:c060a580 r4:00000000
    [<c00ba018>] (unmap_vmas+0x0/0x59c) from [<c00bcb04>] (unmap_region+0x80/0x10c)
    [<c00bca84>] (unmap_region+0x0/0x10c) from [<c00bdbcc>] (do_munmap+0x228/0x294)
    [<c00bd9a4>] (do_munmap+0x0/0x294) from [<c00bdc7c>] (sys_munmap+0x44/0x58)
    [<c00bdc38>] (sys_munmap+0x0/0x58) from [<c0046e00>] (ret_fast_syscall+0x0/0x30)
    r7:0000005b r6:40297e3c r5:40eb3008 r4:40543264
    ti81xxfb ti81xxfb: Unknown ioctl 0x5401
    ti81xxfb ti81xxfb: Unknown ioctl 0x5401
    ti81xxfb ti81xxfb: Unknown ioctl 0x5401
    ti81xxfb ti81xxfb: Unknown ioctl 0x5401
    ti81xxfb ti81xxfb: Unknown ioctl 0x5401
    ti81xxfb ti81xxfb: Unknown ioctl 0x5401
    Caught interrupt -- handling interrupt.
    Interrupt: Stopping pipeline ...
    Execution ended after 10067312850 ns.
    Setting pipeline to PAUSED ...
    Setting pipeline to READY ...
    Setting pipeline to NULL ...
    Freeing pipeline ...

    BR
    Ammar Zafar
  • Hello,

    I can not allocate gstreamer element that could read from /dev/fb.
    In gstreamer there is only element for linux framebuffer videosink.
    I would recommend you to check this e2e thread:
    e2e.ti.com/.../177317
    The ffmpeg also could record from frame buffer.

    BR
    Margarita
  • Ok so you mean we cant use frame buffer ?
    Can we use a a memory variable to passed to gstreamer as input and define its format ?
  • On changing from multisrc to filesrc
    root@dm814x-evm:/# gst-launch -v filesrc location=/dev/fb0 ! fakesink silent=tru
    e
    Setting pipeline to PAUSED ...
    Pipeline is PREROLLING ...
    Pipeline is PREROLLED ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock
    Got EOS from element "pipeline0".
    Execution ended after 805506300 ns.
    Setting pipeline to PAUSED ...
    Setting pipeline to READY ...
    Setting pipeline to NULL ...
    Freeing pipeline ...
    root@dm814x-evm:/#
  • Hello,

    Could you try to add ffmpegcolorspace for rgb->nv12(set caps filters)?

    BR
    Margarita

  • How to do it ?
  • Hello,

    Could you try :

    1. gst-launch -v filesrc location=/dev/fb0 ! gstperf ! ffmpegcolorspace ! fakesink silent=true
    2. gst-launch -v filesrc location=/dev/fb0 ! gstperf ! ffmpegcolorspace ! omx_h264enc ! h264parse ! fakesink silent=true

    Let me know the result.
    If does not work please add gst-debug=3 and attach the debug log.

    BR
    Margarita
  • Thanks Margrita for being so consistent with the help responses,

    These are the Logs.. both commands didnt worked.

    root@dm814x-evm:~# gst-launch -v filesrc location=/dev/fb0 ! gstperf ! ffmpegcol
    orspace ! fakesink silent=true
    Setting pipeline to PAUSED ...
    Pipeline is PREROLLING ...
    ERROR: from element /GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0: not negotiated
    Additional debug info:
    gstbasetransform.c(2265): gst_base_transform_handle_bufer (): /GstPipeline:pipeline0/GstFFMpeCsp:ffmpegcsp0:
    not negotiated
    ERROR: ipeline doesn't want to preroll.
    Settng pipeline to NULL ...
    Freeing pipeline ...


    root@dm814x-evm:~# gst-launch -v filesrc location=/dev/fb0 ! gstperf ! ffmpegcol
    orspace ! fakesink silent=true --gst-debug=3


    0:00:00.018287144   183    0x16050 INFO                GST_INIT gstquery.c:108:_gst_query_initialize: init queries
    0:00:00.024368227 [334m  183    0x16050 INFO                GST_INIT gstmessage.c:73:_gst_mssage_initialize: init messages
    0:0:00.025921874   183    0x16050 2;01mINFO      GST_PLUGIN_OADING gstplugin.c:350:_gst_plugin_initializ: registering 0 static plugins
    0:0:00.026897824   183    0x16050 INFO      GST_PLUGIN_LADING gstplugin.c:255:gst_plugin_register_sttic: registered static plugin "statielements"
    0:00:00.027013274   183    0x16050 INFO     GST_PLUGIN_LOADING gstplugin.c:257:gst_plugn_register_static: added static pluin "staticelements", result: 1
    0:00:00.03350021   183    0x16050 INFO           GST_REGISTRY gstregisty.c:1599:ensure_current_registry: rading registry cache: /home/root/.gstreamer0.10/registry.arm.bin
    0:00:00.166398144   183    0x16050 INFO            GST_REGISTRY gstregistrybinary.c:614:gst_registry_binary_read_cache: loaded /home/oot/.gstreamer-0.10/registry.arm.bin in 0.12669 seconds
    0:00:00.166940244   83    0x16050 INFO            GST_REGISTRY gstregistry.c:1469:san_and_update_registry: Validatingplugins from registry cache: /home/root/.gtreamer-0.10/registry.arm.bin
    0:00:00.243954991   183    0x16050 INFO            GST_REGISTRY gstregistry.c:1561:scan_and_update_registry: Registry cache has not changed
    0:00:0.244121641   183    0x16050 NFO            GST_REGISTRY gtregistry.c:1628:ensure_current_registry: registry reading and updating done, result =1
    0:00:00.244188141   183    0x16050 [32;01mINFO                ST_INIT gst.c:792:init_post: GLib runtime ersion: 2.24.1
    0:00:00.244254241   183    0x16050 INFO                GST_INIT gst.c:79:init_post: GLib headers version:2.24.1
    0:00:00.244481491   183   0x16050 INFO            GST_PIPELINE gstparse.c:29:gst_parse_launch_full: parsing ipeline description 'filesrc location=/de/fb0 ! gstperf ! ffmpegcolorspace ! faesink silent=true'
    0:00:00.251807392   183    0x16050 INFO     GST_PLUGIN_LOADING gsplugin.c:859:gst_plugin_load_file: pugin "/usr/lib/gstreamer-0.10/libgstcoeelements.so" loaded
    0:00:00.251937892 34m  183    0x16050 INFO    GST_ELEMENT_FACTORYgstelementfactory.c:371:gst_element_fatory_create: creating element "filesc"
    0:00:00.253232341   183   0x16050 INFO        GST_ELEMENT_PADS gstelement.c:76:gst_element_add_pad:<GstBaseSrc@0x14a00> adding pad 'src'
    0:00:00.27412411   183    0x16050 IFO                     omx gstmx_videomixer.c:2183:init_interfaces:0m GstChildProxy interface registered
    000:00.274302991   183    0x6050 INFO      GS_PLUGIN_LOADING gstplugin.c:859:gst_plgin_load_file: plugin "/usr/lib/gstremer-0.10/libgstomx.so" loaded
    0:00:00274388041   183    0x16050 INFO     GST_EEMENT_FACTORY gstelementfactory.c:371:gst_lement_factory_create: creating lement "gstperf"
    0:00:00.275264791  183    0x16050 INFO       GST_ELEMENT_PADS gselement.c:716:gst_element_add_pad:<GstBaseransform@0x14e000> adding pad 'sik'
    0:00:00.275534292   183   0x16050 INFO        GST_ELEMENT_PADS gstelement.c:716gst_element_add_pad:<GstBaseTransform@x14e000> adding pad 'src'
    0:00:00.27418992   183    0x16050 INFO      GST_PLUGIN_OADING gstplugin.c:859:gst_plugin_load_fie: plugin "/usr/lib/gstreamer-0.1/libgstffmpegcolorspace.so" loaded
    0:00:0.278538692   183    0x16050INFO     GST_LEMENT_FACTORY gstelementfactory.c:371:st_element_factory_create: creatingelement "ffmpegcolorspace"
    0:00:00.28278591   183    0x16050 NFO        GST_ELMENT_PADS gstelement.c:716:gst_element_ad_pad:<GstBaseTransform@0x15c020> addng pad 'sink'
    0:00:00.284509691  183    0x16050 INFO       GST_ELEMENT_PADS gselement.c:716:gst_element_add_pad:<GstBaeTransform@0x15c020> adding pad 'sc'
    0:00:00.284685191   183  0x16050 INFO     GST_ELEMENT_FACTORY gstelementfactoy.c:371:gst_element_factory_create: creating element "fakesink"
    0:00:00.25835542   183    0x16050 INFO        GST_EEMENT_PADS gstelement.c:716:gst_elemet_add_pad:<GstBaseSink@0x160048> addng pad 'sink'
    0:00:00.286158492  183    0x16050 INFO    GST_ELEMENT_FACTORY gselementfactory.c:371:gst_element_factory_reate: creating element "pipeline"
    :00:00.286818642   183    016050 INFO           GST_PIPELINE ./grammar.y:568:gstparse_perform_link: linking filesrc:(any) to perf0:(any) (0/0) with caps (nil)"
    0:00:00.286957592   183   0x16050 INFO        GST_ELEMENT_PADS gstutils.c:168:gst_element_link_pads_full: tring to link element filesrc0:(any) to eleent perf0:(any)
    0:00:00.287060942   183    0x16050 INFO                GST_PADS gsttils.c:1028:gst_pad_check_link: tryng to link filesrc0:src and perf0:sink
    0:0:00.287205142   183    0x16050 [32;01mINFO               GST_PADS gstutils.c:1468:prepare_lik_maybe_ghosting: filesrc0 and per0 in same bin, no need for ghost pads
    0:0:00.622946591   183    0x16050 [32;01mINFO               GST_PADS gstpad.c:1941:gst_pad_linkprepare: trying to link filesrc0:rc and perf0:sink
    0:00:00.623064841  183    0x16050 INFO    [00;01;31;41m            GST_PADS gstpa.c:2124:gst_pad_link_full: linked filsrc0:src and perf0:sink, successful
    00:00.623219791   183    0x16050 INFO           GST_PIPELINE ./grammar.y:568:gst_parseperform_link: linking perf0:(any) toffmpegcsp0:(any) (0/0) with caps "(nil"
    0:00:00.623299491   183    x16050 INFO        GST_ELEMENT_PADS gstutils.c:1568:gstelement_link_pads_full: trying to link elment perf0:(any) to element ffmpegcsp0:(an)
    0:00:00.623380741   183   0x16050 INFO                GST_PADS gstutils.c:102:gst_pad_check_link: trying to linkperf0:src and ffmpegcsp0:sink
    0:00:00623873691   183    0x16050 INFO               GST_PADS gstutils.c:1468:prepare_linkmaybe_ghosting: perf0 and ffmpegcs0 in same bin, no need for ghost pads
    0:0:00.624000091   183    0x1605 INFO               GST_PADS gstpad.c:1941:gst_pad_lnk_prepare: trying to link perf0:rc and ffmpegcsp0:sink
    0:00:00.624477441  183    0x16050 INO                GST_PDS gstpad.c:2124:gst_pad_link_full: linked perf0:src and ffmpegcsp0:sink, sucessful
    0:00:00.624620691   183[00m    0x16050 INFO            GST_PIPELINE ./grammr.y:568:gst_parse_perform_link: linkng ffmpegcsp0:(any) to fakesink0:(any)(0/0) with caps "(nil)"
    0:00:00.62469939  183    0x16050 INFO        GST_ELEMENT_ADS gstutils.c:1568:gst_element_link_padsfull: trying to link element ffmpgcsp0:(any) to element fakesink0:(any)
    000:00.624778741   183    0x1050 INFO               GST_PADS gstutils.c:1028:gstpad_check_link: trying to link ffmpegsp0:src and fakesink0:sink
    0:00:00.66869892   183    0x16050 INFO                GT_PADS gstutils.c:1468:prepare_link_mabe_ghosting: ffmpegcsp0 and fakesink0in same bin, no need for ghost pads
    000:00.666015392   183    0x1650 INFO               GST_PADS gstpad.c:1941:gst_pad_ink_prepare: trying to link ffmpecsp0:src and fakesink0:sink
    0:00:00.70680442   183    0x16050 INFO                ST_PADS gstpad.c:2124:gst_pad_link_full:0m linked ffmpegcsp0:src and fakesink:sink, successful
    Setting pipeline to PASED ...
    0:00:00.710519392   183    0x1050 INFO             GST_STATES gstelement.c:2354:gst_lement_continue_state:<fakesink0> poting state-changed NULL to READYDY
    0:00:0.710760092   183    0x16050 2;01mINFO             GST_STATES gstbin.c:2492:gst_bin_changestate_func:<pipeline0> child 'faksink0' changed state to 2(READY) successfuly
    0:00:00.710871342   183   0x16050 INFO             GST_STATES gstelement.c:2341:gs_element_continue_state:<ffmpegcsp0> completed state change to READY
    0:00:0.710942942   183    0x1605 INFO             GST_STATES gstelement.c:2354:gst_elemnt_continue_state:<ffmpegcsp0> postig state-changed NULL to READY
    0:00:00711045842   183    0x16050 INFO              ST_STATES gstbin.c:2492:gst_bin_change_ste_func:<pipeline0> child 'ffmpegcsp0' changed state to 2(READY) successfuly
    0:00:00.711172392   183    x16050 INFO             GST_STATES gstelement.c:2341:gs_element_continue_state:<perf0> cmpleted state change to READY
    0:00:00.71245642   183    0x16050 INFO              GSTSTATES gstelement.c:2354:gst_element_cntinue_state:<perf0> posting state-canged NULL to READY
    0:00:00.711345442 [334m  183    0x16050 INFO             GST_STATESgstbin.c:2492:gst_bin_change_state_func:<pipline0> child 'perf0' changed state to (READY) successfully
    0:00:00.71143364   183    0x16050 INF              GST_STATS gstelement.c:2341:gst_element_continue_tate:<filesrc0> completed state chage to READY
    0:00:01.047687142   83    0x16050 INFO    [00;01;31m          GST_STATES gstelemnt.c:2354:gst_element_continue_state:<filerc0> posting state-changed NULL t READY
    0:00:01.047814842   183    0x16050 INFO              GST_STATES gstbin.c:2492:gst_bn_change_state_func:<pipeline0> child 'ilesrc0' changed state to 2(READY) successflly
    0:00:01.048047542   183   0x16050 INFO              GST_STATES gstelement.c:231:gst_element_continue_state:<pipeline0> committing state from NULL to READY pending PAUSED, next PAUSED
    0:00:01.04999442   183    0x16050 INFO              GST_SATES gstelement.c:2323:gst_element_contiue_state:<pipeline0> continue stae change READY to PAUSED, final PAUSED
    0:0:01.049596242   183    0x1650 INFO             GST_STATES gstbin.c:2498:gst_bin_chnge_state_func:<pipeline0> child 'faesink0' is changing state asynchronousy to PAUSED
    0:00:01.049748492   183[00m    0x16050 INFO              GST_STATES gstelementc:2341:gst_element_continue_state:<ffmpegcp0> completed state change to PAUED
    0:00:01.049824542   183   0x16050 INFO              GST_STATES gstelement.c:2354:st_element_continue_state:<ffmpegcsp0>0m posting state-changed READY to PAUSE
    0:00:01.049930092   183   0x16050 INFO             GST_STATES gstbin.c:2492:gst_binchange_state_func:<pipeline0> chid 'ffmpegcsp0' changed state to 3(PAUSED) uccessfully
    0:00:01.050053892  183    0x16050 INFO    [00;01;31m          GST_STATES gstelemnt.c:2341:gst_element_continue_state:<per0> completed state change to PAUSD
    0:00:01.050126842   183    x16050 INFO             GST_STATES gstelement.c:2354:gs_element_continue_state:<perf0> psting state-changed READY to PAUSED
    0:0001.050226042   183    0x16050 [32;01mINFO             GST_STATES gstbin.c:2492:gst_bin_changestate_func:<pipeline0> child 'perf' changed state to 3(PAUSED) successfully
                                                                                                                                                                                0:00:01.050349792   183   0x16050
    0:00:01.095872142   183    0x16050 INFO               GST_EVENT gstevent.c:606:gt_event_new_new_segment_full: creting newsegment update 0, rate 1.000000,format bytes, start 0, stop -1, positio 0
    0:00:01.096628692   183   0x16050 INFO              GST_STATES gstelement.c:2341:gt_element_continue_state:<filesrc0> completed state change to PAUSED
    0:00:1.096749792   183    0x16050INFO            GST_STATES gstelement.c:2354:gst_element_continue_state:<filesrc0> posting tate-changed READY to PAUSED
    Pipeline is PREROLLING ...0x16050 INFO              GST_TATES gstbin.c:2492:gst_bin_change_stae_func:<pipeline0> child 'filesrc0' canged state to 3(PAUSED) successfully
    0:00:01.0991992   183    0x179a0 WARN           basetransform gtbasetransform.c:2265:gst_base_transform_andle_buffer:<ffmpegcsp0> error: ot negotiated
    0:00:01.099318692   83    0x179a0 WARN          basetransform gstbasetransfom.c:2265:gst_base_transform_handle_buffr:<ffmpegcsp0> error: not negotiated
                                                                                                                                                           0:00:01.099486542   183   0x179a0 INFO        GST_ERRd
    ERROR from element /GstPipeline:pipeline0/GsFFMpegCsp:ffmpegcsp0: not negotiated
    Addtional debug info:
    gstbasetransform.c2265): gst_base_transform_handle_buffer (: /GstPipeline:pipeline0/GstFFMpegCsp:fmpegcsp0:
    not negotiated
    ERROR: pipelie doesn't want to preroll.
    Setting pipelineto NULL ...
    0:00:01.100370792  183    0x16050 INFO    0;01;31m          GST_STATES gstelemet.c:2314:gst_element_continue_state:<fakeink0> committing state from READY t READY, pending NULL, next NULL
    0:00:01436143842   183    0x16050 [32;01mINFO              GT_STATES gstelement.c:2323:gst_element_cntinue_state:<fakesink0> continuestate change READY to NULL, final NULL
    0:0:01.436263192   183    0x1050 INFO             GST_STATES gstelement.c:2341:gst_eement_continue_state:<fakesink0> comleted state change to NULL
    0:00:01.43336242   183    0x16050 INFO              GS_STATES gstelement.c:2354:gst_element_coninue_state:<fakesink0> posting statechanged READY to NULL
    0:00:01.43643742   183    0x16050 INFO             GST_STATE gstbin.c:2492:gst_bin_change_state_func:pipeline0> child 'fakesink0' chaned state to 1(NULL) successfully
    0:00:01100456742   183    0x179a0 2;01mINFO        GSERROR_SYSTEM gstelement.c:1888:gst_element_message_full:<ffmpegcsp0> posted eror message: not negotiated
    0:00:01.43668642   183    0x179a0 INFO                 basesrc stbasesrc.c:2511:gst_base_src_loop:<fiesrc0> pausing after gst_pad_push()  not-negotiated
    0:00:01.436737742   183    0x179a0 WARN                 basesrc gstbasesrcc:2574:gst_base_src_loop:<filesrc0> rror: Internal data flow error.
    0:00:01436799642   183    0x179a0 3;01mWARN                 baserc gstbasesrc.c:2574:gst_base_src_loop<filesrc0> error: streaming task pased, reason not-negotiated (-4)
    0:00:0.436914292   183    0x179a0 2;01mINFO        GS_ERROR_SYSTEM gstelement.c:1865:gst_elemnt_message_full:<filesrc0> postingmessage: Internal data flow error.
    0:00:01.437121092   183    x179a0 INFO              GST_EVENT gstpad.c:5406:gst_pd_send_event:<ffmpegcsp0:sink> Receivd event on flushing pad. Discarding error.
    000:01.437261342   183    0x1600 INFO             GST_STATES gstelement.c:2314:gst_eleent_continue_state:<ffmpegcsp0> commtting state from PAUSED to READY, pendng NULL, next NULL
    0:00:01.437368492   183    0x16050 INFO             GST_STATES gstlement.c:2323:gst_element_continue_stat:<ffmpegcsp0> continue state changeREADY to NULL, final NULL
    0:00:01.43799442   183    0x16050 NFO              GST_SATES gstelement.c:2341:gst_element_contiue_state:<ffmpegcsp0> completed stte change to NULL
    0:00:01.437571792   183    0x16050 INFO              GST_STATES gsteement.c:2354:gst_element_continue_state:<fmpegcsp0> posting state-changed EADY to NULL
    0:00:01.437673892   13    0x16050 INFO             GST_STATES gstbin.:2492:gst_bin_change_state_func:<pipelne0> child 'ffmpegcsp0' changed stat to 1(NULL) successfully
    0:00:01.43781242   183    0x16050 IFO              GST_STTES gstelement.c:2314:gst_element_continuestate:<perf0> committing state fromPAUSED to READY, pending NULL, next NU
    0:00:01.437923892   183    0x16050 INFO             GST_STATES gstelement.c:2323:gstelement_continue_state:<perf0> cotinue state change READY to NULL, final NLL
    0:00:01.438027592   183   0x16050 INFO              GST_STATES gstelement.c:231:gst_element_continue_state:<perf0>completed state change to NULL
    0:00:0.774000141   183    0x16050 INFO              GST_TATES gstelement.c:2354:gst_element_coninue_state:<perf0> posting state-chaged READY to NULL
    0:00:01.774117891   183    0x16050 INFO   0m           GST_STATES gstbinc:2492:gst_bin_change_state_func:<pipeine0> child 'perf0' changed state to 1NULL) successfully
    0:00:01.830371892   183    0x16050 INFO   0m           GST_STATES gsteement.c:2314:gst_element_continue_state:filesrc0> committing state from PAUSD to READY, pending NULL, next NULL
    000:01.830493142   183    0x1600 INFO             GST_STATES gstelement.c:2323:gst_eleent_continue_state:<filesrc0> contnue state change READY to NULL, final NUL
    0:00:01.830597192   183   0x16050 INFO             GST_STATES gstelement.c:2341:gs_element_continue_state:<filesrc0>completed state change to NULL
    0:00:01.30668592   183    0x16050 2;01mINFO              GT_STATES gstelement.c:2354:gst_element_ontinue_state:<filesrc0> posting stte-changed READY to NULL
    0:00:01.83076192   183    0x16050 NFO              GST_SATES gstbin.c:2492:gst_bin_change_state_fuc:<pipeline0> child 'filesrc0' chaned state to 1(NULL) successfully
    0:00:1.831064842   183    0x16050 [32;01mINFO             GST_STATES gstelement.c:2341:gst_elemen_continue_state:<pipeline0> complted state change to NULL
    0:00:01.83114002   183    0x16050 IFO              GST_STATES gtelement.c:2354:gst_element_continue_stae:<pipeline0> posting state-change READY to NULL
    0:00:01.831253492  183    0x16050 INFO              GST_STATES gstbin.:1759:gst_bin_get_state_func:<pipeline> getting state
    Freeing pipeline ..
    0:00:01.831440442   183   0x16050 INFO        GST_ELEMENT_PADS gstpad.c:1713:gt_pad_unlink: unlinking ffmpegcsp0:rc(0x148b30) and fakesink0:sink(0x148b8)
    0:00:01.831603592   183    x16050 INFO        GST_ELEMENT_PADS gstpad.c:1758:gs_pad_unlink: unlinked ffmpegcsp0:src nd fakesink0:sink
    0:00:01.831750992 34m  183    0x16050 INFO          GST_PARENTAG gstbin.c:1440:gst_bin_remove_func:<pipeine0> removed child "fakesink0"
    000:01.831868842   183    0x1600 INFO        GST_REFCOUNTING gstelement.c:2955:gst_lement_dispose:<fakesink0> dispose
    :00:01.831942392   183    x16050 INFO       GST_ELEMENT_PADS gstelement.c:835:gs_element_remove_pad:<fakesink0> remving pad 'sink'
    0:00:01.832069992   183    0x16050 INFO         GST_REFCOUNTING gtelement.c:2979:gst_element_dispose:<fakeink0> parent class dispose
    0:00:1.832154792   183    0x16050 2;01mINFO         GSTREFCOUNTING gstelement.c:3010:gst_elemnt_finalize:<fakesink0> finalize
    0:0:01.832229342   183    0x1050 INFO        GST_REFCOUNTING gstelement.c:3021:gstelement_finalize:<fakesink0> finalie parent
    0:00:01.832314642   18    0x16050 INFO        GST_ELEMENT_PADS gstpad.c1713:gst_pad_unlink: unlinking perf:src(0x1489a0) and ffmpegcsp0:sink(0x148a8)
    0:00:01.832429792   183   0x16050 INFO        GST_ELEMENT_PADS gstpad.c:1758gst_pad_unlink: unlinked perf0:src ad ffmpegcsp0:sink
    0:00:01.832567492   183    0x16050 INFO   [00m        GST_PARENTAG gstbin.c:1440:gst_bin_remove_func:<pipelie0> removed child "ffmpegcsp0"
    000:01.832668342   183    0x1600 INFO        GST_REFCOUNTING gstelement.c:2955:gst_lement_dispose:<ffmpegcsp0> dispose
                                                                                                                          0:00:01.832739841   183    x16050 INFO       GST_ELEMENT_PADS gstelement.c:835:gs_elem'
    0:00:01.832840841   183    0x16050 INFO       GST_ELEMENT_PADS gsteement.c:835:gst_element_remove_pad:<ffpegcsp0> removing pad 'sink'
    0:00:02169440942   183    0x16050 [32;01mINFO         GT_REFCOUNTING gstelement.c:2979:gst_eleent_dispose:<ffmpegcsp0> parent clas dispose
    0:00:02.169528592   13    0x16050 INFO         GST_REFCOUNTING gstelemnt.c:3010:gst_element_finalize:<ffmpegcsp> finalize
    0:00:02.169603942   183    0x16050 INFO         GST_REFCOUNTING gstlement.c:3021:gst_element_finalize:<ffpegcsp0> finalize parent
    0:00:02.16690092   183    0x16050 INFO        GST_ELMENT_PADS gstpad.c:1713:gst_pad_unlink[00m unlinking filesrc0:src(0x148810) and perf0:sink(0x1488d8)
    0:00:02.16980754   183    0x16050 INF        GST_ELEMENT_ADS gstpad.c:1758:gst_pad_unlink: ulinked filesrc0:src and perf0:sink
    0:0:02.169946792   183    0x16050 [32;01mINFO           ST_PARENTAGE gstbin.c:1440:gst_bin_remve_func:<pipeline0> removed child "prf0"
    0:00:02.170047092   183    0x16050 INFO         GST_REFCOUNTING gstelement.:2955:gst_element_dispose:<perf0> dipose
    0:00:02.170118892   183   0x16050 INFO        GST_ELEMENT_PADS gstelement.c:85:gst_element_remove_pad:<perf0> emoving pad 'src'
    0:00:02.170219042   183    0x16050 INFO   [00m     GST_ELEMENT_PADS gtelement.c:835:gst_element_remove_pad:perf0> removing pad 'sink'
    0:00:02.70318442   183    0x16050 2;01mINFO         GSTREFCOUNTING gstelement.c:2979:gst_elemet_dispose:<perf0> parent class dispoe
    0:00:02.170398192   183    x16050 INFO         GST_REFCOUNTING gstelement.c:3010gst_element_finalize:<perf0> finaize
    0:00:02.170471642   183   0x16050 INFO         GST_REFCOUNTING gstelement.c:302:gst_element_finalize:<perf0> finlize parent
    0:00:02.170563392   18    0x16050 INFO    [00;01;37;41m       GST_PARENTAGE gstbin.:1440:gst_bin_remove_func:<pipeline0>removed child "filesrc0"
    0:00:02.170679042   183    0x16050 NFO         GST_RECOUNTING gstelement.c:2955:gst_element_dipose:<filesrc0> dispose
    0:00:02.70750442   183    0x16050 INFO        GST_LEMENT_PADS gstelement.c:835:gst_element_emove_pad:<filesrc0> removing pad'src'
    0:00:02.170875242   183   0x16050 INFO         GST_REFCOUNTING gstelement.c:979:gst_element_dispose:<filesrc0> prent class dispose
    0:00:02.170961542 [334m  183    0x16050 INFO   [00m      GST_REFCOUNTIN gstelement.c:3010:gst_element_finalize:<ilesrc0> finalize
    0:00:02.17103582   183    0x16050 INF         GST_REFCOUTING gstelement.c:3021:gst_element_finalie:<filesrc0> finalize parent
    0:00:2.171112342   183    0x1605 INFO         T_REFCOUNTING gstelement.c:2955:gst_element_dispose:<pipeline0> dispose
    0:0:02.171215142   183    0x1050 INFO        GST_REFCOUNTING gstelement.c:2979:gs_element_dispose:<pipeline0> parent lass dispose
    0:00:02.171299842  183    0x16050 INFO        GST_REFCOUNTING gstelemen.c:3010:gst_element_finalize:<pipeline0>[00m finalize
    0:00:02.171375292   18    0x16050 INFO         GST_REFCOUNTING gstelement.:3021:gst_element_finalize:<pipeline0> finlize parent
    0:00:02.507335292   183   0x16050 INFO               GST_INIT gst.c:1010:gst_deint: deinitializing GStreamer
    0:0002.528732142   183    0x16050 [32;01mINFO               GST_INIT gst.c:1113:gst_deinit: dinitialized GStreamer
    root@dm814x-evm~#

    root@dm814x-evm:/#  gst-launch -v filesrc location=/dev/fb0 ! gstperf ! ffmpegco
    lorspace ! omx_h264enc ! h264parse ! fakesink silent=true --gst-debug=3


    0:00:00.018062090   207    0x16050 INFO                GST_INIT gstquery.c:108:_gst_query_initialize: init queries
    0:00:00.024146487  207    0x16050 INFO               GST_INIT gstmessage.c73:_gst_message_initialize: init messaes
    0:00:00.025656210   207    016050 INFO      ST_PLUGIN_LOADING gstplugin.c:350:_gst_plugi_initialize: registering 0 static pluins
    0:00:00.026619539   207   0x16050 INFO      ST_PLUGIN_LOADING gstplugin.c:255:gst_pluginregister_static: registered static plugn "staticelements"
    0:00:00.026712647   207    0x16050 INFO     GST_PLUGIN_LOADING gstplugin.c257:gst_plugin_register_static: added sttic plugin "staticelements", result: 1
    000:00.032346809   207    0x16050 [32;01mINFO            GST_REGISTR gstregistry.c:1599:ensure_current_registry:[00m reading registry cache: /home/root/gstreamer-0.10/registry.arm.bin
    0:00:00.164672486   207    0x16050 INFO            GST_REGISTRY gstregistrybinary.c:614:gst_registry_binary_read_cache: loaded /home/root/.gstreame-0.10/registry.arm.bin in 0.132123 seconds
    0:00:0.165155438   207    0x16050 NFO            GST_REGISTRY gstregitry.c:1469:scan_and_update_registry: Validating plugins from registry cache: /hoe/root/.gstreamer-0.10/registry.arm.bin
    0:00:0.173799020   207    0x16050 NFO            GST_REGISTRY gstreistry.c:1561:scan_and_update_registry: Regstry cache has not changed
    0:00:00.17391437   207    0x16050 IFO            GST_REGISTRY gstrgistry.c:1628:ensure_current_registry:[00m registry reading and updating done, esult = 1
    0:00:00.173975970   20    0x16050 INFO                GST_INIT gst.c:792:int_post: GLib runtime version: 2.241
    0:00:00.174041421   207    x16050 INFO               GST_INIT gst.c:794:init_post:0m GLib headers version: 2.24.1
    0:0000.174272721   207    0x16050 [32;01mINFO          GST_PIPELINE gstparse.c:299:gst_parse_launch_full: parsing pipeline desciption 'filesrc location=/dev/fb0 ! gstper ! ffmpegcolorspace ! omx_h264enc !'
    0:00:00.80964033   207    0x16050 INFO      GST_PLUGN_LOADING gstplugin.c:859:gst_plugin_load_ile: plugin "/usr/lib/gstreamer-010/libgstcoreelements.so" loaded
    0:00:0.181096733   207    0x16050 [32;01mINFO     GST_ELMENT_FACTORY gstelementfactory.c:371:gt_element_factory_create: creating eement "filesrc"
    0:00:00.182396384  207    0x16050 INFO        GST_ELEMENT_PADS gstlement.c:716:gst_element_add_pad:<GstBseSrc@0x14a030> adding pad 'src'
    0:0:00.202338025   207    0x1050 INFO                    omx gstomx_videomixer.c:2183:initinterfaces: GstChildProxy interface egistered
    0:00:00.202517675   27    0x16050 INFO      GST_PLUGIN_LOADING gstpluginc:859:gst_plugin_load_file: plugin "usr/lib/gstreamer-0.10/libgstomx.so" loadd
    0:00:00.202600125   207   0x16050 INFO     GST_ELEMENT_FACTORY gstelementfactoy.c:371:gst_element_factory_create: reating element "gstperf"
    0:00:00.20384524   207    0x16050 NFO        GST_ELEENT_PADS gstelement.c:716:gst_element_addpad:<GstBaseTransform@0x14e000> ading pad 'sink'
    0:00:00.203707623  207    0x16050 INFO       GST_ELEMENT_PADS gstlement.c:716:gst_element_add_pad:<GstBaseransform@0x14e000> adding pad 'sr'
    0:00:00.206279420   207    x16050 INFO     GST_PLUGIN_LOADING gstplugin.c:859:gst_pugin_load_file: plugin "/usr/lib/streamer-0.10/libgstffmpegcolorspace.so" oaded
    0:00:00.212243814   207    016050 INFO       GST_ELEMENT_PADS gstelement.c:716:st_element_add_pad:<GstBaseTransform@0x15c20> adding pad 'sink'olorspace"
    0:00:00.21477514   207    0x16050 INFO        GST_ELMENT_PADS gstelement.c:716:gst_element_a_pad:<GstBaseTransform@0x15c020> adding pad 'src'
    0:00:00.212655864  207    0x16050 INFO   0m  GST_ELEMENT_FACTORY gtelementfactory.c:371:gst_element_factry_create: creating element "omx_h26enc"
    0:00:00.214599212   207   0x16050 INFO        GST_ELEMENT_PADS gstelement.c:16:gst_element_add_pad:<GstOmxBaseFilte@0x160010> adding pad 'sink'
    0:00:0.214706462   207    0x16050INFO        GS_ELEMENT_PADS gstelement.c:716:gst_eleent_add_pad:<GstOmxBaseFilter@0x160010> adding pad 'src'
    0:00:00.217518909  207    0x16050 INFO     GST_PLUGIN_LOADINGgstplugin.c:859:gst_plugin_load_file:plugin "/usr/lib/gstreamer-0.10/libgsth264arse.so" loaded
    0:00:00.217624159  207    0x16050 INFO    [00;01;37;41m GST_ELEMENT_FACTORY gstelemetfactory.c:371:gst_element_factory_crete: creating element "h264parse"
    000:00.218508658   207    0x6050 INFO       GST_ELEMENT_PADS gstelement.c:716:gs_element_add_pad:<GstH264Parse@0x1615b0> adding pad 'sink'
    0:00:00.55517770   207    0x16050 INF        GST_ELEMENT_PAD gstelement.c:716:gst_element_add_pad:GstH264Parse@0x1615b0> adding pad 'rc'
    0:00:00.555512707   207   0x16050 INFO     GST_ELEMENT_FACTORY gstelementfacory.c:371:gst_element_factory_create:creating element "fakesink"
    0:00:00.56601006   207    0x16050 INFO        GST_LEMENT_PADS gstelement.c:716:gst_element_dd_pad:<GstBaseSink@0x1660b8> addng pad 'sink'
    0:00:00.557666457   207    0x1650 INFO           GST_PIPELINE ./grammar.y:568:gst_arse_perform_link: linking filesrc:(any) to perf0:(any) (0/0) with caps "(nl)"
    0:00:00.557809607   207   0x16050 INFO        GST_ELEMENT_PADS gstutils.c:168:gst_element_link_pads_full: tryin to link element filesrc0:(any) to elemen perf0:(any)
    0:00:00.557915457  207    0x16050 INFO               GST_PADS gsutils.c:1028:gst_pad_check_link: tryng to link filesrc0:src and perf0:sink
                                                                                                                                              0:00:00.558045557   207    016050 INFO                GST_PADS gsts
    0:00:00.558259157   207   0x16050 INFO                GST_PADS gstpad.c:141:gst_pad_link_prepare: trying to lnk filesrc0:src and perf0:sink
    0:00:0.558365457   207    0x16050 INFO               GST_PADS gstpad.c:2124:gst_pad_link_fll: linked filesrc0:src and perf0:sik, successful
    0:00:00.558518707  207    0x16050 INFO           GST_PIPELINE ./rammar.y:568:gst_parse_perform_link:linking perf0:(any) to ffmpegcsp0:(any (0/0) with caps "(nil)"
    0:00:00.55859847   207    0x16050 NFO        GST_ELEMENTPADS gstutils.c:1568:gst_element_link_ads_full: trying to link element per0:(any) to element ffmpegcsp0:(any)
    0:0000.558679157   207    0x1600 INFO               GST_PADS gstutils.c:1028:gst_padcheck_link: trying to link perf0:srand ffmpegcsp0:sink
    0:00:00.559251207   207    0x16050 INFO               GST_PDS gstutils.c:1468:prepare_link_maybe_ghoting: perf0 and ffmpegcsp0 in sam bin, no need for ghost pads
    0:00:00.55974107   207    0x16050 NFO               GST_PADS gstpad.c:1941:gst_pad_link_prepae: trying to link perf0:src and ffpegcsp0:sink
    0:00:00.559791507   07    0x16050 INFO               GST_PADS gstpadc:2124:gst_pad_link_full: linked erf0:src and ffmpegcsp0:sink, successful
                                                                                                                                                 0:00:00.559928307   207    x16050 INFO           GST_PIPELINE ."
    0:00:00.560006757  207    0x16050 INFO       GST_ELEMENT_PADS gsttils.c:1568:gst_element_link_pads_full:trying to link element ffmpegcsp0:(any) toelement omxh264enc0:(any)
    0:00:00.56006907   207    0x16050 IFO                GS_PADS gstutils.c:1028:gst_pad_check_link:[00m trying to link ffmpegcsp0:src and omxh64enc0:sink
    0:00:00.936095806   207    0x16050 INFO                GST_PADS gstutils.c:1468:prepare_link_maybe_ghosting: ffmpegcsp0 andomxh264enc0 in same bin, no need for ghst pads
    0:00:00.936275156   207   0x16050 INFO                GST_PADS gstpad.c:1941:gst_pad_link_prepare: trying to link fmpegcsp0:src and omxh264enc0:sink
    0:00:00.977291456   207    0x16050 INFO                GST_PADS gstpad.c:2124:gst_pad_link_full: linked ffmpegcsp0:src and omxh264enc0:sik, successful
    0:00:00.977491057  207    0x16050 INFO           GST_PIPELINE .grammar.y:568:gst_parse_perform_link: linking omxh264enc0:(any) to h264pare0:(any) (0/0) with caps "(nil)"
    0:00:0.977576957   207    0x16050INFO        GS_ELEMENT_PADS gstutils.c:1568:gst_eleent_link_pads_full: trying to link eement omxh264enc0:(any) to element h24parse0:(any)
    0:00:00.977662857  207    0x16050 INFO                GST_PADS gsttils.c:1028:gst_pad_check_link: tying to link omxh264enc0:src and h264pare0:sink
    0:00:00.977742957   207[00m    0x16050 INFO                GST_PADS gstutil.c:1468:prepare_link_maybe_ghosting:omxh264enc0 and h264parse0 in same bi, no need for ghost pads
    0:00:00.97785057   207    0x16050 NFO                GT_PADS gstpad.c:1941:gst_pad_link_prepre: trying to link omxh264enc0:src nd h264parse0:sink
    0:00:00.977932407 [334m  207    0x16050 INFO               GST_PDS gstpad.c:2124:gst_pad_link_full:linked omxh264enc0:src and h264parse0:ink, successful
    0:00:00.978063057  207    0x16050 INFO   0m         GST_PIPELINE .grammar.y:568:gst_parse_perform_link:0m linking h264parse0:(any) to fakesink:(any) (0/0) with caps "(nil)"
    0:00:0.978140007   207    0x16050 2;01mINFO        GT_ELEMENT_PADS gstutils.c:1568:gst_elemet_link_pads_full: trying to link lement h264parse0:(any) to element fakesnk0:(any)
    0:00:00.978219657   27    0x16050 INFO    0;01;31;41m            GST_PADS gstuils.c:1028:gst_pad_check_link: tryig to link h264parse0:src and fakesink0sink
    0:00:00.978317057   207   0x16050 INFO                GST_PADS gstutils.c:148:prepare_link_maybe_ghosting: h64parse0 and fakesink0 in same bin, no ned for ghost pads
    0:00:00.978430957 34m  207    0x16050 INFO               GST_PAS gstpad.c:1941:gst_pad_link_prepare: trying to link h264parse0:src and faesink0:sink
    0:00:00.978514207   27    0x16050 INFO               GST_PADS gstpa.c:2124:gst_pad_link_full: linkedh264parse0:src and fakesink0:sink, succesful
    Setting pipeline to PAUSED ...
    :00:00.982082207   207    0x1050 INFO             GST_STATES gstelement.c:2341:gst_lement_continue_state:<fakesink0>completed state change to READY
    0:00:00982173107   207    0x16050INFO             GST_STATES gstelement.c:2354:gst_elemet_continue_state:<fakesink0> posti state-changed NULL to READY
    0:00:00.982410557   207    0x16050 INFO             GST_STATES gstbin.c:2492:gst_bin_change_sate_func:<pipeline0> child 'fakeink0' changed state to 2(READY) successflly
    0:00:00.982533707   207   0x16050 INFO              GST_STATES gstelement.c:241:gst_element_continue_state:<h264parse> completed state change to READY
                                                                                                                                                          0:00:00.982608207   207    016050 INFO             GSTY
    :00:00.982708457   207    016050 INFO             GST_STATES gstbin.c:2492:gst_bi_change_state_func:<pipeline0> chil 'h264parse0' changed state to 2(READY successfully
    0:00:00.982808157  207    0x16050 INFO                     omx gstomx_base_ilter.c:153:change_state:<omxh264enc0>[00m begin: changing state NULL -> READY
                                                                                                                                                             0:00:02.037568607   207    0x16050 INFO            Y
    0:00:02037775557   207    0x16050 INFO             GST_STATES gstelement.c:2354:gst_elementcontinue_state:<omxh264enc0> postng state-changed NULL to READY
    0:00:02.37937657   207    0x16050 2;01mINFO              ST_STATES gstbin.c:2492:gst_bin_changestate_func:<pipeline0> child 'omxh24enc0' changed state to 2(READY) succesfully
    0:00:02.038075007   207    0x16050 INFO              GST_STATES gstelement.c:341:gst_element_continue_state:<ffmpegsp0> completed state change to READ
    0:00:02.038150507   207   0x16050 INFO             GST_STATES gstelement.c:2354gst_element_continue_state:<ffmpegcsp0>0m posting state-changed NULL to REA
    0:00:02.038253807   207    0x16050 INFO             GST_STATES gstbin.c:2492:gst_bn_change_state_func:<pipeline0> cild 'ffmpegcsp0' changed state to 2(READ) successfully
    0:00:02.038358357   207    0x16050 INFO              GST_STATES gselement.c:2341:gst_element_continue_stat:<perf0> completed state change t READY
    0:00:02.038532307   207   0x16050 INFO             GST_STATES gstbin.c:2492:gst_in_change_state_func:<pipeline0> chld 'perf0' changed state to 2(READY) sccessfully
    0:00:02.038624007   20    0x16050 INFO    [00;01;31m          GST_STATES gstelemen.c:2341:gst_element_continue_state:<fiesrc0> completed state change to REDY
    0:00:02.038695357   207   0x16050 INFO              GST_STATES gstelement.c:234:gst_element_continue_state:<filesrc0>0m posting state-changed NULL to READ
    0:00:02.038795607   207    x16050 INFO              GST_STATES gstbin.c:2492:gst_bn_change_state_func:<pipeline0> hild 'filesrc0' changed state to 2(READY)successfully
    0:00:02.038951857  207    0x16050 INFO              GST_STATES gsteement.c:2314:gst_element_continue_state:pipeline0> committing state from ULL to READY, pending PAUSED, next PAUSE
    0:00:02.039312957   207   0x16050 INFO             GST_STATES gstelement.c:2323gst_element_continue_state:<pipeline0 continue state change READY to PAUED, final PAUSED
    0:00:02.039615557   207    0x16050 INFO   0m           GST_STATES gtbin.c:2498:gst_bin_change_state_func:<pieline0> child 'fakesink0' is chaging state asynchronously to PAUSED
    0:0:02.039747257   207    0x1650 INFO             GST_STATES gstelement.c:2341:gst_eement_continue_state:<h264parse0> cmpleted state change to PAUSED
    0:00:0.039821557   207    0x16050 2;01mINFO             GST_STATES gstelement.c:2354:gst_elemen_continue_state:<h264parse0> postng state-changed READY to PAUSED
    0:00:0.039925907   207    0x16050INFO             GST_STATES gstbin.c:2492:gst_bin_chane_state_func:<pipeline0> child 'h2parse0' changed state to 3(PAUSED) successfully
    0:00:02.040023807   207[00m    0x16050 INFO    0m                 omx gstomx_base_filtr.c:153:change_state:<omxh264enc0>begin: changing state READY -> PAUSED
    000:02.040123157   207    0x6050 INFO             GST_STATES gstelement.c:2341:gst_elment_continue_state:<omxh264enc0>completed state change to PAUSED
    0:00:02040196057   207    0x16050 [32;01mINFO              ST_STATES gstelement.c:2354:gst_elemen_continue_state:<omxh264enc0> postig state-changed READY to PAUSED
    0:00:2.375553306   207    0x16050 2;01mINFO              GST_STAES gstbin.c:2492:gst_bin_change_state_unc:<pipeline0> child 'omxh264enc0' chaged state to 3(PAUSED) successfully
    0:0002.375703456   207    0x1600 INFO             GST_STATES gstelement.c:2341:gst_elment_continue_state:<ffmpegcsp0> copleted state change to PAUSED
    0:00:02375780206   207    0x16050 INFO             GST_STATES gstelement.c:2354:gst_element_ontinue_state:<ffmpegcsp0> postin state-changed READY to PAUSED
    0:00:02.75882756   207    0x16050 2;01mINFO              ST_STATES gstbin.c:2492:gst_bin_changestate_func:<pipeline0> child 'ffmpecsp0' changed state to 3(PAUSED) succesfully
    0:00:02.376006206   207   0x16050 INFO              GST_STATES gstelement.c:341:gst_element_continue_state:<perf0>[00m completed state change to PAUSED
    0:0:02.376079256   207    0x6050 INFO             GST_STATES gstelement.c:2354:gstelement_continue_state:<perf0> postng state-changed READY to PAUSED
    0:00:2.376178506   207    0x16050INFO             GST_STATES gstbin.c:2492:gst_bin_chane_state_func:<pipeline0> child 'prf0' changed state to 3(PAUSED) successfly
    0:00:02.376303906   207    0x16050 INFO                filesrc gstfilesrc.c:963:gstfile_src_start:<filesrc0> opening fie /dev/fb0
    0:00:02.416303556   07    0x16050 INFO    [00;01;34m           GST_EVENT gsteven.c:606:gst_event_new_new_segment_full: creating newsegment update 0, rate .000000, format bytes, start 0, stop -1,position 0
    0:00:02.417022406  207    0x16050 INFO    [00;01;31m          GST_STATES gsteleent.c:2341:gst_element_continue_state:<flesrc0> completed state change to AUSED
    0:00:02.417114056   207    0x16050 INFO              GST_STATES gstelement.c:254:gst_element_continue_state:<filesr0> posting state-changed READY to PUSED
    0:00:02.417222906   207   0x16050 INFO              GST_STATES gstbin.c:2492st_bin_change_state_func:<pipeline0> child 'filesrc0' changed state to 3(USED) successfully
    0:00:02.417986457   207   0x173000 INFO                    omx gstomx_ase_videoenc.c:290:pad_event:<omxh264ec0> begin: event=newsegment
    0:00:0.418123057   207   0x173000INFO                    omx gstomx_base_filter.c:729:pad_evet:<omxh264enc0> begin: event=newsegent
    0:00:02.418325707   207  0x173000 WARN          basetransform gstbasetransform.c:265:gst_base_transform_handle_buffer:<ffmegcsp0> error: not negotiated
    0:0:02.418396907   207   0x17300 WARN           bastransform gstbasetransform.c:2265:gst_bae_transform_handle_buffer:<ffmpegcsp0>[00m error: not negotiated
    0:00:02.41859607   207   0x173000 INFO        GST_ERRR_SYSTEM gstelement.c:1865:gst_elementmessage_full:<ffmpegcsp0> posting mssage: not negotiated
    0:00:02.41870797   207   0x173000 INO        GST_ERRORSYSTEM gstelement.c:1888:gst_element_messge_full:<ffmpegcsp0> posted errormessage: not negotiated
    0:00:02.41880047   207   0x173000 NFO                 basesrc gsbasesrc.c:2511:gst_base_src_loop:<filsrc0> pausing after gst_pad_push() =not-negotiated
    0:00:02.418909557   207   0x173000 WARN                 basesrc gstbasesr.c:2574:gst_base_src_loop:<filesrc0>error: Internal data flow error.
    0:00:0.419016757   207   0x173000 WARN                 basesrcgstbasesrc.c:2574:gst_base_src_loop:<fiesrc0> error: streaming task paused reason not-negotiated (-4)
    0:00:02.19133257   207   0x173000 INFO        GSTERROR_SYSTEM gstelement.c:1865:gst_elemet_message_full:<filesrc0> posting essage: Internal data flow error.
    0:00:2.755428657   207   0x17300 INFO        ST_ERROR_SYSTEM gstelement.c:1888:gst_lement_message_full:<filesrc0> posed error message: Internal data flow eror.
    0:00:02.755538657   207  0x173000 INFO                    omx gstomx_base_videoenc.c290:pad_event:<omxh264enc0> begin event=eos
    0:00:02.755602956   20   0x173000 INFO    [00m                 omx gstomx_base_filer.c:729:pad_event:<omxh264enc0> egin: event=eos
    Pipeline is PREROLLING ..
    Recieved EOS event, press <CTRL+C>to terminate pipeline.
    ERROR: from elemnt /GstPipeline:pipeline0/GstFFMpegCspffmpegcsp0: not negotiated
    Additional dbug info:
    gstbasetransform.c(2265): gt_base_transform_handle_buffer (): /GstPpeline:pipeline0/GstFFMpegCsp:ffmpegcp0:
    not negotiated
    ERROR: pipeline does't want to preroll.
    Setting pipelineto NULL ...
    0:00:02.758484307   27    0x16050 INFO             GST_STATES gstelemet.c:2314:gst_element_continue_state:<fkesink0> committing state from PAUSD to READY, pending NULL, next NULL
    000:02.758615907   207    0x1650 INFO             GST_STATES gstelement.c:2323:gst_eement_continue_state:<fakesink0> ntinue state change READY to NULL, final NULL
    0:00:02.758726257   207    0x16050 INFO              GST_STATES gstelement.c2341:gst_element_continue_state:<fakesin0> completed state change to NULL
                                                                                                                                                         0:00:02.758797557   207    016050 INFO             GST_L
    0:0:02.758899307   207    0x1600 INFO             GST_STATES gstbin.c:2492:gst_bin_cange_state_func:<pipeline0> child 'fkesink0' changed state to 1(NULL) succssfully
    0:00:02.759059107   207    0x16050 INFO              GST_STATES gstelement.c2314:gst_element_continue_state:<h264prse0> committing state from PAUSED o READY, pending NULL, next NULL
    0:0002.759165257   207    0x16050INFO             GST_STATES gstelement.c:2323:gst_elemnt_continue_state:<h264parse0> cotinue state change READY to NULL, final ULL
    0:00:02.759342407   207    0x6050 INFO             GST_STATES gstelement.c:2354:gs_element_continue_state:<h264parse0> posting state-changed READY to NULL
    000:02.759440357   207    016050 INFO             GST_STATES gstbin.c:2492:gst_bi_change_state_func:<pipeline0> child'h264parse0' changed state to 1(NULL)successfully
    0:00:02.759536057   27    0x16050 INFO                    omx gstomx_base_flter.c:153:change_state:<omxh264enc0> begin: changing state PAUSED -> READY
                                                                                                                                                          0:00:02.759680857   207   0x16050 INFO             GSTL
    0:00:02.75786157   207    0x16050 NFO              GST_STATS gstelement.c:2323:gst_element_continue_tate:<omxh264enc0> continue statechange READY to NULL, final NULL
    0:00:0.759859407   207    0x16050 INFO                   omx gstomx_base_filter.c:153:change_state:<omxh264enc0> begin: changin state READY -> NULL
    0:00:03.142374857   207    0x16050 INFO              GST_STATES gstelement.c:2341:gst_element_continue_state:<omxh264enc0> cmpleted state change to NULL
    0:00:03.42582857   207    0x16050 INFO              ST_STATES gstelement.c:2354:gst_element_cntinue_state:<omxh264enc0> postin state-changed READY to NULL
    0:00:03.14245807   207    0x16050 INFO              GST_TATES gstbin.c:2492:gst_bin_change_state_fun:<pipeline0> child 'omxh264enc0' hanged state to 1(NULL) successfully
    0:0:03.142960357   207    0x1650 INFO             GST_STATES gstelement.c:2314:gst_elment_continue_state:<ffmpegcsp0> comitting state from PAUSED to READY, pening NULL, next NULL
    0:00:03.143077857   207    0x16050 INFO             GST_STATES gselement.c:2323:gst_element_continue_state<ffmpegcsp0> continue state chang READY to NULL, final NULL
    0:00:03.14314007   207    0x16050 INFO              GST_STTES gstelement.c:2341:gst_element_contnue_state:<ffmpegcsp0> completed stae change to NULL
    0:00:03.143254407   207    0x16050 INFO   [00m           GST_STATES gselement.c:2354:gst_element_continue_stat:<ffmpegcsp0> posting state-changd READY to NULL
    0:00:03.143354557  207    0x16050 INFO              GST_STATES gstbi.c:2492:gst_bin_change_state_func:<pipelie0> child 'ffmpegcsp0' changed stte to 1(NULL) successfully
    0:00:03.14350107   207    0x16050 INFO              GST_STTES gstelement.c:2314:gst_element_contnue_state:<perf0> committing state fom PAUSED to READY, pending NULL, nextNULL
    0:00:03.143609557   207   0x16050 INFO              GST_STATES gstelement.c:2323gst_element_continue_state:<perf0>continue state change READY to NULL, fial NULL
    0:00:03.143713657   207[00m    0x16050 INFO              GST_STATES gstelement.:2341:gst_element_continue_state:<perf0>0m completed state change to NULL
    0:0003.143784757   207    0x1600 INFO             GST_STATES gstelement.c:2354:gst_eleent_continue_state:<perf0> posting sate-changed READY to NULL
    0:00:03.14384107   207    0x16050 NFO              GST_TATES gstbin.c:2492:gst_bin_change_state_unc:<pipeline0> child 'perf0' chaged state to 1(NULL) successfully
    0:00:0.184274257   207    0x16050INFO             GST_STATES gstelement.c:2314:gst_elemet_continue_state:<filesrc0> committig state from PAUSED to READY, pendingNULL, next NULL
    0:00:03.184401957  207    0x16050 INFO             GST_STATES gsteleent.c:2323:gst_element_continue_state:<fiesrc0> continue state change READ to NULL, final NULL
    0:00:03.184507207 34m  207    0x16050 INFO             GST_STATES gtelement.c:2341:gst_element_continue_sate:<filesrc0> completed state changeto NULL
    0:00:03.184606507   207[00m    0x16050 INFO              GST_STATES gstelement.c:354:gst_element_continue_state:<filesr0> posting state-changed READY to NUL
    0:00:03.184713507   207   0x16050 INFO              GST_STATES gstbin.c:2492:gs_bin_change_state_func:<pipeline0> ild 'filesrc0' changed state to 1(NULL) successfully
    0:00:03.185055657   07    0x16050 INFO             GST_STATES gstelemnt.c:2341:gst_element_continue_state:<ppeline0> completed state change to NLL
    0:00:03.185136657   207   0x16050 INFO              GST_STATES gstelement.c:234:gst_element_continue_state:<pipeline0>[00m posting state-changed READY to NUL
    0:00:03.185252607   207   0x16050 INFO              GST_STATES gstbin.c:1759:gst_in_get_state_func:<pipeline0> getng state
    Freeing pipeline ...
    0:00:03.185516507   207    0x16050 INFO        GST_ELEENT_PADS gstpad.c:1713:gst_pad_unlink:unlinking h264parse0:src(0x148e50) an fakesink0:sink(0x148f18)
    0:00:03.18566007   207    0x16050 INO        GST_ELEMEN_PADS gstpad.c:1758:gst_pad_unlink: nlinked h264parse0:src and fakesink0:snk
    0:00:03.521178207   207   0x16050 INFO           GST_PARENTAGE gstbin.c:1440:gt_bin_remove_func:<pipeline0> remoed child "fakesink0"
    0:00:03.521311757 [334m  207    0x16050 INF         GST_REFCOUNTNG gstelement.c:2955:gst_element_dispos:<fakesink0> dispose
    0:00:03.52138907   207    0x16050 NFO        GST_ELEMEN_PADS gstelement.c:835:gst_element_remve_pad:<fakesink0> removing pad 'sik'
    0:00:03.521520857   207   0x16050 INFO         GST_REFCOUNTING gstelement.c:2979gst_element_dispose:<fakesink0> prent class dispose
    0:00:03.521610107   207    0x16050 INFO        GST_REFCOUNTINGgstelement.c:3010:gst_element_finalize<fakesink0> finalize
    0:00:03.52168637   207    0x16050 NFO         GST_REFCONTING gstelement.c:3021:gst_element_finlize:<fakesink0> finalize parent
    000:03.521772907   207    0x6050 INFO       GST_ELEMENT_PADS gstpad.c:1713:gst_pad_ulink: unlinking omxh264enc0:src(0148cc0) and h264parse0:sink(0x148d88)
    0:0:03.521889407   207    0x1050 INFO       GST_ELEMENT_PADS gstpad.c:1758:gst_pa_unlink: unlinked omxh264enc0:src an h264parse0:sink
    0:00:03.522028657   207    0x16050 INFO   0m        GST_PARENTAGEgstbin.c:1440:gst_bin_remove_func:<pipeli0> removed child "h264parse0"
    0:00:03.522201457   207    x16050 INFO       GST_ELEMENT_PADS gstelement.c:835:gt_element_remove_pad:<h264parse0> rmoving pad 'src'
    0:00:03.522320057   207    0x16050 INFO   0m     GST_ELEMENT_PADSgstelement.c:835:gst_element_remove_pad:h264parse0> removing pad 'sink'
    :00:03.522436257   207    0x150 INFO         GST_REFCOUNTING gstelement.c:2979:gstelement_dispose:<h264parse0> parentclass dispose
    0:00:03.522576307  207    0x16050 INFO        GST_REFCOUNTING gstlement.c:3010:gst_element_finalize:<h264prse0> finalize
    0:00:03.522653157  207    0x16050 INFO        GST_REFCOUNTNG gstelement.c:3021:gst_element_finaliz:<h264parse0> finalize parent
    0:0:03.522739307   207    0x1605 INFO       GST_ELEMENT_PADS gstpad.c:1713:gst_pad_ulink: unlinking ffmpegcsp0:src(0x14830) and omxh264enc0:sink(0x148bf8)
    0:0:03.522854557   207    0x1605 INFO       GST_ELEMENT_PADS gstpad.c:1758:gst_pad_ulink: unlinked ffmpegcsp0:src andomxh264enc0:sink
    0:00:03.522992207  207    0x16050 INFO   0m        GST_PARENTAGE gsbin.c:1440:gst_bin_remove_func:<pipelie0> removed child "omxh264enc0"
    0:0:03.523092157   207    0x1650 INFO        GST_REFCOUNTING gstelement.c:2955:gst_eement_dispose:<omxh264enc0> dispos
    0:00:03.523164457   207    x16050 INFO        GST_ELEMENT_PADS gstelement.c:835:gt_element_remove_pad:<omxh264enc0> emoving pad 'src'
    0:00:03.523265207   207    0x16050 INFO   [00m     GST_ELEMENT_PADS gtelement.c:835:gst_element_remove_pad:<omh264enc0> removing pad 'sink'
    0:0:03.523364357   207    0x1605 INFO        GST_REFCOUNTING gstelement.c:2979:gst_eement_dispose:<omxh264enc0> paren class dispose
    0:00:03.859028607  207    0x16050 INFO         GST_REFCOUNTING gsteement.c:3010:gst_element_finalize:<omx264enc0> finalize
    0:00:03.859112057  207    0x16050 INO         GST_REFCOUNTNG gstelement.c:3021:gst_element_finalize<omxh264enc0> finalize parent
    0:0:03.859200157   207    0x1600 INFO       GST_ELEMENT_PADS gstpad.c:1713:gst_pad_nlink: unlinking perf0:src(0x14890) and ffmpegcsp0:sink(0x148a68)
    0:00:03859322857   207    0x16050 [32;01mINFO        GSTELEMENT_PADS gstpad.c:1758:gst_pad_unlnk: unlinked perf0:src and ffmpegcsp:sink
    0:00:03.859463257   207    0x16050 INFO           GST_PARENTAGE gstbin.c:140:gst_bin_remove_func:<pipeline0> emoved child "ffmpegcsp0"
    0:00:03.85965107   207    0x16050 NFO         GST_REFCONTING gstelement.c:2955:gst_element_dipose:<ffmpegcsp0> dispose
    0:00:03.89637607   207    0x16050 INFO        GST_EEMENT_PADS gstelement.c:835:gst_elementremove_pad:<ffmpegcsp0> removing pa 'src'
    0:00:03.859738557   207    0x16050 INFO        GST_ELEMENT_PADS gstelementc:835:gst_element_remove_pad:<ffmpegcsp0>[00m removing pad 'sink'
    0:00:03.85983657   207    0x16050 NFO         GST_REFCOUTING gstelement.c:2979:gst_element_disose:<ffmpegcsp0> parent class dispos
    0:00:03.859916457   207   0x16050 INFO         GST_REFCOUNTING gstelement.c:300:gst_element_finalize:<ffmpegcsp0> inalize
    0:00:03.859989407   207[00m    0x16050 INFO         GST_REFCOUNTING gstelemet.c:3021:gst_element_finalize:<ffmpegcsp0 finalize parent
    0:00:03.860073107 [334m  207    0x16050 INF        GST_ELEMENT_PAS gstpad.c:1713:gst_pad_unlink: ulinking filesrc0:src(0x148810) and perf0sink(0x1488d8)
    0:00:03.860186907  207    0x16050 INFO       GST_ELEMENT_PADS gspad.c:1758:gst_pad_unlink: unlinked ilesrc0:src and perf0:sink
    0:00:03.86324157   207    0x16050 INFO           GSTPARENTAGE gstbin.c:1440:gst_bin_remove_fuc:<pipeline0> removed child "perf0"
    0:00:03.860517757   207    x16050 INFO       GST_ELEMENT_PADS gstelement.c:835:st_element_remove_pad:<perf0> removig pad 'src'  0:00:03.860445907   207    x16050 INFO        GST_REFCOUNTING gstelement.c:2e
    0:00:03.860617407  207    0x16050 INFO    [00;01;37;41m    GST_ELEMENT_PADS gsteement.c:835:gst_element_remove_pad:<perf0 removing pad 'sink'
    0:00:03.86071657   207    0x16050 NFO         GST_REFCONTING gstelement.c:2979:gst_element_dipose:<perf0> parent class dispose
    0:00:03.860868857   207    x16050 INFO        GST_REFCOUNTING gstelement.c:3021:gst_elment_finalize:<perf0> finalize parnt
    0:00:03.860959607   207    016050 INFO          GST_PARENTAGE gstbin.c:1440:gst_bi_remove_func:<pipeline0> removed child "filsrc0"
    0:00:04.196940556   207    x16050 INFO        GST_REFCOUNTING gstelement.c:2955:gst_lement_dispose:<filesrc0> dispose
                                                                                                                         0:00:04.197022956   207    0x1050 INFO       GST_ELEMENT_PADS gstelement.c:835:gsteleme'
    0:00:04.197123906  207    0x16050 INFO         GST_REFCOUNTING gsteement.c:2979:gst_element_dispose:<filerc0> parent class dispose
    0:00:04.17208556   207    0x16050 INFO         GSTEFCOUNTING gstelement.c:3010:gst_element_finalize:<filesrc0> finalize
    0:0004.197282656   207    0x16050[32;01mINFO         GST_REFCOUNTING gstelement.c:3021:gst_eleent_finalize:<filesrc0> finalizeparent
    0:00:04.197386857   207   0x16050 INFO         GST_REFCOUNTING gstelement.c:955:gst_element_dispose:<pipeline0> dispose
    0:00:04.197502057   207[00m    0x16050 INFO         GST_REFCOUNTING gstelemen.c:2979:gst_element_dispose:<pipeline0>0m parent class dispose
    0:00:04.19758407   207    0x16050 NFO         GST_REFOUNTING gstelement.c:3010:gst_element_finaize:<pipeline0> finalize
    0:00:04197664557   207    0x16050 INFO         GS_REFCOUNTING gstelement.c:3021:gst_elemet_finalize:<pipeline0> finalize prent
    0:00:04.197745107   207   0x16050 INFO                GST_INIT gst.c:1010:gst_deiit: deinitializing GStreamer
    0:00:0.219232707   207    0x16050INFO               GST_INIT gst.c:1113:gst_deinit:deinitialized GStreamer
    root@dm814x-evm:#

  • Hello,

    From the error(ffmpegcsp0: not negotiated) it seems that the format is wrong.
    Please add the debug log from this pipeline:


    gst-launch filesrc location=/dev/fb0 ! "video/x-raw-rgb, bpp=24, depth=24, width=800, height=480" ! ffmpegcolorspace ! "video/x-raw-yuv, format=(fourcc)NV12" ! fakesink silent=true

    Please change the width, height etc per your use case.

    BR
    Margarita
  • Now its this ,

    root@dm814x-evm:~# gst-launch filesrc location=/dev/fb0 ! "video/x-raw-rgb, bpp=
    24, depth=24, width=800, height=480" ! ffmpegcolorspace ! "video/x-raw-yuv, form
    at=(fourcc)NV12" ! fakesink silent=true
    Setting pipeline to PAUSED ...
    Pipeline is PREROLLING ...
    ERROR: from element /GstPipeline:pipeline0/GstCapsFilter:capsfilter0: Filter caps do not completely specify the output format
    Additional debug info:
    gstcapsfilterc(392): gst_capsfilter_prepare_buf ():/GstPipeline:pipeline0/GstCapsFilter:capsilter0:
    Output caps are unfixed: vide/x-raw-rgb, bpp=(int)24, depth=(int)24, wth=(int)800, height=(int)480, framerate=(fraction)[ 0/1, 2147483647/1 ], endianess=(int)4321, red_mask=(int)16711680,green_mask=(int)60
    ERROR: pipeline doesn't want to preroll.
    Setting pipeline to NULL ...
    Freeing ppeline ...
  • and after adding mask and frame rate.

    gst-launch filesrc location=/dev/fb0 ! "video/x-raw-rgb, bpp=
    24, depth=24, width=800, height=480,framerate=25/1, endianness=0, red_mask=8, gr
    een_mask=16, blue_mask=24" ! ffmpegcorspace ! "video/x-raw-yuv, format=(fourcc
    )NV12" ! fakesink silent=true --gst-debug=3


    0:00:00.018472946   199    0x16050 INFO                GST_INIT gstquery.c:108:_gst_query_initialize: init queries
    0:00:00.024581152 32m  199    0x16050 INFO                GST_INIT gstmessage.:73:_gst_message_initialize: init messaes
    0:00:00.026133653   199   0x16050 INFO      ST_PLUGIN_LOADING gstplugin.c:350:_gst_plugn_initialize: registering 0 static plugns
    0:00:00.027088803   199   0x16050 INFO      GT_PLUGIN_LOADING gstplugin.c:255:gst_pluginregister_static: registered static plugn "staticelements"
    0:00:00.027200503   199    0x16050 INFO     GST_PLUGIN_LOADING gstplugin.c:57:gst_plugin_register_static: added sttic plugin "staticelements", result: 1
    :00:00.036607100   199    0x16050[32;01mINFO            GST_REGISTRY gstregistry.c:1599:ensure_current_registry reading registry cache: /home/root.gstreamer-0.10/registry.arm.bin
    0:00:00.170616019   199    0x16050 INFO            GST_REGISTRY gstregistrybinary.c:614:gst_registry_binary_read_cache: loaded /home/root/.gstreame-0.10/registry.arm.bin in 0.133844 seconds
    0:0:00.171099569   199    0x16050INFO            GST_REGISTRYgstregistry.c:1469:scan_and_update_registry Validating plugins from registry cache: /ome/root/.gstreamer-0.10/registry.arm.bin
                                                                                                                                                                                               0:00:00.180768319d
    0:00:00.180881419   199[00m    0x16050 INFO    0m        GST_REGISTRY gstregistry.c:1628ensure_current_registry: registryreading and updating done, result = 1
    000:00.180943519   199    0x1050 INFO               GST_INIT gst.c:792:init_post: GLib runtime version: 2.24.1
    0:00:00.18009569   199    0x16050 INFO                GT_INIT gst.c:794:init_post: GLib headrs version: 2.24.1
    0:00:00.181250069 [332m  199    0x16050 INFO           GST_PIPELIN gstparse.c:299:gst_parse_launch_full: parsing pipeline description 'filesr location=/dev/fb0 ! video/x-raw-rgb,\ bp=24,\ depth=24,\ width'
    0:0000.188800770   199    0x1600 INFO      GST_PUGIN_LOADING gstplugin.c:859:gst_plugi_load_file: plugin "/usr/lib/gstreamr-0.10/libgstcoreelements.so" loaded
    :00:00.188932620   199    0x1650 INFO    ST_ELEMENT_FACTORY gstelementfactory.c:371:gst_element_factory_create: creatig element "filesrc"
    0:00:00.190225420  199    0x16050 INFO       GST_ELEMENT_PAS gstelement.c:716:gst_element_add_pad:<stBaseSrc@0x14a030> adding pad 'sr'
    0:00:00.195777521   199    x16050 INFO     GST_PLUGIN_LOADING gstplugin.c:859:gst_lugin_load_file: plugin "/usr/libgstreamer-0.10/libgstffmpegcolorspace.so"loaded
    0:00:00.195897221   199   0x16050 INFO     GST_ELEMENT_FACTORY gstelementfacory.c:371:gst_element_factory_create:0m creating element "ffmpegcolorspace"
    :00:00.201617321   199    0x6050 INFO       GST_ELEMENT_PADS gstelement.c:716:gt_element_add_pad:<GstBaseTransform@0x15800> adding pad 'sink'
    0:00:00.20190721   199    0x16050 INFO        GST_ELEMEN_PADS gstelement.c:716:gst_element_addpad:<GstBaseTransform@0x158000> addig pad 'src'
    0:00:00.202105621  199    0x16050 INFO    [00;01;37;41m GST_ELEMENT_FACTORY gsteementfactory.c:371:gst_element_factory_crte: creating element "fakesink"
    0:00:00.203247021   199    0x1650 INFO       GST_ELEMENT_PADS gstelement.c:716:gst_lement_add_pad:<GstBaseSink@0x15a040>adding pad 'sink'
    0:00:00.203561471 [332m  199    0x16050 INFO   GST_ELEMENT_FACTORY gstelementfactory.c:371:gst_element_facory_create: creating element "pipline"
    0:00:00.204126721   199   0x16050 INFO            GST_PIPELINE ./grammar.y:56:gst_parse_perform_link: linking ilesrc0:(any) to ffmpegcsp0:(any) (0/0) ith caps "0xdddc0"
    0:00:00.204245571 [332m  199    0x16050 INFO   [00m  GST_ELEMENT_FACTORY stelementfactory.c:371:gst_element_factry_create: creating element "capsfiler"
    0:00:00.204832871   199   0x16050 INFO        GST_ELEMENT_PADS gstelement.c716:gst_element_add_pad:<GstBaseTransform0x15e010> adding pad 'sink'
    0:0000.205117521   199    0x16050 [32;01mINFO        ST_ELEMENT_PADS gstelement.c:716:gst_elemnt_add_pad:<GstBaseTransform@0x15e010>adding pad 'src'
    0:00:00.205265571   199    0x16050 INFO              GST_STATES gstin.c:1759:gst_bin_get_state_func:<pipeline> getting state
    0:00:00.205425621 [332m  199    0x16050 INFO             GST_STATES gtelement.c:2341:gst_element_continue_sate:<capsfilter0> completed state chnge to NULL
    0:00:00.541207171   99    0x16050 INFO    0;01;37;41m    GST_ELEMENT_PADS gstutls.c:1568:gst_element_link_pads_full:trying to link element filesrc0:(any)to element capsfilter0:sink
    0:00:00.54130121   199    0x16050 NFO        GST_ELEMET_PADS gstelement.c:963:gst_element_get_satic_pad: found pad capsfilter0:snk
    0:00:00.541384721   199   0x16050 INFO                GST_PADS gstutils.c:1468:repare_link_maybe_ghosting: filesc0 and capsfilter0 in same bin, no need fo ghost pads
    0:00:00.541610821   19    0x16050 INFO    0;01;31;41m            GST_PADS gstpad.:1941:gst_pad_link_prepare: tryin to link filesrc0:src and capsfilter0:sin
    0:00:00.541737671   199   0x16050 INFO                GST_PADS gstpad.c:2124:gs_pad_link_full: linked filesrc0:src nd capsfilter0:sink, successful
    0:00:0.541891871   199    0x16050 2;01mINFO        GST_LEMENT_PADS gstutils.c:1568:gst_elemen_link_pads_full: trying to link elemet capsfilter0:src to element ffmpegcsp:(any)
    0:00:00.541969571   199   0x16050 INFO        GST_ELEMENT_PADS gstelement.c963:gst_element_get_static_pad: fond pad capsfilter0:src
    0:00:00.54205042   199    0x16050 INFO               GST_PDS gstutils.c:1028:gst_pad_check_link: trying to link capsfilter0:src and ffmpegcsp0:sink
    0:00:00.543071920   99    0x16050 INFO       GST_ELEMENT_PADS gstutls.c:1203:gst_element_get_compatible_pa:<ffmpegcsp0> Could not find a compaible pad to link to capsfilter0:src
    000:00.543162270   199    0x1600 INFO                default gstutils.c:1892:gst_element_lnk_pads_filtered: Could not link pad: capsfilter:src - ffmpegcsp0:(null)
    :00:00.543241170   199    0x1650 INFO             GST_STATES gstelement.c:2341:gst_elment_continue_state:<capsfilter0> ompleted state change to NULL
    0:00:00.53338920   199    0x16050 INFO        GST_ELMENT_PADS gstpad.c:1713:gst_pad_unlink: unlinking filesrc0:src(0x148810) andcapsfilter0:sink(0x148b30)
    0:00:00.54341070   199    0x16050 INFO        GST_ELEMET_PADS gstpad.c:1758:gst_pad_unlink: unlinked filesrc0:src and capsfilter0:ink
    0:00:00.543618070   199  0x16050 INFO           GST_PARENTAGE gstbin.c:1440:gt_bin_remove_func:<pipeline0> removd child "capsfilter0"
    0:00:00.543734320  199    0x16050 INO         GST_REFCOUNTIG gstelement.c:2955:gst_element_dispos:<capsfilter0> dispose
    0:00:00.54381220   199    0x16050 INFO        GST_ELEMNT_PADS gstelement.c:835:gst_element_remoe_pad:<capsfilter0> removing pad src'
    0:00:00.543971170   199   0x16050 INFO        GST_ELEMENT_PADS gstelement.c:83:gst_element_remove_pad:<capsfilter0>0m removing pad 'sink'
    0:00:00.544074020  199    0x16050 INO         GST_REFCOUNTNG gstelement.c:2979:gst_element_dispose:capsfilter0> parent class dispose
    :00:00.544154970   199    0x1605 INFO         GSTREFCOUNTING gstelement.c:3010:gst_element_fialize:<capsfilter0> finalize
    0:00:0.544228770   199    0x16050 INFO         GT_REFCOUNTING gstelement.c:3021:gst_elemen_finalize:<capsfilter0> finalize arent
    0:00:00.880425171   199   0x16050 ERROR           GST_PIPELINE ./grammar.y:6:gst_parse_perform_link: could not link filesrc0 to ffmpegcsp0
    0:00:00.88063321   199    0x16050 NFO            GST_IPELINE ./grammar.y:568:gst_parse_perfor_link: linking ffmpegcsp0:(any) t fakesink0:(any) (0/0) with caps "0xdde40"
                                                                                                                                                                            0:00:00.880653521   199    016050 IN"
    0:00:00.88090221   199    0x16050 INFO        GST_ELEMET_PADS gstelement.c:716:gst_element_addpad:<GstBaseTransform@0x15e1e0> addng pad 'sink'
    0:00:00.881257771   199    x16050 INFO             GST_STATES gstbin.c:1759:gst_binget_state_func:<pipeline0> getting sate0> adding pad 'src'
    0:00:00.881397221   199   0x16050 INFO              GST_STATES gstelement.c:2341:st_element_continue_state:<capsfilter1>[00m completed state change to NULL
    0:0:00.881518071   199    0x1650 INFO       GST_ELEMENT_PADS gstutils.c:1568:gst_elment_link_pads_full: trying to linkelement ffmpegcsp0:(any) to element capfilter1:sink
    0:00:00.881596721   19    0x16050 INFO       GST_ELEMENT_PADS gsteleent.c:963:gst_element_get_static_pad:found pad capsfilter1:sink
    0:00:00.88664871   199    0x16050 INFO               GST_PADS gstutils.c:1468:prepare_link_maye_ghosting: ffmpegcsp0 and capsfiter1 in same bin, no need for ghost pads
                                                                                                                                                                           0:00:00.881807371   199    x16050 INFk
    0:00:00.82242471   199    0x16050 2;01mINFO               GST_PADS gstpad.c:2124:gst_pad_link_ull: linked ffmpegcsp0:src and capsflter1:sink, successful
    0:00:00.88238131   199    0x16050 INO        GST_ELEMENT_PAS gstutils.c:1568:gst_element_link_pad_full: trying to link element capsfiter1:src to element fakesink0:(any)
    0:0:00.882458321   199    0x1600 INFO       GST_ELEMENT_PADS gstelement.c:963:gst_elment_get_static_pad: found pad casfilter1:src
    0:00:00.882534671   19    0x16050 INFO               GST_PADS gstutis.c:1028:gst_pad_check_link: trying t link capsfilter1:src and fakesink0:sik
    0:00:00.883949120   199    x16050 INFO                GST_PADS gstutils.c:1468:pepare_link_maybe_ghosting: capsfiter1 and fakesink0 in same bin, no need fo ghost pads
    0:00:00.884073820  199    0x16050 INFO    [00;01;31;41m            GST_PADS gstpad.:1941:gst_pad_link_prepare: tryin to link capsfilter1:src and fakesink0:sik
    0:00:00.885446221   199   0x16050 INFO                GST_PADS gstpad.c:2124:gt_pad_link_full: linked capsfilter1:rc and fakesink0:sink, successful
    WARING: erroneous pipeline: could not link fiesrc0 to ffmpegcsp0
    root@dm814x-evm:~#

  • Hello,

    Could you remove the framerate in the first caps filter?
    I would recommend you to check with gst-inspect ffmpegcolorspace what are the formats etc that it supports on the sink(input) and what you have on the filesrc's src (output).

    BR
    Margarita
  • Ok so there is a development as seeing from the log , thanks for Your consistent help but still ,

    I used this ,

    gst-launch filesrc location=/dev/fb0 !"video/x-raw-rgb, bpp=32, depth=32, endianness=4321, blue_mask=255, green_mask=65280, red_mask=16711680, alpha_mask=-16777216, width=1024, height=768, framerate=60/1"! ffmpegcolorspace ! "video/x-raw-yuv, format=(fourcc)NV12" ! fakesink silent=true



    0:00:01.97904263 202 0x16050 2;01mINFO GS_STATES gstelement.c:2354:gst_element_ontinue_state:<filesrc0> posting stae-changed READY to PAUSED
    0:00:01.29804233 202 0x16050 NFO GST_STATS gstbin.c:2492:gst_bin_change_state_fuc:<pipeline0> child 'filesrc0' chaned state to 3(PAUSED) successfully
    Pipline is PREROLLING ...

    mentioning the error part below,

    ** (gst-launch-.10:202): WARNING **: ffmpegcsp0: size4096 is not a multiple of unit size 314572
    0:00:01.317065763 202 018258 ERROR baetransform gstbasetransform.c:1602:gst_basetransform_prepare_output_buffer:<ffmpegcs0> unknown output size
    0:00:01.31185963 202 0x18258 WARN basetransformgstbasetransform.c:2272:gst_base_transfor_handle_buffer:<ffmpegcsp0> couldnot get buffer from pool: error
    0:00:01.52770413 202 0x18258 INFO basesc gstbasesrc.c:2511:gst_base_src_loop:<fiesrc0> pausing after gst_pad_push()= error
    0:00:01.652888313 202 0x18258 WARN basesrc gstbasesrc.c:2574:gst_ase_src_loop:<filesrc0> error: Interal data flow error.
    0:00:01.652951313 [335m 202 0x18258 WARN basesrc gstbassrc.c:2574:gst_base_src_loop:<filesrc0> error: streaming task paused, reason eror (-5)
    0:00:01.653103963 202[00m 0x18258 INFO GST_ERROR_SYSTEM gstelemen.c:1865:gst_element_message_full:<filesrc> posting message: Internal data fow error.
    ERROR: from element /GstPipelie:pipeline0/GstFileSrc:filesrc0: Interal data flow error.
    Additional debug inf:
    gstbasesrc.c(2574): gst_base_src_loop (: /GstPipeline:pipeline0/GstFileSrc:filsrc0:
    streaming task paused, reason errr (-5)
    ERROR: pipeline doesn't want topreroll.
    Setting pipeline to NULL ...
  • and this works fine ,

    gst-launch filesrc location=/dev/fb0 !"video/x-raw-rgb, bpp=3
    2, depth=32, endianness=4321, blue_mask=255, green_mask=65280, red_mask=16711680
    , alpha_mask=-16777216, width=1024, height=768, framerate=60/1"! ffmpegcolorspac
    e ! fakesink silent=true
    Setting pipeline to PAUSED ...
    Pipeline is PREROLLING ...
    Pipeline is PREROLLED ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock
    Got EOS from element "pipeline0".
    Execution ended after 1816099249 ns.
    Setting pipeline to PAUSED ...
    Setting pipeline to READY ...
    Setting pipeline to NULL ...
    Freeing pipeline ...
  • Hello,

    Now you could extend the pipeline to:
    gst-launch filesrc location=/dev/fb0 !"video/x-raw-rgb, bpp=32, depth=32, endianness=4321, blue_mask=255, green_mask=65280, red_mask=16711680, alpha_mask=-16777216, width=1024, height=768, framerate=60/1"! ffmpegcolorspace ! omx_h264enc ! h264parse ! gstperf ! filesink location=test.264

    If it is working I would recommend you to check the test.264 file is it correct.


    BR
    Margarita
  • I am sorry I forgot you should add -e to the pipeline like this:
    gst-launch -e filesrc location=/dev/fb0 !"video/x-raw-rgb, bpp=32, depth=32, endianness=4321, blue_mask=255, green_mask=65280, red_mask=16711680, alpha_mask=-16777216, width=1024, height=768, framerate=60/1"! ffmpegcolorspace ! omx_h264enc ! h264parse ! gstperf ! filesink location=test.264
    So when you press ctrl+c the test.264 file to be closed correctly in other case it could be corrupt.

    BR
    Margarita

  • still the same error .

    root@dm814x-evm:/# gst-launch filesrc location=/dev/fb0 !"video/x-raw-rgb, bpp=3
    2, depth=32, endianness=4321, blue_mask=255, green_mask=65280, red_mask=16711680
    , alpha_mask=-16777216, width=1024, hight=768, framerate=60/1"! ffmpegcolorspac
    e !omx_h264enc ! h264parse ! gstperf! filesink location=test.264
    Setting pipeline to PAUSED ...
    Pipeline is PREROLLING ...

    ** (gst-launch-0.10:254): WARNING **: ffmpegcsp0: size 4096 is not a multiple of unit size 3145728
    ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internaldata flow error.
    Additional debug info:
    gstbasesrc.c(2574): gst_base_src_loop (: /GstPipeline:pipeline0/GstFileSrc:fiesrc0:
    streaming task paused, reason rror (-5)
    ERROR: pipeline doesn't wan to preroll.
    Setting pipeline to NULL ...
    Freeing pipeline ...
    root@dm814x-evm:/#
  • Hello,

    gst-launch -e filesrc location=/dev/fb0 ! "video/x-raw-rgb, bpp=32, depth=32, endianness=4321, blue_mask=255, green_mask=65280, red_mask=16711680, alpha_mask=-16777216, width=1024, hight=768, framerate=60/1"! ffmpegcolorspace ! 'video/x-raw-yuv, format=(fourcc)NV12, width=1024, hight=768, framerate=60/1' ! fakesink silent=true

    What is the error from this pipeline?

    BR
    Margarita
  • Hello,

    For this



    gst-launch filesrc location=/dev/fb0 !"video/x-raw-rgb, bpp=32, depth=32, endianness=4321, blue_mask=255, green_mask=65280, red_mask=16711680, alpha_mask=-16777216, width=1024, height=768, framerate=60/1"! ffmpegcolorspace ! "video/x-raw-yuv,width=1024, height=768, framerate=60/1, format=(fourcc)NV12" ! fakesink silent=true


    This is the error


    ** (gst-launch-0.10:185): WARNING **: ffmpegcsp0: size 4096 is not a multiple of unit size 3145728
    ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Intrnal data flow error.
    Additional debu info:
    gstbasesrc.c(2574): gst_base_src_oop (): /GstPipeline:pipeline0/GstFilerc:filesrc0:
    streaming task paused, reasn error (-5)
    ERROR: pipeline doesn't wan to preroll.
    Setting pipeline to NULL ..
    Freeing pipeline ...
    root@dm814x-evm:~#
  • Hello,

    The warning seems to me like something is passing buffers to ffmpegcolorspace that are not a complete frame.
    If you change the format to YUY2 do you see the same error?

    BR
    Margarita
  • Yes

    root@dm814x-evm:~# gst-launch filesrc location=/dev/fb0 !"video/x-raw-rgb, bpp=3
    2, depth=32, endianness=4321, blue_mask=255, green_mask=65280, red_mask=16711680
    , alpha_mask=-16777216, width=1024, height=768, framerate=60/1"! ffmpegcolorspac
    e ! "video/x-raw-yuv,width=1024, height=768, framerate=60/1, format=(fourcc)YUY2
    " ! fakesink silent=true
    Setting pipeline to PAUSED ...
    Pipeline is PREROLLING ...

    ** (gst-launch-0.10:221): WARNING **: ffmpegcsp0: size 4096 is not a multiple of unit size 3145728
    ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Interal data flow error.
    Additional debug info
    gstbasesrc.c(2574): gst_base_src_loop(): /GstPipeline:pipeline0/GstFileSrc:fiesrc0:
    streaming task paused, reason errr (-5)
    ERROR: pipeline doesn't want to peroll.
    Setting pipeline to NULL ...
    Freeing pipeline ...
  • with multifile src it is working ,

    but i am getting this error

    ti81xxfb ti81xxfb: Unknown ioctl 0x5401
    perf0: frames: 632 current: 6.15 average: 6.20 arm-load: 90
    ti81xxfb ti81xxfb: Unknown ioctl 0x5401
    perf0: frames: 640 current: 6.15 average: 6.20 arm-load: 91
    ti81xxfb ti81xxfb: Unknown ioctl 0x5401
    perf0: frames: 648 current: 6.15 average: 6.20 arm-load: 90
    ti81xxfb ti81xxfb: Unknown ioctl 0x5401
  • Margarita ,

    Was able to stream color pattern from fb0 to my pc on h264 , the only issue is now my when using multifilesrc i am seeing my fb0 screen to turn on and off again and stream is doing the same .
    Rest of the issue is solved Thank you for your help.
  • Hello,

    Could you post the pipeline?

    BR
    Margarita
  • Using this , but i can see that my screen is turning on and off for which i am only getting 6 fps

    gst-launch multifilesrc location=/dev/fb0  !"video/x-raw-rgb, bpp=32, depth=32, endianness=4321, blue_mask=255, green_mask=65280, red_mask=16711680, alpha_mask=-16777216, width=1024, height=768, framerate=60/1"!ffmpegcolorspace ! omx_h264enc ! h264parse ! gstperf ! filesink location=test.264

  • Hello,

    I am not sure what you mean by turn on and off.
    I would recommend you to add queue elements in the pipeline. Try to add it before the encoder and before the ffmpegcolorspace.

    BR
    Margarita
  • Hi Margarita,

    I am trying to achieve the same end goal, except I have the AM5728 EVM and am using gstreamer-1.0. I followed a similar pipeline structure, and my pipeline runs, but the output video is completely misaligned and jumbled up. I read that the framebuffer fb0 has left and right margins around the pixel data.. could this be the issue? If so, how can I convert this unknown pixel format into something readable by gstreamer?

    My pipeline:

    gst-launch-1.0 multifilesrc location=/dev/fb0 ! video/x-raw,format="RGBA", bpp=24,depth=32, endianness=1234, blue_mask=255, green_mask=65280, red_mask=16711680, alpha_mask=-16777216, width=800, height=480, framerate=30/1 ! videoconvert ! ducatih264enc ! h264parse ! filesink location=test.h264

    Output video sample:


    Thanks,
    Vishal