[mythtv-users] Commercial Detection

Joe Nyland joenyland at me.com
Thu Mar 8 10:54:37 UTC 2012

On 08 Mar, 2012,at 10:47 AM, Lawrence Rust <lvr at softsystem.co.uk> wrote:

> I use a script based on the wiki article
> www.mythtv.org/wiki/Mythcommflag-wrapper with good success on most UK
> Freesat channels.
> I found that changing the silence threshold to -76 dB from -70
> significantly improved accuracy. Also, decreasing the coalescence time
> from 400 to 360 seconds reduced the prevalence of false positives. The
> last useful tweak is to the awk program to add 'cut to beginning' or
> 'cut to end' without leaving 'dangling' frames.
> This generally leaves a few frames of ads/titles before and after each
> cut. The only annoyance is that the post ad cut doesn't position to a
> keyframe so the cut isn't entirely invisible. I'm working on that and
> back tracking from the start of cut to detect a scene change.
> The script can be found here:
> http://www.softsystem.co.uk/download/mythtv/mythcommflag-silence.sh
> To run it as a user job, start mythtv-setup and find General/JobQueue
> (Global) and set the Ad-detection command:
> mythcommflag-silence.sh -j %JOBID% -C
> The -C option copies the list to the cutlist.
> -- 
> Lawrence
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users

Spot on! Thanks for this. I'll give it a go if I don't have much luck with the script in the Wiki.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-users/attachments/20120308/b2deeee7/attachment-0001.html 

More information about the mythtv-users mailing list