<!DOCTYPE html><html><head>
<style type="text/css">body { font-family:'DejaVu Sans'; font-size:13px}</style>
</head>
<body>On Tue, 05 Mar 2013 21:59:26 -0000, Chris Lewis &lt;chrislewis915@gmail.com&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">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? &nbsp;What is the make file for on that page? &nbsp;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" &amp; "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 &amp; install executables "silence" &amp; "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 &amp; python you are using and the errors you're getting.</div><br><br></body></html>