[mythtv-users] Trying to get UK silence detect Commflagging to work
Roger Siddons
dizygotheca at ntlworld.com
Wed Mar 6 01:19:51 UTC 2013
On Tue, 05 Mar 2013 21:59:26 -0000, Chris Lewis <chrislewis915 at gmail.com>
wrote:
> Im trying to get the advert detection from this page working
>
> http://www.mythtv.org/wiki/Commercial_detection_with_silence_for_UK_freeviewHD
>
> I have copied the text from silence.cpp, catagrower.cpp and silence.py
> to files on my machine.
>
> 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.
>
> I know there has been a long thread on here that is still active but to
> be honest its just got me confused.
>
> Hoping someone can help!
>
> Chris
>
>
The Makefile will build the files for you - 'make' is a well-known process
for compiling/building systems.
You don't disclose what distribution you are using but, for a recent
Ubuntu, try the following from a command line/terminal;
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.
2. Ensure you have python installed, ie. "python -v" returns something.
"sudo apt-get install python" should set this up if you don't.
3. Also copy the Makefile to the same directory as the other files.
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.
5. Move silence.py to /usr/local/bin
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
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20130306/97a1ab05/attachment.html>
More information about the mythtv-users
mailing list