<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Tim,<div class=""><br class=""></div><div class="">Thanks! Such thing would would be great way to debug. Is there any environment variable which I can use to configure this ring buffer logs?</div><div class=""><br class=""></div><div class="">I mean I can set this ringbuffer up with gst_debug_remove_log_function(NULL) and gst_debug_add_ring_buffer_logger but we were not able to detect the problem from within the application so far. We only notice that the CPU load drops and the stream is stopped and as I guess I should call the gst_debug_ring_buffer_logger_get_logs from within the application and I dont really have a trigger point.</div><div class=""><br class=""></div><div class="">I tried to add a callback on the pipeline to print status messages / state changes with:</div><div class=""><br class=""></div><div class=""><div style="color: rgb(54, 54, 54); background-color: rgb(255, 255, 255); font-family: Menlo, Monaco, "Courier New", monospace; font-weight: 800; font-size: 10px; line-height: 15px; white-space: pre;" class=""><br class=""><div class="">     bus = <span style="color: rgb(99, 99, 36);" class="">gst_element_get_bus</span> (pipeline);</div><div class="">     <span style="color: rgb(99, 99, 36);" class="">gst_bus_add_signal_watch</span> (bus);</div><div class="">     <span style="color: rgb(99, 99, 36);" class="">g_signal_connect</span> (bus, <span style="color: rgb(162, 86, 55);" class="">"message"</span>, <span style="color: rgb(99, 99, 36);" class="">G_CALLBACK</span> (cb_message), pipeline);</div><br class=""></div></div><div class=""><div><br class=""></div><div>and then:</div><div><br class=""></div><div><div style="color: rgb(54, 54, 54); background-color: rgb(255, 255, 255); font-family: Menlo, Monaco, "Courier New", monospace; font-weight: 800; font-size: 10px; line-height: 15px; white-space: pre;" class=""><div class=""><span style="color: rgb(63, 151, 223);" class="">static</span> <span style="color: rgb(63, 151, 223);" class="">void</span></div><div class=""><span style="color: rgb(99, 99, 36);" class="">cb_message</span> (GstBus * bus, GstMessage * msg, GstElement* pipeline)</div><div class="">{</div><div class="">  <span style="color: rgb(99, 99, 36);" class="">INFO</span>(<span style="color: rgb(162, 86, 55);" class="">"bus message: "</span> + <span style="color: rgb(70, 224, 192);" class="">std</span>::<span style="color: rgb(99, 99, 36);" class="">string</span>(<span style="color: rgb(99, 99, 36);" class="">gst_message_type_get_name</span>(<span style="color: rgb(99, 99, 36);" class="">GST_MESSAGE_TYPE</span> (msg))));</div><div class="">}</div></div></div><div><br class=""></div><div>But this is remain silent as well.</div><div><br class=""></div><div><br class=""></div><div>So is there a way to configure this behaviour /<span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""> </span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">trigger the log </span> flushing externally? Or setup a log rotation? (all I saw so far is the GST_DEBUG_FILE)</div><div><br class=""></div><div>Thanks!</div><div><br class=""></div><div>Bests,</div><div>Peter</div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">On 2021. May 12., at 11:38, Tim Müller <<a href="mailto:tim@centricular.com" class="">tim@centricular.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi Peter,<br class=""><br class=""><blockquote type="cite" class="">We tried to debug it in:<br class=""> * info log we dont have any printouts (unfortunately we are not able<br class="">to set the debug level higher since logs would fill up the disk)<br class=""></blockquote><br class="">You can remove the default log function with<br class=""><br class="">  gst_debug_remove_log_function(NULL)<br class=""><br class="">and do<br class=""><br class="">  gst_debug_add_ring_buffer_logger(..)<br class=""><br class="">and then grab the last X MB of logs using<br class=""><br class="">  gst_debug_ring_buffer_logger_get_logs()<br class=""><br class="">when you detect that things have gone wrong.<br class=""><br class="">Cheers<br class=""> Tim<br class=""><br class=""></div></div></blockquote></div><br class=""></div></body></html>