<p dir="ltr">Ah I tried that but didn&#39;t use Sudo make. </p>
<p dir="ltr">I&#39;m guessing that required to put the binaries in /usr/local/bin. </p>
<p dir="ltr">Will try again tonight </p>
<p dir="ltr">Chris </p>
<p dir="ltr">Get free online storage <a href="http://db.tt/rUaqYGYA">http://db.tt/rUaqYGYA</a> </p>
<div class="gmail_quote">On 6 Mar 2013 01:20, &quot;Roger Siddons&quot; &lt;<a href="mailto:dizygotheca@ntlworld.com">dizygotheca@ntlworld.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>


<div>On Tue, 05 Mar 2013 21:59:26 -0000, Chris Lewis &lt;<a href="mailto:chrislewis915@gmail.com" target="_blank">chrislewis915@gmail.com</a>&gt; wrote:<br><br><blockquote style="margin:0 0 0.80ex;border-left:#0000ff 2px solid;padding-left:1ex">
<div dir="ltr">Im trying to get the advert detection from this page working<div><br></div><div><a href="http://www.mythtv.org/wiki/Commercial_detection_with_silence_for_UK_freeviewHD" target="_blank">http://www.mythtv.org/wiki/Commercial_detection_with_silence_for_UK_freeviewHD</a></div>

<div><br></div><div>I have copied the text from silence.cpp, catagrower.cpp and silence.py to files on my machine.</div><div><br></div><div>Do i now need to compile the two CPP files individually?  What is the make file for on that page?  I&#39;m struggling as the wiki does not have full details on what to do to get it working.</div>

<div><br></div><div>I know there has been a long thread on here that is still active but to be honest its just got me confused.</div><div><br></div><div>Hoping someone can help!</div><div><br>
</div><div>Chris</div><div><br></div><div><br></div></div>
</blockquote><div>The Makefile will build the files for you - &#39;make&#39; is a well-known process for compiling/building systems.</div><div><br></div><div>You don&#39;t disclose what distribution you are using but, for a recent Ubuntu, try the following from a command line/terminal;</div>
<div><br></div><div>1. Ensure you have a compilation environment installed, ie. &quot;gcc -v&quot; &amp; &quot;make -v&quot; both return some version info. I believe &quot;sudo app-get install build-essential&quot; should set this up for you if these commands are unrecognised.<br>
</div><div><br></div><div>2. Ensure you have python installed, ie. &quot;python -v&quot; returns something. &quot;sudo apt-get install python&quot; should set this up if you don&#39;t.</div><div><br></div><div>3. Also copy the Makefile to the same directory as the other files.</div>
<div><br></div><div>4. cd to the directory containing your files. &quot;sudo make&quot; should now compile the 2 cpp files &amp; install executables &quot;silence&quot; &amp; &quot;catagrower&quot; into /usr/local/bin.</div>
<div><br></div><div>5. Move silence.py to /usr/local/bin</div><div><br></div><div>6. Test it using &quot;silence.py --chanid 1004 --starttime 20130117220000 --loglevel debug&quot;, as per the wiki. Use a relevant chanid/starttime and it should actually do something. To get Myth to use it automatically the &#39;Advert-Detection command&#39; is on one of the last pages of mythtv-setup/General</div>
<div><br></div><div>Obviously this is all dependent on your system, user, permissions etc. If you still have problems post back with your distribution info, the versions of gcc &amp; python you are using and the errors you&#39;re getting.</div>
<br><br></div><br>_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<br></blockquote></div>