<div class="gmail_quote">On Thu, Jan 29, 2009 at 3:31 PM, Brad Templeton <span dir="ltr">&lt;<a href="mailto:brad%2Bmyth@templetons.com">brad+myth@templetons.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Thu, Jan 29, 2009 at 09:21:11AM -0400, Mark J. Small wrote:<br>
&gt;<br>
&gt; Hi everybody,<br>
&gt;<br>
&gt; Last night my wife and I sat down to watch a movie that I had recorded<br>
&gt; recently. &nbsp;It was Bride and Prejudice, a Bollywood version of Jane Austen.<br>
&gt; It was on CBC (Canada eh!) at 1:00 AM sometime in the past few weeks.<br>
&gt;<br>
&gt; Well, the schedule information was not quite right and the recording stopped<br>
&gt; after 2 hours. &nbsp;So we missed the end of the movie. &nbsp;Since this is the sort of<br>
&gt; movie that is not likely to be carried at the corner store or the gas station<br>
&gt; (our local DVD options), my wife was quite frustrated that we&#39;ll likely never<br>
&gt; get to see the end of the movie.<br>
&gt;<br>
&gt; So I need to set a strange recording rule to make sure that this doesn&#39;t<br>
&gt; happen again. &nbsp;Here is what I would like.<br>
&gt;<br>
&gt; If I&#39;m recording a movie<br>
&gt; &nbsp; &nbsp; &nbsp; If the channel goes off air after the movie<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Add an extra hour to the recording.<br>
&gt;<br>
&gt; Is there any way to create such a rule?<br>
<br>
</div>I doubt you can do it automatically. &nbsp; If you made your<br>
requests in another system, like from perl code, you could do<br>
it.<br>
<br>
My personal taste would be something grander, however. &nbsp;I think,<br>
as long as there is disk space, and the tuner is availale (ie. there<br>
is not another recording it has to switch to) mythtv should _always_<br>
record extra on the program. &nbsp;Except this &quot;extra&quot; should be put in<br>
a different file, with these files of extra video purged first when<br>
space is needed.<br>
<br>
Now this is easy to do on linux with the truncate() system call.<br>
It may be harder on some other OS, I don&#39;t know.<br>
<br>
Users could go in and use &quot;edit&quot; mode to discard the extra space<br>
right away.<br>
<br>
I think missing the ends of movies is not just a WAF thing.<br>
I think it&#39;s very frustrating even for the sophisticated user.<br>
<br>
I would set defaults of:<br>
<br>
 &nbsp; &nbsp;Movies: &nbsp;10% of movie length<br>
 &nbsp; &nbsp;Sports &amp; Live events: &nbsp;30 minutes<br>
 &nbsp; &nbsp;General shows: 3-4 minutes -- you can effectively already do this<br>
 &nbsp; &nbsp;Shows before off-the-air -- 20% of program length<br>
<br>
<br>
This has really no downside, except that it will start truncating<br>
away the space in autoexpire, so would will need to check the<br>
recording relatively soon, and use Edit mode to apply a cutlist<br>
if you want to preserve beyond the official ending. &nbsp; (I would<br>
code it so that if any cutlist is present, autoexpire would truncate<br>
files from the last &quot;delete after this&quot; cutpoint. &nbsp;This would apply<br>
to any recording, not just ones with padding.)<br>
<br>
I would also add more forward padding too, but in this case,<br>
I would have the playing cursor start at the official start time,<br>
and let me rewind into the padding, rather than have the program<br>
start playing in the padding.<br>
<br>
Another SMOP I probably won&#39;t get around to doing...</blockquote><div><br>Myth already does this.&nbsp; At least for 1 category.&nbsp; I have it record extra on sports.&nbsp; It would just need to be expanded to allow for multiple rules<br>
<br>Kevin</div></div><br>