1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Automatic soft padding running on the TiVo

Discussion in 'TiVo Series 1 - UK' started by sanderton, Oct 8, 2003.

Thread Status:
Not open for further replies.
  1. Oct 10, 2003 #61 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    Yes
     
  2. Oct 10, 2003 #62 of 1197
    tivo_boj

    tivo_boj Tivo is getting old

    215
    0
    Feb 10, 2001
    Pitsea,...
    When using endpad thewvideo has frozen twice, and have needed change channels to unfreeze. This seems to have happened once while recording , once when not. As this did not happen before I can only put it down to endpad.

    I also had startrd.tcl running at the same time, could this be causing a clash and thus the video freeze?
     
  3. Oct 10, 2003 #63 of 1197
    tivo_boj

    tivo_boj Tivo is getting old

    215
    0
    Feb 10, 2001
    Pitsea,...
    I think this is how we want it to work I would rather have a padded regular programme and miss the suggestion.

    If its two suggestions back to back, again is it best to to get one full suggested programme than two suggestion with missed endings? Can't make up my mind on this, no doubt as author sanderton will make the decsion on which is easiest(and most stable).
     
  4. Oct 10, 2003 #64 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    I think it's very unlikely that endpad could interfere with the video in that way; especially not when there is no recording going on.

    When there is no recording it is simply polling to see if a text file exists every minute - hard to see how that could freeze the video.

    It won't clash with the red dot remover even if they were timed to go off at the same time; they only make one call to the same bit of data, and both use TiVo's built-in locking mechanism to avoid a clash.

    The red dot remover is more likley to cause a problem as it simulates sending IR signals to the TiVo, and also capures the keypress events from a received IR signal, both things that could, I guess, cause issues if there was a problem.

    I've been running endpad and noredot on one of my two TiVos with no issues (yet!).
     
  5. Oct 10, 2003 #65 of 1197
    Fozzie

    Fozzie New Member

    837
    0
    Sep 3, 2001
    Alton,...
    I'm not sure that the assumption that endings are 'normally' missed is right. I would prefer to have both suggestions recorded and run the risk of an ending being missed. After all, if I was that interested in the programme I would have set up an explicit recording. If only the first suggestion was recorded (because of padding), the second (now cancelled) suggestion may have actually been a programme that better matched my viewing habits (or was more interested in). After all, we know how random TiVo's suggestions can be ;)

    All good healthy debate :)
     
  6. Oct 10, 2003 #66 of 1197
    Fozzie

    Fozzie New Member

    837
    0
    Sep 3, 2001
    Alton,...
    If time was needed then perhaps you could check at 'padding duration' + 'n' seconds or check at 'padding time' and then start recording at 'padding time' - 'n' seconds?
     
  7. Oct 10, 2003 #67 of 1197
    tivo_boj

    tivo_boj Tivo is getting old

    215
    0
    Feb 10, 2001
    Pitsea,...
    Thanks,

    I will have a play to see if i can re-create, or maybe it was just a "blip" on my system
     
  8. Oct 10, 2003 #68 of 1197
    ccwf

    ccwf 国際化 Member

    8,634
    0
    Dec 29, 2001
    Malibu
    It really needs to be one script to handle the end padding, start padding, and possibly negative padding. Trying to coordinate multiple scripts in a safe fashion seems much harder than using a single script.

    As for distinguishing between soft padding and the original hard padding, just save (in a variable outside the main loop and, eventually, also to a state file on disk) the ID and original end padding of the current recording (if any) and the ID and original start padding of the next non-suggestion recording. This information can be used between runs of the padding script to know what is soft padding and what is not. It can also be used within the script when this knowledge is necessary.
     
  9. Oct 10, 2003 #69 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    I agree, it will be a single app.

    I'm aiming to make it so that it simply doesn't need to know about what is soft and what is hard. (Insert own Carry On joke here..)
     
  10. Oct 10, 2003 #70 of 1197
    ccwf

    ccwf 国際化 Member

    8,634
    0
    Dec 29, 2001
    Malibu
    As long as you don't care about reducing the soft padding of a recording in progress in the case where someone kills and then restarts endpad with a smaller amount of padding (and I wouldn't), that should be possible.
     
  11. Oct 10, 2003 #71 of 1197
    bobnick

    bobnick New Member

    862
    0
    Jun 6, 2002
    London
    OK, I'm having trouble getting the script to run. The tcl script is ideal for me, as I'm an airnet user and have dodgy reception!

    I've downloaded the zip, and unzipped it using winzip. I've then transferred it using cuteftp to my tivo (ascii transfer) without opening the file. I've then telneted into tivo, gone into the hack directory and set the file permissions.
    No matter whether or not I use ./endpad.tcl 3 or /var/hack/endpad.tcl 3 I get the error message ": no such file or directory
    I've pulled the script back on to my PC, and it looks fine in notepad. I've also downloaded it again, and uploaded it using the dos ftp program - but always have the same problem.

    Can anyone see what I'm doing wrong? I've run plenty of scripts ok in the past...
     
  12. Oct 10, 2003 #72 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    Try as a binary transfer; it's a text file but its a Unix text file; maybe your FTP client garbles the CR/LF. This doesn't seem to matter for TCL files that are not executable, eg TiVoWeb modules, but breaks executable ones.
     
  13. Oct 10, 2003 #73 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    As it only runs 5 mins from the end of the recording, they'd have to be trying quite hard to do that. :)
     
  14. Oct 10, 2003 #74 of 1197
    ccwf

    ccwf 国際化 Member

    8,634
    0
    Dec 29, 2001
    Malibu
    Yes, it's an unlikely case and not really worth the bother. :)
     
  15. Oct 10, 2003 #75 of 1197
    Fozzie

    Fozzie New Member

    837
    0
    Sep 3, 2001
    Alton,...
    Have just checked my log and there seems to be a few instances for the first few hours or so of starting endpad, where padding wasn't added but I can't see why:

    e.g.

    Thu Oct 09 23:55:00 localtime 2003 : Recording in progress
    Thu Oct 09 23:55:00 localtime 2003 : Channel: UKST1
    Thu Oct 09 23:55:00 localtime 2003 : Programme: {Garden Rivals}
    Thu Oct 09 23:55:00 localtime 2003 : Scheduled End Time: Thu Oct 09 23:59:58 localtime 2003
    Thu Oct 09 23:55:00 localtime 2003 : Next Channel: DISC1
    Thu Oct 09 23:55:00 localtime 2003 : Next Programme: {Trauma: Life in the ER}
    Thu Oct 09 23:55:00 localtime 2003 : Next Scheduled Start Time: Fri Oct 10 00:30:00 localtime 2003
    Thu Oct 09 23:55:00 localtime 2003 : Can't add padding
    Thu Oct 09 23:55:00 localtime 2003 : Sleep until Fri Oct 10 00:55:00 localtime 2003

    Any idea why? It's several hours before it starts adding padding and behaving as expected.

    I've attached the logfile.
     

    Attached Files:

  16. Oct 10, 2003 #76 of 1197
    pahunt

    pahunt New Member

    1,719
    0
    Apr 7, 2003
    England
    I've just installed 1.01 but when I run

    /var/hack/endpad.tcl 5

    I get the following error

    wrong # args: should be "while test command"
    while compiling
    "while {$wait} { ..."
    ("while" body line 118)
    while compiling
    "while {$test} { ..."
    (file "/var/hack/endpad.tcl" line 99)
     
  17. Oct 10, 2003 #77 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    Looks like the file got corrupted there Paul, try uploading it to the TiVo again.
     
  18. Oct 10, 2003 #78 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    Could that programme already have hard padding on it?. It's the only thing I can think of as the releavny if statement is:

    if {($newstoptime < $nextstart || $nselectiontype == 6) && $padding > $existingpadding}

    and the log has printed the values of newstoptime and nextstart so the first bit is definitely TRUE; the only possibility is that the other part ($padding > $existingpadding) was FALSE.
     
  19. Oct 11, 2003 #79 of 1197
    pahunt

    pahunt New Member

    1,719
    0
    Apr 7, 2003
    England
    That did the trick. Thanks very much
     
  20. Oct 11, 2003 #80 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    Has anyone got any stability issues with their TiVos running EndPad?
     
Thread Status:
Not open for further replies.

Share This Page