MythTV 0.25: Updated mythcommflag-wrapper.sh script for UK TV silence detection
There have been a number of changes to MythTV and supporting tools, and I’ve had to make a few fixes to the mythcommflag-wrapper.sh script, adapted from the version on the mythtv wiki to get this working for me again.
Changes required to get this working again included:
using “avconv” instead of “ffmpeg”, as I had problems with the new version of ffmpeg in the debian-multimedia repository, and ffmpeg has been deprecated in the official Debian repos in preference of avconv
using “mythutil” instead of “mythcommflag” to perform some skiplist and cutlist operations, as this has changed in 0.25
Some minor improvements made are:
using “mythutil” instead of direct mysql commands to update the skiplist, avoiding the need to transform the cutlist frame numbers into SQL commands
improving the safe channel list to be in a bash array rather than a very large A or B or C… style conditional
There are still a few bits and bobs of tidying to do, as there are direct uses of mysql for things which seem unlikely to be necessary, and if mythutil or other supported commands can be used instead then this will make the script overall more robust.
Would anyone be interested in putting this on github, or perhaps submitting it back to mythtv to be a more core supported item?