Talk:Commercial detection with silences

From MythTV Official Wiki
Jump to: navigation, search

Why isn't this included in mythtv?

I'm curious, is there a technical reason why this Ad detection method isn't included in mythtv? The built-in methods used to work well in Australia but have been terrible for at least two years now. It seems this is used by many people in various countries, yet it's still a custom script on an obscure page in the wiki?

Orometry (talk) 8:44, 2 January 2018 (UTC)

The commflagger is historically focused on US TV and has been long neglected. The current implementation makes it difficult to add new methods without potentially affecting old ones. Tinkering with it without being able to verify that US operation (or any other region) is unaffected is difficult and risky. I still have dreams of implementing a plugin-style commflagger, which would facilitate easy development of regional methods, such as this. But it's a long way down my to-do list. Don't hold your breath.

Dizygotheca 13:40, 2 January 2018 (UTC)

Thank you for the explanation Dizygotheca. Is Ad detection easier on US channels? I know TV channels in my country deliberately obscure them (which is why this is needed).

Orometry (talk) 13:44, 27 January 2018 (UTC)

Skiplist in Python

Anyone know the correct way to edit a skiplist in Python?

Done. wagnerrp

It's stopped working recently

I can't figure out why but silence.cpp seems to be ignoring SIGALRM and so it never stops. If I kill the tail manually (like silence.ccp is supposed to in the alarm handler) it finishes properly. If I send a SIGALRM to silence.cpp nothing happens. I'm on Debian Wheezy and it was working until a few weeks ago so it is probably a kernel or security update. Has anyone else seen this behaviour?

Fixed in silence.cpp v4.2 - I don't know what has changed but the process has SIGALRM blocked when it starts so this change simply unblocks it and all is good in the world again.

A suggestion to improve the visibility of the running job in the Mythweb status page.

I would like to propose a small change to your code to include the following lines at line 192 of the script.

   # Purge any existing skip list and flag as in-progress
   rec.commflagged = 2
   #Add this line to show the status in green in the Mythweb status page
   job.update({'status': 4, 'comment': 'Running.'})

With this line added the status of the job shown in Mythweb status page shows running in green whilst the job is running, this is only a small cosmetic change but it helps to identify a running job in a long list of finished and queued jobs.

For some recordings the detection does not really start and never ends => jobqueue is blocked!

The cause of this issue is that mythffmpeg can not handle recordings using a variable count of audio streams and/or channels. Changing, substituting "mythffmpeg" with "avconv" (and installing libav-tools, when not already done) solved the problem for me. Have a look to the mythtv-users mailing list for details:

Perhaps this can help in the further develpement of the silence detction tool...

--Sjuk (talk) 15:44, 16 October 2014 (UTC)