[mythtv-users] UK commflagging script

George Poulson george.poulson at gmail.com
Mon Jan 31 15:36:05 UTC 2011


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

}}

Running the same command from a console gives ...

{{
george at mythbuntu:~$mythcommflag.orig --setcutlist 1-4466,20558-26041,46379-,
-f /media/disk/mythtv/recordings/13106_20110129052800.mpg
2011-01-31 15:20:06.717 Using runtime prefix = /usr
2011-01-31 15:20:06.718 Using configuration directory = /home/george/.mythtv
2011-01-31 15:20:06.758 Empty LocalHostName.
2011-01-31 15:20:06.801 New DB connection, total: 1
2011-01-31 15:20:06.840 Closing DB connection named 'DBManager0'
ASSERT failure in QList<T>::operator[]: "index out of range", file
/usr/include/qt4/QtCore/qlist.h, line 447
Aborted
george at mythbuntu:~$

}}


The problem is with the parameters passed to the 'setcutlist' command - it
doesn't like the final "46379-," .. if I remove the last cutlist entry such
that the parameters look like "--setcutlist 1-4466,20558-26041 -f /media..."
then the command completes OK

I've tried it on a few recordings and it's giving similar results (all the
cutlists have a xxxxx-, at the end )

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.

Any thoughts or suggestions?

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


More information about the mythtv-users mailing list