<p dir="ltr">Ah I tried that but didn't use Sudo make. </p>
<p dir="ltr">I'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, "Roger Siddons" <<a href="mailto:dizygotheca@ntlworld.com">dizygotheca@ntlworld.com</a>> 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 <<a href="mailto:chrislewis915@gmail.com" target="_blank">chrislewis915@gmail.com</a>> 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'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 - 'make' is a well-known process for compiling/building systems.</div><div><br></div><div>You don'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. "gcc -v" & "make -v" both return some version info. I believe "sudo app-get install build-essential" should set this up for you if these commands are unrecognised.<br>
</div><div><br></div><div>2. Ensure you have python installed, ie. "python -v" returns something. "sudo apt-get install python" should set this up if you don'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. "sudo make" should now compile the 2 cpp files & install executables "silence" & "catagrower" 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 "silence.py --chanid 1004 --starttime 20130117220000 --loglevel debug", as per the wiki. Use a relevant chanid/starttime and it should actually do something. To get Myth to use it automatically the 'Advert-Detection command' 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 & python you are using and the errors you'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>