[mythtv] Switched Digital Video Problem

Raymond Wagner raymond at wagnerrp.com
Mon Jul 26 01:03:19 UTC 2010

  On 7/25/2010 18:30, David Engel wrote:
> On Sun, Jul 25, 2010 at 04:19:16PM -0400, George Nassas wrote:
>> On 2010-07-25, at 4:08 PM, David Engel wrote:
>>> I'm open to other suggestions, but what I'm thinking of doing is
>>> modifying the MythTV recorder code to optionally re-execute the
>>> channel change script (or another one) periodicall
>> Aren't system events tailor made for this sort of situation? 	Subscribe to "Recording started" and have your handler script do the bump every so many minutes. Have a second subscription to "Recording finished" which kills each bump script. You could have the bumper write its pid to /tmp/myth.%FILE% so the recording finished script knows who to kill.
> Hmm, system events might work.  At first glance, however, it looks
> like there could a tiny race condition.  The client might not receive
> the REC_FINISHED even in time to stop the periodic handler before the
> recorder has already started another recording.
> This does give me a different idea, though.  The channel change script
> could kill any existing handler, change the channel and then start a
> new handler.

Alternatively, you could have the handler script query the backend over 
myth protocol or mythxml to get the scheduled end of the recording.  
Just do nothing if you're within X seconds of the end.

More information about the mythtv-dev mailing list