Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal Data Stream Error (-5) #76

Open
xloem opened this issue Jun 9, 2018 · 5 comments
Open

Internal Data Stream Error (-5) #76

xloem opened this issue Jun 9, 2018 · 5 comments

Comments

@xloem
Copy link

xloem commented Jun 9, 2018

Every time I run my pipeline, it goes for a while, and then eventually crashes with, "streaming stopped, reason error (-5)". I've seen this error mentioned in closed issues, but the general consensus seems to be that this is a startup timeout issue, which it is not for me. Streaming runs for many minutes before eventually crashing.

I ran this pipeline:
gst-launch-1.0 --quiet rpicamsrc preview=false annotation-mode=$((0x40c)) annotation-text-size=16 ! video/x-h264,width=1296,height=972,framerate=42/1 ! h264parse ! matroskamux ! fdsink

It ran fine for 6.5 minutes, then suddenly gave this:

0:06:30.089596969 30998  0x17ea6c0 INFO                 basesrc gstbasesrc.c:2743:gst_base_src_loop:<rpicamsrc0> pausing after gst_base_src_get_range() = error              
0:06:30.089877227 30998  0x17ea6c0 WARN                 basesrc gstbasesrc.c:2950:gst_base_src_loop:<rpicamsrc0> error: Internal data stream error.                       
0:06:30.089923425 30998  0x17ea6c0 WARN                 basesrc gstbasesrc.c:2950:gst_base_src_loop:<rpicamsrc0> error: streaming stopped, reason error (-5)
0:06:30.090105038 30998  0x17ea6c0 INFO        GST_ERROR_SYSTEM gstelement.c:1890:gst_element_message_full_with_details:<rpicamsrc0> posting message: Internal data stream error.                
0:06:30.090483732 30998  0x17ea6c0 INFO        GST_ERROR_SYSTEM gstelement.c:1917:gst_element_message_full_with_details:<rpicamsrc0> posted error message: Internal data stream error.
ERROR: from element /GstPipeline:pipeline0/GstRpiCamSrc:rpicamsrc0: Internal data stream error.                                                        
Additional debug info:                                                                                                                                                                          
gstbasesrc.c(2950): gst_base_src_loop (): /GstPipeline:pipeline0/GstRpiCamSrc:rpicamsrc0:                                                                        
streaming stopped, reason error (-5)                                                                                                      
0:06:30.091606119 30998  0x17ea6c0 INFO                    task gsttask.c:318:gst_task_func:<rpicamsrc0:src> Task going to paused                                
0:06:30.091633410 30998  0x170fe00 INFO              GST_STATES gstbin.c:2521:gst_bin_element_set_state:<fdsink0> current PLAYING pending VOID_PENDING, desired next PAUSED
0:06:30.091843304 30998  0x170fe00 INFO              GST_STATES gstelement.c:2419:gst_element_continue_state:<fdsink0> completed state change to PAUSED
0:06:30.091911429 30998  0x170fe00 INFO              GST_STATES gstelement.c:2324:_priv_gst_element_state_changed:<fdsink0> notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending)
0:06:30.092028980 30998  0x170fe00 INFO              GST_STATES gstbin.c:2969:gst_bin_change_state_func:<pipeline0> child 'fdsink0' changed state to 3(PAUSED) successfully
0:06:30.092114969 30998  0x170fe00 INFO              GST_STATES gstbin.c:2521:gst_bin_element_set_state:<matroskamux0> current PLAYING pending VOID_PENDING, desired next PAUSED
0:06:30.092186791 30998  0x170fe00 INFO              GST_STATES gstelement.c:2419:gst_element_continue_state:<matroskamux0> completed state change to PAUSED
0:06:30.092241530 30998  0x170fe00 INFO              GST_STATES gstelement.c:2324:_priv_gst_element_state_changed:<matroskamux0> notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending)
0:06:30.092318717 30998  0x170fe00 INFO              GST_STATES gstbin.c:2969:gst_bin_change_state_func:<pipeline0> child 'matroskamux0' changed state to 3(PAUSED) successfully
0:06:30.092410800 30998  0x170fe00 INFO              GST_STATES gstbin.c:2521:gst_bin_element_set_state:<h264parse0> current PLAYING pending VOID_PENDING, desired next PAUSED
0:06:30.092477674 30998  0x170fe00 INFO              GST_STATES gstelement.c:2419:gst_element_continue_state:<h264parse0> completed state change to PAUSED
0:06:30.092551371 30998  0x170fe00 INFO              GST_STATES gstelement.c:2324:_priv_gst_element_state_changed:<h264parse0> notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending)
0:06:30.092625850 30998  0x170fe00 INFO              GST_STATES gstbin.c:2969:gst_bin_change_state_func:<pipeline0> child 'h264parse0' changed state to 3(PAUSED) successfully
0:06:30.092696005 30998  0x170fe00 INFO              GST_STATES gstbin.c:2521:gst_bin_element_set_state:<capsfilter0> current PLAYING pending VOID_PENDING, desired next PAUSED
0:06:30.092801630 30998  0x170fe00 INFO              GST_STATES gstelement.c:2419:gst_element_continue_state:<capsfilter0> completed state change to PAUSED
0:06:30.092854546 30998  0x170fe00 INFO              GST_STATES gstelement.c:2324:_priv_gst_element_state_changed:<capsfilter0> notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending)
0:06:30.092933295 30998  0x170fe00 INFO              GST_STATES gstbin.c:2969:gst_bin_change_state_func:<pipeline0> child 'capsfilter0' changed state to 3(PAUSED) successfully
0:06:30.093035690 30998  0x170fe00 INFO              GST_STATES gstbin.c:2521:gst_bin_element_set_state:<rpicamsrc0> current PLAYING pending VOID_PENDING, desired next PAUSED
0:06:30.093117825 30998  0x170fe00 INFO              GST_STATES gstelement.c:2419:gst_element_continue_state:<rpicamsrc0> completed state change to PAUSED
0:06:30.093174335 30998  0x170fe00 INFO              GST_STATES gstelement.c:2324:_priv_gst_element_state_changed:<rpicamsrc0> notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending)
0:06:30.093253657 30998  0x170fe00 INFO              GST_STATES gstbin.c:3012:gst_bin_change_state_func:<pipeline0> child 'rpicamsrc0' changed state to 3(PAUSED) successfully without preroll
0:06:30.093340219 30998  0x170fe00 INFO              GST_STATES gstelement.c:2419:gst_element_continue_state:<pipeline0> completed state change to PAUSED
0:06:30.093395948 30998  0x170fe00 INFO              GST_STATES gstelement.c:2324:_priv_gst_element_state_changed:<pipeline0> notifying about state-changed PLAYING to PAUSED (VOID_PENDING pending)
0:06:30.093674174 30998  0x170fe00 INFO              GST_STATES gstbin.c:2521:gst_bin_element_set_state:<fdsink0> current PAUSED pending VOID_PENDING, desired next READY
0:06:30.094145472 30998  0x170fe00 INFO              GST_STATES gstelement.c:2419:gst_element_continue_state:<fdsink0> completed state change to READY
0:06:30.094240784 30998  0x170fe00 INFO              GST_STATES gstelement.c:2324:_priv_gst_element_state_changed:<fdsink0> notifying about state-changed PAUSED to READY (VOID_PENDING pending)
0:06:30.094354846 30998  0x170fe00 INFO              GST_STATES gstbin.c:2969:gst_bin_change_state_func:<pipeline0> child 'fdsink0' changed state to 2(READY) successfully
0:06:30.094475522 30998  0x170fe00 INFO              GST_STATES gstbin.c:2521:gst_bin_element_set_state:<matroskamux0> current PAUSED pending VOID_PENDING, desired next READY
0:06:30.094698332 30998  0x170fe00 INFO              GST_STATES gstelement.c:2419:gst_element_continue_state:<matroskamux0> completed state change to READY
0:06:30.094758905 30998  0x170fe00 INFO              GST_STATES gstelement.c:2324:_priv_gst_element_state_changed:<matroskamux0> notifying about state-changed PAUSED to READY (VOID_PENDING pending)
0:06:30.094838071 30998  0x170fe00 INFO              GST_STATES gstbin.c:2969:gst_bin_change_state_func:<pipeline0> child 'matroskamux0' changed state to 2(READY) successfully
0:06:30.094917445 30998  0x170fe00 INFO              GST_STATES gstbin.c:2521:gst_bin_element_set_state:<h264parse0> current PAUSED pending VOID_PENDING, desired next READY
0:06:30.095369473 30998  0x170fe00 INFO              GST_STATES gstelement.c:2419:gst_element_continue_state:<h264parse0> completed state change to READY
0:06:30.095441191 30998  0x170fe00 INFO              GST_STATES gstelement.c:2324:_priv_gst_element_state_changed:<h264parse0> notifying about state-changed PAUSED to READY (VOID_PENDING pending)
0:06:30.095556086 30998  0x170fe00 INFO              GST_STATES gstbin.c:2969:gst_bin_change_state_func:<pipeline0> child 'h264parse0' changed state to 2(READY) successfully
0:06:30.095709314 30998  0x170fe00 INFO              GST_STATES gstbin.c:2521:gst_bin_element_set_state:<capsfilter0> current PAUSED pending VOID_PENDING, desired next READY
0:06:30.095883687 30998  0x170fe00 INFO              GST_STATES gstelement.c:2419:gst_element_continue_state:<capsfilter0> completed state change to READY
0:06:30.095950509 30998  0x170fe00 INFO              GST_STATES gstelement.c:2324:_priv_gst_element_state_changed:<capsfilter0> notifying about state-changed PAUSED to READY (VOID_PENDING pending)
0:06:30.096032696 30998  0x170fe00 INFO              GST_STATES gstbin.c:2969:gst_bin_change_state_func:<pipeline0> child 'capsfilter0' changed state to 2(READY) successfully
0:06:30.096208841 30998  0x17ea6c0 INFO                    task gsttask.c:320:gst_task_func:<rpicamsrc0:src> Task resume from paused
0:06:33.900105390 30998  0x170fe00 INFO              GST_STATES gstelement.c:2419:gst_element_continue_state:<rpicamsrc0> completed state change to READY
0:06:33.900260337 30998  0x170fe00 INFO              GST_STATES gstelement.c:2324:_priv_gst_element_state_changed:<rpicamsrc0> notifying about state-changed PAUSED to READY (VOID_PENDING pending)
0:06:33.900397002 30998  0x170fe00 INFO              GST_STATES gstbin.c:2969:gst_bin_change_state_func:<pipeline0> child 'rpicamsrc0' changed state to 2(READY) successfully
0:06:33.900527105 30998  0x170fe00 INFO              GST_STATES gstelement.c:2419:gst_element_continue_state:<pipeline0> completed state change to READY
0:06:33.900595803 30998  0x170fe00 INFO              GST_STATES gstelement.c:2324:_priv_gst_element_state_changed:<pipeline0> notifying about state-changed PAUSED to READY (VOID_PENDING pending)
0:06:33.900818718 30998  0x170fe00 INFO              GST_STATES gstbin.c:2110:gst_bin_get_state_func:<pipeline0> getting state
[0] 0:[tmux]* 1:bash  2:vi-                                                                                                                                                     "raspberrypi" 18:01 09-Jun-18
0:06:33.900995227 30998  0x170fe00 INFO              GST_STATES gstbin.c:2521:gst_bin_element_set_state:<fdsink0> current READY pending VOID_PENDING, desired next NULL        
0:06:33.901234079 30998  0x170fe00 INFO              GST_STATES gstelement.c:2419:gst_element_continue_state:<fdsink0> completed state change to NULL                           
0:06:33.901304495 30998  0x170fe00 INFO              GST_STATES gstelement.c:2324:_priv_gst_element_state_changed:<fdsink0> notifying about state-changed READY to NULL (VOID_PENDING pending)
0:06:33.901410588 30998  0x170fe00 INFO              GST_STATES gstbin.c:2969:gst_bin_change_state_func:<pipeline0> child 'fdsink0' changed state to 1(NULL) successfully       
0:06:33.901509545 30998  0x170fe00 INFO              GST_STATES gstbin.c:2521:gst_bin_element_set_state:<matroskamux0> current READY pending VOID_PENDING, desired next NULL   
0:06:33.901612044 30998  0x170fe00 INFO              GST_STATES gstelement.c:2419:gst_element_continue_state:<matroskamux0> completed state change to NULL       
0:06:33.901677408 30998  0x170fe00 INFO              GST_STATES gstelement.c:2324:_priv_gst_element_state_changed:<matroskamux0> notifying about state-changed READY to NULL (VOID_PENDING pending)
0:06:33.901796782 30998  0x170fe00 INFO              GST_STATES gstbin.c:2969:gst_bin_change_state_func:<pipeline0> child 'matroskamux0' changed state to 1(NULL) successfully
0:06:33.901911521 30998  0x170fe00 INFO              GST_STATES gstbin.c:2521:gst_bin_element_set_state:<h264parse0> current READY pending VOID_PENDING, desired next NULL                          
0:06:33.902016416 30998  0x170fe00 INFO              GST_STATES gstelement.c:2419:gst_element_continue_state:<h264parse0> completed state change to NULL
0:06:33.902082926 30998  0x170fe00 INFO              GST_STATES gstelement.c:2324:_priv_gst_element_state_changed:<h264parse0> notifying about state-changed READY to NULL (VOID_PENDING pending)
0:06:33.902178654 30998  0x170fe00 INFO              GST_STATES gstbin.c:2969:gst_bin_change_state_func:<pipeline0> child 'h264parse0' changed state to 1(NULL) successfully
0:06:33.902272872 30998  0x170fe00 INFO              GST_STATES gstbin.c:2521:gst_bin_element_set_state:<capsfilter0> current READY pending VOID_PENDING, desired next NULL
0:06:33.902372194 30998  0x170fe00 INFO              GST_STATES gstelement.c:2419:gst_element_continue_state:<capsfilter0> completed state change to NULL
0:06:33.902437142 30998  0x170fe00 INFO              GST_STATES gstelement.c:2324:_priv_gst_element_state_changed:<capsfilter0> notifying about state-changed READY to NULL (VOID_PENDING pending)
0:06:33.902533755 30998  0x170fe00 INFO              GST_STATES gstbin.c:2969:gst_bin_change_state_func:<pipeline0> child 'capsfilter0' changed state to 1(NULL) successfully
0:06:33.902623130 30998  0x170fe00 INFO              GST_STATES gstbin.c:2521:gst_bin_element_set_state:<rpicamsrc0> current READY pending VOID_PENDING, desired next NULL
0:06:33.902718962 30998  0x170fe00 INFO              GST_STATES gstelement.c:2419:gst_element_continue_state:<rpicamsrc0> completed state change to NULL    
0:06:33.902783024 30998  0x170fe00 INFO              GST_STATES gstelement.c:2324:_priv_gst_element_state_changed:<rpicamsrc0> notifying about state-changed READY to NULL (VOID_PENDING pending)
0:06:33.902878961 30998  0x170fe00 INFO              GST_STATES gstbin.c:2969:gst_bin_change_state_func:<pipeline0> child 'rpicamsrc0' changed state to 1(NULL) successfully          
0:06:33.903186510 30998  0x170fe00 INFO              GST_STATES gstelement.c:2419:gst_element_continue_state:<pipeline0> completed state change to NULL
0:06:33.903260520 30998  0x170fe00 INFO              GST_STATES gstelement.c:2324:_priv_gst_element_state_changed:<pipeline0> notifying about state-changed READY to NULL (VOID_PENDING pending)
0:06:33.903410310 30998  0x170fe00 INFO        GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking rpicamsrc0:src(0x17ee038) and capsfilter0:sink(0x17ee6c8)
0:06:33.903543122 30998  0x170fe00 INFO        GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked rpicamsrc0:src and capsfilter0:sink
0:06:33.903656090 30998  0x170fe00 INFO        GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking capsfilter0:src(0x17ee818) and h264parse0:sink(0x17ee188)
0:06:33.903765516 30998  0x170fe00 INFO        GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked capsfilter0:src and h264parse0:sink                                 
0:06:33.903869942 30998  0x170fe00 INFO           GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func:<pipeline0> removed child "capsfilter0"              
0:06:33.904031139 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:2994:gst_element_dispose:<capsfilter0> 0x1808138 dispose                                                             
0:06:33.904106242 30998  0x170fe00 INFO        GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad:<capsfilter0> removing pad 'sink'                                  
0:06:33.904264105 30998  0x170fe00 INFO        GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad:<capsfilter0> removing pad 'src'                                        
0:06:33.904356500 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:3040:gst_element_dispose:<capsfilter0> 0x1808138 parent class dispose          
0:06:33.904431656 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:3071:gst_element_finalize:<capsfilter0> 0x1808138 finalize                                                                
0:06:33.904500926 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:3077:gst_element_finalize:<capsfilter0> 0x1808138 finalize parent                                  
0:06:33.904585509 30998  0x170fe00 INFO        GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking matroskamux0:src(0x17ee428) and fdsink0:sink(0x17ee578)               
0:06:33.904694206 30998  0x170fe00 INFO        GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked matroskamux0:src and fdsink0:sink                  
0:06:33.904809309 30998  0x170fe00 INFO           GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func:<pipeline0> removed child "fdsink0"                                                                
0:06:33.904910402 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:2994:gst_element_dispose:<fdsink0> 0x18023d8 dispose                                             
0:06:33.904983162 30998  0x170fe00 INFO        GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad:<fdsink0> removing pad 'sink'                                          
0:06:33.905065713 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:3040:gst_element_dispose:<fdsink0> 0x18023d8 parent class dispose             
0:06:33.905141181 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:3071:gst_element_finalize:<fdsink0> 0x18023d8 finalize                                                                   
0:06:33.905209202 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:3077:gst_element_finalize:<fdsink0> 0x18023d8 finalize parent                                     
0:06:33.905291180 30998  0x170fe00 INFO        GST_ELEMENT_PADS gstpad.c:2071:gst_pad_unlink: unlinking h264parse0:src(0x17ee2d8) and matroskamux0:video_0(0x180c0d0)         
0:06:33.905405815 30998  0x170fe00 INFO        GST_ELEMENT_PADS gstpad.c:2125:gst_pad_unlink: unlinked h264parse0:src and matroskamux0:video_0            
0:06:33.905523053 30998  0x170fe00 INFO           GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func:<pipeline0> removed child "matroskamux0"                                                           
0:06:33.905621490 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:2994:gst_element_dispose:<matroskamux0> 0x1755030 dispose                                                        
0:06:33.905752687 30998  0x170fe00 INFO        GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad:<matroskamux0> removing pad 'video_0'            
0:06:33.905845915 30998  0x170fe00 INFO        GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad:<matroskamux0> removing pad 'src'                                                           
0:06:33.905919508 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:3040:gst_element_dispose:<matroskamux0> 0x1755030 parent class dispose                      
0:06:33.906044872 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:3071:gst_element_finalize:<matroskamux0> 0x1755030 finalize              
0:06:33.906115913 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:3077:gst_element_finalize:<matroskamux0> 0x1755030 finalize parent                                                 
0:06:33.906209037 30998  0x170fe00 INFO           GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func:<pipeline0> removed child "h264parse0"                                  
0:06:33.906305651 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:2994:gst_element_dispose:<h264parse0> 0x17f1890 dispose                                          
0:06:33.906378202 30998  0x170fe00 INFO        GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad:<h264parse0> removing pad 'sink'                   
0:06:33.906463618 30998  0x170fe00 INFO        GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad:<h264parse0> removing pad 'src'                                                              
0:06:33.906546118 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:3040:gst_element_dispose:<h264parse0> 0x17f1890 parent class dispose                              
0:06:33.906664242 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:3071:gst_element_finalize:<h264parse0> 0x17f1890 finalize                                      
0:06:33.906807261 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:3077:gst_element_finalize:<h264parse0> 0x17f1890 finalize parent            
0:06:33.906915021 30998  0x170fe00 INFO           GST_PARENTAGE gstbin.c:1822:gst_bin_remove_func:<pipeline0> removed child "rpicamsrc0"                                                           
0:06:33.907014551 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:2994:gst_element_dispose:<rpicamsrc0> 0x17ed888 dispose                                         
0:06:33.907086061 30998  0x170fe00 INFO        GST_ELEMENT_PADS gstelement.c:785:gst_element_remove_pad:<rpicamsrc0> removing pad 'src'                                      
0:06:33.907170904 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:3040:gst_element_dispose:<rpicamsrc0> 0x17ed888 parent class dispose         
0:06:33.907303351 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:3071:gst_element_finalize:<rpicamsrc0> 0x17ed888 finalize                                                              
0:06:33.907376319 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:3077:gst_element_finalize:<rpicamsrc0> 0x17ed888 finalize parent                                 
0:06:33.907448297 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:2994:gst_element_dispose:<pipeline0> 0x1804068 dispose 
0:06:33.907607411 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:3040:gst_element_dispose:<pipeline0> 0x1804068 parent class dispose         
0:06:33.907681837 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:3071:gst_element_finalize:<pipeline0> 0x1804068 finalize                                                              
0:06:33.907775066 30998  0x170fe00 INFO         GST_REFCOUNTING gstelement.c:3077:gst_element_finalize:<pipeline0> 0x1804068 finalize parent                                 
0:06:33.907873658 30998  0x170fe00 INFO                GST_INIT gst.c:989:gst_deinit: deinitializing GStreamer                                          
0:06:33.920943497 30998  0x170fe00 INFO                GST_INIT gst.c:1130:gst_deinit: deinitialized GStreamer                                                                                    
@Swap-File
Copy link

