<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Thank you for the links. I have gone through them before. From the second link I got to know about GST_DEBUG_CATEGORY_INIT and GST_DEBUG_BIN_TO_DOT_FILE.</div><div><br></div><div>I am not writing a plug-in. I am writing an application, and I want to learn how to use debug messages properly.</div><div><br></div><div>I will let you know if I manage to print the debug messages from the code of the Chapter 19.</div><div><br></div><div>Best regards,</div><div><br></div><div>Francisco</div><br><div><div>On 17 Oct 2014, at 21:37, Chuck Crisler <<a href="mailto:ccrisler@mutualink.net">ccrisler@mutualink.net</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div>That has been the most confusing part for me. I haven't yet written a plug-in, but you still have to work through these items to figure out the category to enter for GST_DEBUG to get your log messages.<br><br></div>Look at these sources, they should help:<br><a href="http://www.freedesktop.org/software/gstreamer-sdk/data/docs/2012.5/gstreamer-0.10/gstreamer-GstInfo.html#GST-DEBUG-CATEGORY-INIT:CAPS">http://www.freedesktop.org/software/gstreamer-sdk/data/docs/2012.5/gstreamer-0.10/gstreamer-GstInfo.html#GST-DEBUG-CATEGORY-INIT:CAPS</a><br><br><a href="http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+11%3A+Debugging+tools">http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+11%3A+Debugging+tools</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 17, 2014 at 1:47 PM, Francisco Velázquez <span dir="ltr"><<a href="mailto:francisco.javier@me.com" target="_blank">francisco.javier@me.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Chuck<div><br></div><div>Thank you for your reply.</div><div><br></div><div>I am running the example code from <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-dynamic-pipelines.html" target="_blank">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-dynamic-pipelines.html</a>. There you can see that each GST_DEBUG_OBJECT has an object pointer as first parameter.</div><div><br></div><div>I tried the GST_DEBUG(...) macro. For that, I added to the top of my code:</div><div><br></div><div><div style="margin:0px;font-size:11px;min-height:13px"><font face="Courier">GST_DEBUG_CATEGORY (my_category);</font></div></div><div><div style="margin:0px;font-size:11px;color:rgb(120,73,42)"><font face="Courier">#define GST_CAT_DEFAULT my_category</font></div><div style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(120,73,42)"><br></div><div style="margin:0px"><span style="font-family: Helvetica; font-size: 12px;">Then I exported the environment variable GST_DEBUG=my_catego</span>ry:9, and finally<font> I tried two things to initialise the category. </font></div><div style="margin:0px"><br></div><div style="margin:0px">1) I added the following line above <span style="font-family:Menlo;font-size:11px">GST_DEBUG_CATEGORY (my_category);:</span></div><div></div><div style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(120,73,42)"><br></div><div style="margin:0px;font-size:11px;color:rgb(120,73,42)"><div style="font-size: 12px;"><div style="margin:0px;font-size:11px;min-height:13px"><font face="Courier"><span style="color:rgb(120,73,42)">#define _do_init GST_DEBUG_CATEGORY_INIT (my_category, </span><span style="color:rgb(209,47,27)">"my category"</span><span style="color:rgb(120,73,42)">, </span><span style="color:rgb(39,42,216)">0</span><span style="color:rgb(120,73,42)">, </span><span style="color:rgb(209,47,27)">"This is the category for debugging this program"</span><span style="color:rgb(120,73,42)">);</span></font></div><div style="font-family:Helvetica"><span style="color:rgb(120,73,42)"><br></span></div></div></div><div style="margin:0px;min-height:13px"><span style="font-size:11px"><font face="Menlo">2) I added </font><font face="Courier">GST_DEBUG_CATEGORY_INIT (my_category, </font></span><font face="Courier"><span style="font-size:11px;color:rgb(209,47,27)">"my category"</span><span style="font-size:11px">, </span><span style="font-size:11px;color:rgb(39,42,216)">0</span><span style="font-size:11px">, </span><span style="font-size:11px;color:rgb(209,47,27)">"This is the category for debugging this program</span><font color="#d12f1b"><span style="font-size:11px">”</span></font></font><span style="font-size:11px"><font face="Courier">);</font><font face="Menlo"> right after </font></span><font face="Courier"><span style="font-size:11px">g_option_context_add_group (ctx, gst_init_get_option_group ());</span></font></div></div><div style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px"><div style="margin:0px;color:rgb(209,47,27)"><br></div></div><div> but debugging messages are still not appearing in the console.</div><div><br></div><div>I am testing the code in Xcode 6.0.1 in Mac OS X 10.9.5. I export the environment variable in the Xcode GUI. I know it is taking effect, because the console displays DEBUG messages from all other categories if I export <font face="Courier">GST_DEBUG=5</font>, or<font face="Courier"> GST_DEBUG=*:5.</font> The messages displayed vary depending on the value. I have also created some .dot files with the environment variable <font face="Courier">GST_DEBUG_DUMP_DOT_DIR</font> also exported through the GUI in Xcode. My apologises for creating confusion when I stated “declare GST_DEBUG”, it was a figurative sentence.</div><div><br></div><div>I think that I am doing something wrong with the initialisation of <span style="color:rgb(120,73,42);font-size:11px"><font face="Courier">GST_DEBUG_CATEGORY_INIT</font></span>.</div><div><br></div><div>Do you have any idea what I am missing or doing wrong?</div><div><br></div><div>Thank you!</div><div><br></div><div>Francisco</div><div><br><div><div>On 16 Oct 2014, at 17:22, Chuck Crisler <<a href="mailto:ccrisler@mutualink.net" target="_blank">ccrisler@mutualink.net</a>> wrote:</div><br><blockquote type="cite"><div dir="ltr"><div>The process does work, so you have some small but critical error. The GST_DEBUG_OBJECT requires some object pointer as the first parameter, so insure that you have that. Alternatively, you can simply use GST_DEBUG(...). Second, you say 'declare GST_DEBUG=', it must be 'export GST_DEBUG=' in your environment before launching the app, assuming Linux.<br><br></div>If you are still having trouble, post the OS you are using and code snippets around the important lines (GST_DEBUG_CATEGORY, #define _do_init..., export GST_DEBUG=...<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 16, 2014 at 8:34 AM, Francisco Velázquez <span dir="ltr"><<a href="mailto:francisco.javier@me.com" target="_blank">francisco.javier@me.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto;"><div style="word-wrap:break-word">Hi GStreamer devel community,<div><br></div><div>I have a question that may be trivial, but I’m struggling with it. My question refers to the code of Chapter 19 of the GStreamer manual posted in <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-dynamic-pipelines.html" target="_blank">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-dynamic-pipelines.html</a></div><div><br></div><div>My question is:</div><div><br></div><div>How to print GST_DEBUG_OBJECT messages in console?</div><div><br></div><div>I have read the threads below among others. The environment variable GST_DEBUG has an effect when being general. For example, GST_DEBUG=5 or GST_DEBUG=*:5 print messages from all involved categories. I have not figured out how to print to the console the messages from the code example.</div><div><br></div><div><a href="http://gstreamer-devel.966125.n4.nabble.com/how-do-you-enable-output-of-GST-DEBUG-OBJECT-td4662640.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/how-do-you-enable-output-of-GST-DEBUG-OBJECT-td4662640.html</a></div><div><a href="http://permalink.gmane.org/gmane.comp.video.gstreamer.devel/46433" target="_blank">http://permalink.gmane.org/gmane.comp.video.gstreamer.devel/46433</a></div><div><br></div><div>I have also tried to initialise a category for the code example with:</div><div><br></div><div><div style="margin:0px;font-size:11px;font-family:Menlo">GST_DEBUG_CATEGORY (my_category);</div><div style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(120,73,42)">#define GST_CAT_DEFAULT my_category</div></div><div><br></div><div><div style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(120,73,42)">#define _do_init GST_DEBUG_CATEGORY_INIT (my_category, <span style="color:#d12f1b">"my category"</span>, <span style="color:#272ad8">0</span>, <span style="color:#d12f1b">"This is the category for the code example of Chapter 19"</span>);</div></div><div><br></div><div>Then, I declare GST_DEBUG=mycategory:9, but there are no messages printed from GST_DEBUG_OBJECT.</div><div><br></div><div>Thanks a lot for any hint!</div><span><font color="#888888"><div><br></div><div>Francisco</div><div><br></div></font></span></div><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>
_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br></blockquote></div><br></div></div><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>
_______________________________________________<br>gstreamer-devel mailing list<br><a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br></blockquote></div><br></body></html>