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. Jan 14, 2004 #641 of 1197
    jonnydeath

    jonnydeath New Member

    21
    0
    Mar 2, 2002
    New Haven, CT
    thanks for your quick-reply.

    Is there anyway to hack your script so that if something has a begin or endtime +/- 1 minute to just change it? This would fix everything, and since it only removes time for recordings, it shoudn't mess anything up. (or will it?)

    In my lame psuedo-code:

    if($cstarttime % 60*60 == 59*60) // if starts at X:59
    set cnewstarttime [$cstarttime + 60] // start at X+1:00

    if($cendtime % 60*60 == 1*60) // if ends at X:01
    set cnewendtime [$cendtime - 60] // end at X:00

    This could either be an option or a second script. it would be great if it only does this if there is a conflict, bug beggers can't be choosers!!!

    Thanks again for your hard-work,
    Jon
     
  2. Jan 14, 2004 #642 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    No, because EndPad merely manipulates start and end times of items in the To Do List; in the case you describe TiVo will never schedule the clashing programme so it's not ever in the TDL!

    What you should be able to do is apply 2 mins of negative padding to the SP for the one which starts at the odd time (there's a thread in the Underground on negative padding), so it doesn't cause a clash. EndPad would then add the start of the programme back if there was no preceding show.
     
  3. Jan 20, 2004 #643 of 1197
    doubledrat

    doubledrat should know better

    208
    0
    Aug 24, 2001
    Attleborough...
    just bumping this up to where it should be - near the top ;)
     
  4. Jan 20, 2004 #644 of 1197
    racingclub

    racingclub New Member

    100
    0
    Oct 26, 2001
    mebbe needs sticky-fying?
     
  5. Jan 22, 2004 #645 of 1197
    bobones

    bobones New Member

    91
    0
    Jan 22, 2004
    I have no serial cable or network access for my tivo. Can I install the endpad hack just by inserting the hard disk on my PC, copying the endpad script to /var/hack and making the appropriate edits to the rc files? Are there any other prerequisites, for example, do I need to install tcl first?
     
  6. Jan 22, 2004 #646 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    You can indeed install it by taking your hard disk out and copying the files on, editing the startup script and setting the relevant file permissions. There are no prerequisites.

    However your only way to restart EndPad should it stop for some reason will be to reboot.
     
  7. Jan 22, 2004 #647 of 1197
    bobones

    bobones New Member

    91
    0
    Jan 22, 2004
    Thanks. If only I could get the bloody lid off!

    Would the easiest way for me to check that it's running be to schedule a manual recording, of say 10 minutes, then check that the duration of the actual recording is 10 + start pad + end pad minutes long?
     
  8. Jan 22, 2004 #648 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    It only adds the end padding right at the end. If you play an "EndPadded" recording while it is still recording, you will seen a green bar of the programme duration + the start padding until about 5 mins before the end.

    eg, I have it running on 1 min start and 2mins end, so a 1 hour programme with no clashes at either end has a green bar showing 1.01 for the first 55 mins, then 1.03 when it's done.

    If you check it with a manual recording, remember EndPad only wakes up every 30 mins if it's not expecting a new recording to start, so it will miss your manual recording if you set it to start too soon.
     
  9. Jan 22, 2004 #649 of 1197
    iankb

    iankb New Member

    6,468
    0
    Oct 9, 2000
    Reading, UK
    Just in case (since you don't say) ...

    I presume that you are going to boot into Linux, and not into Windows. Whatever you do, DON'T boot into Windows NT, 2000 or XP with your TiVo drive attached, since it will corrupt the drive.
     
  10. Jan 22, 2004 #650 of 1197
    bobones

    bobones New Member

    91
    0
    Jan 22, 2004
    Yes, I'm going to boot with Tiger's boot cd, do a backup, and then start hacking. Now I have discovered I can use my pronto serial cable, I'll set up a serial connection for testing and further hacks. Thanks for the advice.
     
  11. Jan 24, 2004 #651 of 1197
    Milhouse

    Milhouse New Member

    981
    0
    Sep 15, 2001
    South...
    Endpadding is running just fine on my UK SA! :)

    Suggestion:

    Would it be possible to have endpadding modify the recording quality? For instance I have suggestions enabled and have set my default recording quality to MEDIUM so that they don't take up too much space - but for my scheduled recordings (SP, Wishlists etc.) I record in BEST quality.

    Could endpad.tcl set the recording quality to BEST for all non-suggestion recordings at the same time it adds the start padding? Obviously this may not be to everyone's liking so it should be an optional feature... and could be extended to set different qualities according to genre (BEST only for Sport etc.)
     
  12. Jan 24, 2004 #652 of 1197
    dickuk

    dickuk New Member

    29
    0
    Apr 12, 2002
    Hertfordshire
    Stuart,

    I have installed endpad and the free space display on a friends tivo which has no turbonet, and the free space is working, but endpad isnt.

    Is there any way to look at the endpad.log file without removing the hard drive again? I have tried the backdoor log view but it isnt there.

    Thanks
     
  13. Jan 24, 2004 #653 of 1197
    ljb.designs

    ljb.designs New Member

    9
    0
    Dec 28, 2001
    midlands UK
    I have been trying to install endpad via serial the port using occitan's instructions
    I can't get it to work!
    I havn't use unix in over 10 years and am rusty
    can anybody help and what damage has been done so far
    the tivo is still working.
     
  14. Jan 24, 2004 #654 of 1197
    bobones

    bobones New Member

    91
    0
    Jan 22, 2004
    dickuk, unless you have set up the tivo to get a bash prompt over a serial cable (pronto cable works), you'll need to remove the disk again. Check execute permissions and that file has been transferred correctly. You could create a hard link from tvdebuglog to endpad.log (ln tvdebuglog endpad.log) to make the log viewable with the backdoor. I'd also change the start up line so that standard error is appended to endpad.log, e.g.:
    /var/hack/endpad.tcl 1 4 -auto >>/var/log/endpad.log 2>&1 &

    ljb.designs, need more detail of what you have done. Have you got a bash prompt and is it just endpad that doesn't work?
     
  15. Jan 24, 2004 #655 of 1197
    charliektm400exc

    charliektm400exc New Member

    20
    0
    Feb 25, 2003
    Hobart,...
    A couple of days ago, when I was changing the keep until date on a program, the TiVo locked up on the wait a short while screen. It maintained recording the program what was on at the time. I had to pull the plug to get it going again.

    Tonight, the machine locked up part way through a fast forward of a program. The fast forward continued on, but he remote wouldn't work. In addition the display showing how far through the program I was stopped at the fourteen minute mark. It didn't start recording a program it should have been recording. Again, I had to pull the plug to get it going.

    The only thing I have which is different, as far as I remember, from a standard oztivo 3.0 image is that I have endpad working, so I suspect that it's related.

    Has anybody else had this problem?
     
  16. Jan 24, 2004 #656 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    Not seen anything like that reported.

    If you get it again, please post the relevant sections of the EndPad log and the kernel log showing the crash, so you can see if there's a relation between them.

    My gut feel is that with 500-odd people using EndPad and no similar reports, that this is something else?
     
  17. Jan 24, 2004 #657 of 1197
    ljb.designs

    ljb.designs New Member

    9
    0
    Dec 28, 2001
    midlands UK
    bobones, after using occitan's instructions endpad does not work
    I don't get a bash prompt by just connecting the serial cable but can get it if I follow instruction at the beginning
     
  18. Jan 24, 2004 #658 of 1197
    bobones

    bobones New Member

    91
    0
    Jan 22, 2004
    Reading occitan's instructions, I think you can just go through the whole procedure again. The only commands that will fail are the "mkdir /var/hack" and "mkdir /var/newos" since those directories will now already exist.

    Make sure your sysinit.rc.author file has unix endlines, not dos ones. (Use the one I've attached to be sure). Upload with zmodem in binary mode.

    Make sure you run the chmod commands correctly, and pay attention to whether you need to mount /dev/hda4 or /dev/hda7.

    The one extra step I would do before powering off would be:

    umount /var/newos

    to make sure the copied files are fully flushed onto the disk. (This may be the cause of your problem).

    Once you've rebooted with the original boot parameters, you should get a bash prompt if all is well.

    I'd recommend that you install the "Joe" editor and other useful files for hacking so you can futher tune your tivo. See the hack faqs for details.
     

    Attached Files:

  19. Jan 24, 2004 #659 of 1197
    Milhouse

    Milhouse New Member

    981
    0
    Sep 15, 2001
    South...
    Is there a bug in endpad.tcl 1.3.3? Looking at the Tracking thread a "too many open files" error has been reported.

    Looking at endpad.tcl it appears it may have a resource leak at about line 433:

    Code:
    	set episodelist [open "$trackerdir/$seriestmsid" r]
    
    	while {![eof $episodelist]} {
    		if {[lindex [gets $episodelist] 0] == $episodetmsid} {
    			set isinlist 1
    		}
    	}
    	
    	set episodelist [open "$trackerdir/$seriestmsid" a]
    
    The second "open" is overwriting the stream identifier for the first file without closing it - would this account for the error eventually occurring? I'm no TCL expert but suspect the code should be modified as follows:

    Code:
    	close $episodelist
    	set episodelist [open "$trackerdir/$seriestmsid" a]
    

    By the way - any progress on the tracker project? :)
     
  20. Jan 25, 2004 #660 of 1197
    sanderton

    sanderton TiVoer since 11/2000

    6,341
    0
    Jan 4, 2002
    Yes, there she blows - a cut and paste error from the development code which closed the file!

    I've got a couple of minor bug fixes to test up.

    Tracker is still on the back burner while I work on a "shared Now Playing between networked TiVos" hack.
     
Thread Status:
Not open for further replies.

Share This Page