You might want to try adding a queue to the pipeline and seeing if anything changes. I've noticed that pipelines without a queue can be iffy, adding a queue will decouple the input and the output.

@xloem
Copy link
Author

xloem commented Jun 11, 2018

I tried just throwing 'queue' in different spots with no options, but it didn't help. I tried running under gdb and the error occurs much more rapidly; it seems to do with latency. I ended up fixing it by changing the codec to x-raw and adding omxh264enc, but the cpu usage was too high for me, so I've switched back to plain raspicamvid for now.

@Swap-File
Copy link

Swap-File commented Jun 11, 2018

It could have something to do with whatever is consuming the data from the fdsink. Where is the data going from there? You may want to try setting sync=off on the fdsink.

Alternatively, if you think the problem is with rpicamsrc you could try piping raspivid into gstreamer, but the CPU usage is slightly higher than normal.

Something like this (going from memory):

/usr/bin/raspivid -w 1296 -h 972 -i record -fps 42 -t 0 -o - | /usr/bin/gst-launch-1.0 fdsrc ! queue ! h264parse ! matroskamux ! fdsink

@thaytan
Copy link
Owner

thaytan commented Jun 11, 2018

Take a look at commit 4e5729 and perhaps try expanding that timeout further from 500ms

@shortstheory
Copy link

I had the exact same issue. I fixed it by setting the timeout as 1000ms and now it works swimmingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants