2013-03-10, 02:09
(2013-03-09, 15:48)divingmule Wrote: I made a few changes to the RemoveCommercials script, I'll share it here for a while -> http://ubuntuone.com/5VVhAYIp9V0M24yMwxGZPx
I had trouble with the original script not playing nice if running multiple user jobs, so I added nice-ness to the process. I also changed it so that the original file is overwritten instead of being renamed .old. Maybe some other minor changes, can't remember, it's been a while.
I run this script as a MythTV userjob before mythicalLibrarian runs.
Code:/path/to/commercialremover.sh %DIR% %FILE% %CHANID% %STARTTIME%
I do commercial flagging when the recording starts so, if you want to use this script to run it you will have to un-comment the commercial flagging lines.
On my hardware it takes about five minuets for a thirty minuet recording to complete and file size is reduced by about a third.
As GregoryK said MythTV 0.26 broke the mythtranscodethat was a deal breaker for me, sticking with 0.25.
Thanks for this. I was excited to try your script to see if I would have more luck than with the version I was using. I more closely followed the action this time and noticed a very strange thing. The "Flag Commercials" job that I set to run when the recording starts actually ended before the recording finished.
I got a bunch of these errors:
Code:
Decoder ringbuffer.cpp:1023 (WaitForReadsAllowed) RingBuf(/var/lib/mythtv/recordings/1003_20130309141500.mpg): Taking too long to be allowed to read..
followed by bunch of these:
Code:
Decoder avformatdecoder.cpp:4396 (GetFrame) decoding error#012#011#011#011eno: Broken pipe (32)
I am running my myth-backend on a low-powered nettop with a bunch of other servers running in the backend. Could it be that I am running out of horsepower? Can I tune mythcommflag to be more patient?