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. Mar 11, 2004 #701 of 1197
    dave h-j

    dave h-j Clumsy Member

    44
    0
    Oct 9, 2002
    My endpad had also died today. couldnt find it on a ps, so ran the -stop argument. It complained of having a stale pid file and deleted it.

    I started it up again and it seems to be running. endpad.err was blank (date stamped back in February)..

    Thursday 10:25:01 : Next start padding setting due 12:52
    Thursday 10:25:01 : Next wake up will be 10:55
    Sleeping, checking every minute for kill signal............................Thursday 13:24:59 :
    Thursday 13:24:59 : endpad.tcl 1.3.3 log file, starting up
    Thursday 13:24:59 : Start padding set to 120 seconds
    Thursday 13:24:59 : End padding set to 120 seconds
    Thursday 13:25:01 : Woken up
     
  2. Mar 11, 2004 #702 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
  3. Mar 11, 2004 #703 of 1197
    Dunkwho

    Dunkwho New Member

    135
    0
    Apr 17, 2002
    Here we are ... managed to remember the hoops I need to jump to just to get ftp running ... grrr :(

    This is the 2nd time endpad has stopped working ... grateful for any info .
     

    Attached Files:

  4. Mar 11, 2004 #704 of 1197
    gl9500

    gl9500 Member

    43
    0
    Jul 15, 2003
    chicago
    Stuart, (et. al.)

    I believe this situation described in this post is the same "bug" that I stumbled across...

    http://www.tivocommunity.com/tivo-vb/showthread.php?postid=1798463#post1798463

    It is because we are using US Tivo software version 3.x and selectionType's are different for version3. I've hardcoded my endpad.tcl to correctly check in version3...

    Code:
    set cselectiontype [dbobj [dbobj $crec get RecordingBehavior] get PresentationBehavior]
    ...
    set nselectiontype [dbobj [dbobj $nrec get RecordingBehavior] get PresentationBehavior]
    
     
  5. Mar 11, 2004 #705 of 1197
    gl9500

    gl9500 Member

    43
    0
    Jul 15, 2003
    chicago
    I've also hacked Stuart's endpad 1.3.3 to "stop" suggestions recording where it would interfere w/ adding startpadding to a "real" recording.

    here're the mods to make in v1.3.3 endpad.tcl

    after the first line, add these...

    Code:
    source $tcl_library/tv/sendkey.tcl
    # disable keyname echoing to controling tty
    set verboseSendKeyG 0
    

    then find the first and last line of this next mod and insert...


    Code:
          # if there's a "real" recoding going on we need to see if there is space a
    vailable
    
          ## supposed to stop a suggestion rec... (works for my tivo, US version3.x, YMMV)
          ## if can add startpad to next "real" rec
          if {$isrec == 1 && $cselectiontype == 6 && $nselectiontype != 6} {
            puts $logchan "[clock format [clock seconds] -format $datestamp] : current recording is a SUGGESTION $ctitle"
            ## stop suggestion recording
            SendKey livetv
            after 2000
            SendKey clear
            after 2000
            SendKey enter
            after 2000
            #
            set isrec 0
          }
    
          if {$isrec == 1} {
    

    As you can see, it "stops" the suggestion recording by changing channels (flipping to previous channel). This should work under most circumstances. One side-effect is, if your Tivo is in Standby mode, it will not be after this code runs. And just about the only time the "previous" channel won't be available is immediately after a Restart.

    Works for me, YMMV.
     
  6. Mar 11, 2004 #706 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002

    Hmm. The syntax error reported in the error log is not there in my copy of 1.3.3 - I can only think that the endpad.tcl file has somehow become corrupted. Re-install it.
     
  7. Mar 12, 2004 #707 of 1197
    Dunkwho

    Dunkwho New Member

    135
    0
    Apr 17, 2002
    ahem ... 1.2.6 on my machine ... updated now, thanks!
     
  8. Mar 12, 2004 #708 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    Aha. That will also cure the other errors listed in your log file (or rather, EndPad will recover from them instead of just stopping).
     
  9. Mar 13, 2004 #709 of 1197
    Milhouse

    Milhouse New Member

    981
    0
    Sep 15, 2001
    South...
    A small modification to Endpad 1.3.3....

    Endpad 1.3.4 will change the recording quality of Suggested recordings to the quality level specified by a configurable option (suggestionRecQuality). I find this useful as now I can set my default recording quality to Best and thanks to Endpad 1.3.4 my suggested recordings will record at Medium.

    If you specify a setting of -1 then Endpad 1.3.4 will behave identically to 1.3.3 - ie. no change of recording quality for Suggestions.

    The default recording quality for Suggestions is Medium.

    Edit: Attachment removed, now available from first post in this thread (thanks Stuart!) :)
     
  10. Mar 13, 2004 #710 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    I've incorpoporated the code into 1.3.4 in the top post.

    Please only post the mods you make, not complete versions - with so many people using EndPad (?1000) I'm trying to keep version control reasonably tight.

    Thanks for the mod though.
     
  11. Mar 13, 2004 #711 of 1197
    Fozzie

    Fozzie New Member

    837
    0
    Sep 3, 2001
    Alton,...
    Stuart,

    You left this line in 1.3.4:

    puts $logchan "[clock format [clock seconds] -format $datestamp] : endpad.tcl 1.3.3 log file, starting up"
     
  12. Mar 13, 2004 #712 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    D'oh. I'm alwayss doing that. My later hacks have a variable right at the top to change all references!
     
  13. Mar 14, 2004 #713 of 1197
    Mike Laskey

    Mike Laskey New Member

    43
    0
    May 9, 2002
    Stuart,

    Just wanted to add my thanks to you for the endpad extension. My Tivo is now recording 2 minutes of pre-padding and 5 minutes of end padding. I've no idea why Tivo didn't do this themselves!

    Mike.
     
  14. Mar 21, 2004 #714 of 1197
    jasch

    jasch New Member

    310
    0
    Jun 8, 2001
    Sanderton, great work and a great idea! Altough I think I found a bug with two tuners...

    If there is nothing recording at the same time on the other tuner, the recording get's softwadded perfectly... but if the other tuner is recording whatever, the softpaddin does not occur.

    For example, I record a program every day at 7:30am. The recording is normally 32 minutes (1 minute of before and after padding).

    Yesterday I was recording a movie on the other tuner from 7am -> 9am. The 7:30 recording did not get softpadded, even tough it could have been, since the 1st tuner was not being used...

    I was using 1.3.3, I just upgradedd to 1.3.4, but I don't think this problem has been solved.

    Thanks again, and keep the great work.
     
  15. Mar 22, 2004 #715 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    For a two tuner machine, falconx has added full two tuner support; you can find his version on Deal Database.
     
  16. Mar 24, 2004 #716 of 1197
    Fletch

    Fletch New Member

    189
    0
    May 27, 2001
    Huntington...
    I just started testing the latest version (1.3.4) on a Series 1 SA and had the following occur:

    The following were in the TDL:
    Show 1, 4-4:30PM, SP
    Show 2, 4:30-5PM, SP
    Show 3, 5-5:30PM, Sugg

    endpad is running with start=5 and end=15

    The result (verified by the endpad loffile):
    Show 1 was start padded and Show 3 was endpadded. Shouldn't the suggestion have been deleted to allow for end padding of Show 2?
     
  17. Mar 24, 2004 #717 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    Yes. Could you post the actual log?

    What version of the TiVo software are you using?
     
  18. Mar 24, 2004 #718 of 1197
    Fletch

    Fletch New Member

    189
    0
    May 27, 2001
    Huntington...
    Thanks for your help.

    TiVo Information:
    Code:
    Current Channel
    Channel:	301 TV Land
    Program:	Love Boat
    Episode:	April's Love; Happy Ending; We Three
    Description:	April returns with her fiance; two writers decide to finish their marriage with their script; a girl unknowingly befriends her father.
    Recording Status:	Not Recording
    TiVo Box Information
    Current Temperature:	38C
    Software System:	3.0-01-1-010
    Remote Address	1
    Uptime	12d 23h 52m 45s
    Kernel Information
    
    Version 2.1.24-TiVo-2.5
    Compile #8 Wed May 8 15:38:27 PDT 2002
    
    Memory Information
    
    Memory Statistics:
            total:    used:    free:  shared: buffers:  cached:
    Mem:  14278656 14114816   163840 68431872    77824  3923968
    Swap: 133165056  7598080 125566976
    MemTotal:     13944 kB
    MemFree:        160 kB
    MemShared:    66828 kB
    Buffers:         76 kB
    Cached:        3832 kB
    SwapTotal:   130044 kB
    SwapFree:    122624 kB
    
    Space Used - 123839 MB
    Expired Suggestion 	16 	45393 MB 	36.7% 	17:31:57
    Single 	1 	1294 MB 	1.0% 	0:30:00
    Season Pass 	1 	1512 MB 	1.2% 	0:35:01
    Suggestion 	28 	72596 MB 	58.6% 	28:00:52
    Invisible 	1 	72 MB 	0.1% 	0:21:00
    Live Cache 	1 	1632 MB 	1.3% 	0:38:17
    Total 	48 	122499 MB 	98.9% 	47:37:07
    Relevant portion of logs:
    Code:
    Sleeping, checking every minute for kill signal...............................
    Wednesday 03:24:00 : Woken up
    Wednesday 03:24:00 : Recording {Screech Owls} on DCKIDS now
    Wednesday 03:24:00 : Recording Scheduled End Time: 03:30
    Wednesday 03:24:00 : Next recording is Nightcap on MOMAX at 04:00
    Wednesday 03:24:00 : No episode tracking done at this time
    Wednesday 03:24:00 : Not time to add end padding yet
    Wednesday 03:24:00 : Next end padding setting due 03:25
    Wednesday 03:24:00 : Not time to add start padding yet
    Wednesday 03:24:00 : Next start padding setting due 03:54
    Wednesday 03:24:00 : Next wake up will be 03:25
    Sleeping, checking every minute for kill signal..
    Wednesday 03:25:00 : Woken up
    Wednesday 03:25:00 : Recording {Screech Owls} on DCKIDS now
    Wednesday 03:25:00 : Recording Scheduled End Time: 03:30
    Wednesday 03:25:00 : Next recording is Nightcap on MOMAX at 04:00
    Wednesday 03:25:00 : No episode tracking done at this time
    Wednesday 03:25:00 : Added 900 seconds end padding to {Screech Owls}
    Wednesday 03:25:00 : Next end padding setting due 04:25
    Wednesday 03:25:00 : Not time to add start padding yet
    Wednesday 03:25:00 : Next start padding setting due 03:54
    Wednesday 03:25:00 : Next wake up will be 03:54
    Sleeping, checking every minute for kill signal..............................
    Wednesday 03:54:00 : Woken up
    Wednesday 03:54:00 : No recording in progress
    Wednesday 03:54:00 : Next recording is Nightcap on MOMAX at 04:00
    Wednesday 03:54:00 : No episode tracking done at this time
    Wednesday 03:54:00 : No end padding required:
    Wednesday 03:54:00 : No recording in progress
    Wednesday 03:54:00 : Next end padding setting due 04:25
    Wednesday 03:54:00 : Added 300 seconds start padding to Nightcap
    Wednesday 03:54:00 : Next start padding setting due 04:25
    Wednesday 03:54:00 : Next wake up will be 04:24
    Sleeping, checking every minute for kill signal...............................
    Wednesday 04:24:00 : Woken up
    Wednesday 04:24:00 : Recording Nightcap on MOMAX now
    Wednesday 04:24:00 : Recording Scheduled End Time: 04:30
    Wednesday 04:24:00 : Next recording is Nightcap on MOMAX at 04:30
    Wednesday 04:24:00 : No episode tracking done at this time
    Wednesday 04:24:00 : Can't add end padding to Nightcap
    Wednesday 04:24:00 : Gap is 0 seconds
    Wednesday 04:24:00 : Next end padding setting due 04:25
    Wednesday 04:24:00 : Can't add start padding to Nightcap
    Wednesday 04:24:00 : Gap is only 0 seconds
    Wednesday 04:24:00 : Next start padding setting due 04:25
    Wednesday 04:24:00 : Next wake up will be 04:25
    Sleeping, checking every minute for kill signal..
    Wednesday 04:25:00 : Woken up
    Wednesday 04:25:00 : Recording Nightcap on MOMAX now
    Wednesday 04:25:00 : Recording Scheduled End Time: 04:30
    Wednesday 04:25:00 : Next recording is Nightcap on MOMAX at 04:30
    Wednesday 04:25:00 : No episode tracking done at this time
    Wednesday 04:25:00 : Can't add end padding to Nightcap
    Wednesday 04:25:00 : Gap is 0 seconds
    Wednesday 04:25:00 : Next end padding setting due 04:55
    Wednesday 04:25:00 : Can't add start padding to Nightcap
    Wednesday 04:25:00 : Gap is only 0 seconds
    Wednesday 04:25:01 : Next start padding setting due 04:55
    Wednesday 04:25:01 : Next wake up will be 04:55
    Sleeping, checking every minute for kill signal...............................
    Wednesday 04:55:00 : Woken up
    Wednesday 04:55:00 : Recording Nightcap on MOMAX now
    Wednesday 04:55:00 : Recording Scheduled End Time: 05:00
    Wednesday 04:55:00 : Next recording is M*A*S*H on HALMRK at 05:00
    Wednesday 04:55:00 : No episode tracking done at this time
    Wednesday 04:55:00 : Can't add end padding to Nightcap
    Wednesday 04:55:00 : Gap is 0 seconds
    Wednesday 04:55:00 : Next end padding setting due 05:25
    Wednesday 04:55:00 : Can't add start padding to M*A*S*H
    Wednesday 04:55:00 : Gap is only 0 seconds
    Wednesday 04:55:00 : Next start padding setting due 05:25
    Wednesday 04:55:00 : Next wake up will be 05:25
    Sleeping, checking every minute for kill signal...............................
    Wednesday 05:25:00 : Woken up
    Wednesday 05:25:00 : Recording M*A*S*H on HALMRK now
    Wednesday 05:25:00 : Recording Scheduled End Time: 05:30
    Wednesday 05:25:00 : Next recording is Friends on KTLA at 07:00
    Wednesday 05:25:00 : No episode tracking done at this time
    Wednesday 05:25:00 : Added 900 seconds end padding to M*A*S*H
    Wednesday 05:25:00 : Next end padding setting due 07:25
    Wednesday 05:25:00 : Not time to add start padding yet
    Wednesday 05:25:00 : Next start padding setting due 06:54
    Wednesday 05:25:00 : Next wake up will be 05:55
    Sleeping, checking every minute for kill signal............................... 
     
  19. Mar 24, 2004 #719 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    And MASH was a suggestion?

    Can you use TiVoweb to extract the data about it:

    Find the episode details from Now Showing (or Recording history if you've deleted it), change the word showing to object in the URL, eg:

    http://xxx.xxx.xxx.xxx/showing/688505/11

    to

    http://xxx.xxx.xxx.xxx/object/688505/11

    there should be a link named "IndexusedBy", follow it and cut and paste the page of data here. Thanks!
     
  20. Mar 24, 2004 #720 of 1197
    Fletch

    Fletch New Member

    189
    0
    May 27, 2001
    Huntington...
    Yes.

    From http://tivo.lan/object/3223321/10:
    Code:
    Recording 3223321/10 {
      Version        = 28
      BitRate        = 0
      ExpirationDate = 12506
      ExpirationTime = 18000
      ProgramSource  = 1388534/-1
      RecordingBehavior = 3223321/12
      Score          = 0
      SelectionType  = 3
      Showing        = 3223321/11
      SubPriority    = 268632575
      UsedBy         = 1
      StartDate      = 12501
      StartTime      = 17999
      EndPadding     = 900
      ActualShowing  = 3223321/14 3223321/18
      Part           = 3223321/13 3223321/15 3223321/16 3223321/17 3223321/19
      StopDate       = 12501
      StopTime       = 20701
      State          = 4
      DeletionDate   = 24855
      StreamFileSize = 1990656
      IndexUsed      = 3223321/11 3223321/12
      IndexPath      = /Recording/Active/1:12501:17999:3223321 /Recording/NoReRecord/99465:1:99999:03223321 
    /Recording/SeasonPass/01388534/87498:81999:3223321 /Recording/TmsId/EP0027100076:87498:82000:3223321 
    /Recording/NowShowingByClassic/6:87498:82000:3223321 /Recording/NowShowingByExpiration/5:12506:18000:3223321 
    /Recording/NowShowingByTitle/1:MASH:87498:82000:3223321 /Recording/DiskUsed/10/3223321:1990656
    }
     
Thread Status:
Not open for further replies.

Share This Page