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.

Using Gstreamer with DM36x and a sensor input

Hello,

I am using a DM36x board with a sensor input (mt9t111). I can use the encode and decode demo from the DVSDK without problems but I cannot use gstreamer.

If I run:

gst-launch -v v4l2src ! TIVidenc1 codecName=h264enc engineName=codecServer ! filesink location=test.264

 

I get the following error:

Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not negotiate format
Additional debug info:
gstbasesrc.c(2778): gst_base_src_start (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Check your filtered caps, if any
Setting pipeline to NULL ...
Freeing pipeline ...

 

Part of a more verbose output:

 

0:00:00.833756594  1109    0x150c8 INFO              GST_STATES gstelement.c:2236:gst_element_continue_state:<filesink0> completed state change to READY                                                                                   
0:00:00.835127594  1109    0x150c8 INFO              GST_STATES gstelement.c:2249:gst_element_continue_state:<filesink0> posting state-changed NULL to READY                                                                               
0:00:00.837347385  1109    0x150c8 INFO              GST_STATES gstbin.c:2443:gst_bin_change_state_func:<pipeline0> child 'filesink0' changed state to 2(READY) successfully                                                               
0:00:00.839179760  1109    0x150c8 INFO              GST_STATES gstelement.c:2236:gst_element_continue_state:<tividenc10> completed state change to READY                                                                                  
0:00:00.840447344  1109    0x150c8 INFO              GST_STATES gstelement.c:2249:gst_element_continue_state:<tividenc10> posting state-changed NULL to READY                                                                              
0:00:00.842004760  1109    0x150c8 INFO              GST_STATES gstbin.c:2443:gst_bin_change_state_func:<pipeline0> child 'tividenc10' changed state to 2(READY) successfully                                                              
0:00:01.130293844  1109    0x150c8 INFO                    v4l2 v4l2_calls.c:558:gst_v4l2_open:<v4l2src0> Opened device 'DM365 EVM' (/dev/video0) successfully                                                                             
0:00:01.137056302  1109    0x150c8 INFO              GST_STATES gstelement.c:2236:gst_element_continue_state:<v4l2src0> completed state change to READY                                                                                    
0:00:01.140445386  1109    0x150c8 INFO              GST_STATES gstelement.c:2249:gst_element_continue_state:<v4l2src0> posting state-changed NULL to READY                                                                                
0:00:01.142067553  1109    0x150c8 INFO              GST_STATES gstbin.c:2443:gst_bin_change_state_func:<pipeline0> child 'v4l2src0' changed state to 2(READY) successfully                                                                
0:00:01.143641178  1109    0x150c8 INFO              GST_STATES gstelement.c:2209:gst_element_continue_state:<pipeline0> committing state from NULL to READY, pending PAUSED, next PAUSED                                                  
0:00:01.145212344  1109    0x150c8 INFO              GST_STATES gstelement.c:2218:gst_element_continue_state:<pipeline0> continue state change READY to PAUSED, final PAUSED                                                               
0:00:01.148078845  1109    0x150c8 INFO              GST_STATES gstbin.c:2449:gst_bin_change_state_func:<pipeline0> child 'filesink0' is changing state asynchronously to PAUSED                                                           
0:00:01.149874553  1109    0x150c8 INFO              GST_STATES gstelement.c:2236:gst_element_continue_state:<tividenc10> completed state change to PAUSED                                                                                 
0:00:01.151185136  1109    0x150c8 INFO              GST_STATES gstelement.c:2249:gst_element_continue_state:<tividenc10> posting state-changed READY to PAUSED                                                                            
0:00:01.152840095  1109    0x150c8 INFO              GST_STATES gstbin.c:2443:gst_bin_change_state_func:<pipeline0> child 'tividenc10' changed state to 3(PAUSED) successfully                                                             
0:00:01.154718344  1109    0x150c8 INFO                    v4l2 gstv4l2object.c:956:gst_v4l2_object_fill_format_list:<v4l2src0> got 2 format(s):                                                                                           
0:00:01.155848553  1109    0x150c8 INFO                    v4l2 gstv4l2object.c:962:gst_v4l2_object_fill_format_list:<v4l2src0>   BA81                                                                                                     
0:00:01.157065469  1109    0x150c8 INFO                    v4l2 gstv4l2object.c:962:gst_v4l2_object_fill_format_list:<v4l2src0>   BYR2                                                                                                     
0:00:01.198041887  1109    0x150c8 INFO                 v4l2src gstv4l2src.c:631:gst_v4l2src_get_caps:<v4l2src0> (null)                                                                                                                    
0:00:01.202310970  1109    0x150c8 WARN                 basesrc gstbasesrc.c:2755:gst_base_src_start:<v4l2src0> error: Could not negotiate format                                                                                          
0:00:01.203497428  1109    0x150c8 WARN                 basesrc gstbasesrc.c:2755:gst_base_src_start:<v4l2src0> error: Check your filtered caps, if any                                                                                    
0:00:01.538398428  1109    0x150c8 INFO        GST_ERROR_SYSTEM gstelement.c:1761:gst_element_message_full:<v4l2src0> posting message: Could not negotiate format                                                                          
0:00:01.540229511  1109    0x150c8 INFO        GST_ERROR_SYSTEM gstelement.c:1784:gst_element_message_full:<v4l2src0> posted error message: Could not negotiate format                                                                     
0:00:01.541688386  1109    0x150c8 WARN                 basesrc gstbasesrc.c:2951:gst_base_src_activate_push:<v4l2src0> Failed to start in push mode                                                                                       
0:00:01.542862136  1109    0x150c8 INFO                GST_PADS gstpad.c:960:gst_pad_activate_push:<v4l2src0:src> failed to activate in push mode                                                                                          
0:00:01.544162636  1109    0x150c8 WARN                GST_PADS gstpad.c:712:gst_pad_set_active:<v4l2src0:src> Failed to activate pad                                                                                                      
0:00:01.545494302  1109    0x150c8 INFO              GST_STATES gstelement.c:2553:gst_element_change_state:<v4l2src0> have FAILURE change_state return                                                                                     
0:00:01.546751219  1109    0x150c8 INFO              GST_STATES gstelement.c:2130:gst_element_abort_state:<v4l2src0> aborting state from READY to PAUSED                                                                                   
0:00:01.548371636  1109    0x150c8 INFO              GST_STATES gstbin.c:2459:gst_bin_change_state_func:<pipeline0> child 'v4l2src0' failed to go to state 3(PAUSED)                                                                       
0:00:01.549822636  1109    0x150c8 INFO              GST_STATES gstelement.c:2553: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 negotiate format                                                                                                                                                 
Additional debug info:                                                                                                                                                                                                                     
gstbasesrc.c(2755): gst_base_src_start (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:                                                                                                                                                     
Check your filtered caps, if any                                                                                                                                                                                                           
Setting pipeline to NULL ...

But I can capture raw datas with:

gst-launch -v v4l2src ! filesink location=raw.bin

Seems Gstreamer does not support bayer format.

 

Anyone have gstreamer working with a sensor input?

Could you let me know what should be patched to be able to use bayer format as input, please?

 

Best regards,

Guillaume