[mythtv-users] UK commflagging script

George Poulson george.poulson at gmail.com
Mon Jan 31 17:24:40 UTC 2011

On 31 January 2011 16:01, Alex Butcher <mythlist at assursys.co.uk> wrote:

       echo >>$LOGFILE "Total Frames = $FRAMES"

Hmm.. that echo'ed absolutely nothing!!

The problem appears to be that mythbuntu's /bin/sh is "dash", which doesn't
support "let".

I've changed line 1 to:


and the script now completes and appears to insert a reasonable cutlist:

As you can see I added some extra debugging to check that the 'fudge' was
working correctly :)


/usr/bin/mythcommflag run with [-j 2208 -V 3] at Mon Jan 31 17:08:21 GMT
2011 by mythtv
running job 2208
channel callsign is Channel 4
chanid=12211 STARTTIME=2011-01-29 16:55:00
basename is 12211_20110129165500.mpg
filename is /media/disk/mythtv/recordings/12211_20110129165500.mpg
Callsign in whitelist - will run silence_detect
silence_detect /media/disk/mythtv/recordings/12211_20110129165500.mpg
Getting frame count... 55386 - Fudged = 55311
silence-detect has generated cutlist: 1-5106,23432-29526,46594-55311,
silect_detect() set CUTLIST to 1-5106,23432-29526,46594-55311,
/usr/bin/mythcommflag run with [--setcutlist 1-5106,23432-29526,46594-55311,
-f /media/disk/mythtv/recordings/12211_20110129165500.mpg] at Mon Jan 31
17:11:58 GMT 2011 by mythtv
running mythcommflag.orig --setcutlist 1-5106,23432-29526,46594-55311, -f


I've not watched this recording yet to see how successful the flagging is,
but we're on the right track now!

I've updated the wiki page to mention that you can add multiple recording
paths, but havent changed the script :)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20110131/093abc19/attachment.htm>

More information about the mythtv-users mailing list