[mythtv-users] UK commflagging script
Alex Butcher
mythlist at assursys.co.uk
Mon Jan 31 16:01:06 UTC 2011
On Mon, 31 Jan 2011, George Poulson wrote:
> On 31 January 2011 12:11, George Poulson <george.poulson at gmail.com> wrote:
>
> I'll try to give this a go today too.
>
>
>
> Hmm..
> My first few attempts have produced entries like these in the wrapper logs...
>
>
> {{
>
> /usr/bin/mythcommflag run with [-j 2196 -V 3] at Mon Jan 31 15:13:14 GMT 2011 by mythtv
> running job 2196
> channel callsign is FIVE
> chanid=13106 STARTTIME=2011-01-29 05:28:00
> basename is 13106_20110129052800.mpg
> filename is /media/disk/mythtv/recordings/13106_20110129052800.mpg
> Callsign in whitelist - will run silence_detect
> silence_detect /media/disk/mythtv/recordings/13106_20110129052800.mpg
> silence-detect has generated cutlist: 1-4466,20558-26041,46379-,
> silect_detect() set CUTLIST to 1-4466,20558-26041,46379-,
> /usr/bin/mythcommflag run with [--setcutlist 1-4466,20558-26041,46379-, -f /media/disk/mythtv/recordings/13106_20110129052800.mpg] at Mon Jan 31 15:14:56 GMT
> 2011 by mythtv
> running mythcommflag.orig --setcutlist 1-4466,20558-26041,46379-, -f /media/disk/mythtv/recordings/13106_20110129052800.mpg
> mythcommflag failed; returned 134
Odd. That's what the original silence-detect.sh script does as mythcommflag
--setcutlist used to be able to accept a trailing - as meaning 'cut to the
end'. I specifically added code to get the frame count from
mytharchivehelper.
Add
echo >>$LOGFILE "Total Frames = $FRAMES"
between the lines reading
let FRAMES=...
and
# From <http://www...
and try again. Which version of MythTV are you using?
> Most of my recordings are timed to end 2mins after the scheduled programme end time, so most end within a commercial break - and I guess that's why I'm seeing
> the problem.
I don't think that should cause a problem, but I think I use a post-roll of
5 minutes instead.
> Any thoughts or suggestions?
> George
HTH,
Alex
More information about the mythtv-users
mailing list