Automatic SkipMode Project Proposal

Discussion in 'TiVo Coffee House - TiVo Discussion' started by RoamioJeff, Mar 6, 2016.

  1. BrettStah

    BrettStah Well-Known Member

    33,693
    6,520
    Nov 12, 2000
    San Antonio

    Advertisements

    Great! Once again, this is a terrific program. My plan is to schedule it at 3AM daily. We usually have enough stuff to watch that's at least one day old that we don't watch things the night it airs, so I think this will be fine for us.
     
  2. Connor

    Connor Member

    39
    0
    Oct 12, 2002
    So, I have a question. If I run the -s command while I have another instance of kmmtg already running, do I have to restart the main instance or will it pickup the changes? If I don't have to restart the main instance, then I can setup some stuff to have Echo run the command for me.

    2nd Question, Do we have to do anything for TiVo Mini's ?
     
  3. moyekj

    moyekj Well-Known Member

    12,324
    958
    Jan 23, 2006
    Mission...
    The Skip Data will be there, so if you use "z" to play in AutoSkip mode in GUI or run AutoSkip Service it will work in the GUI without any updates. However, the NPL won't show an "S" for shows added in background until you refresh the NPL list in the GUI.

    AutoSkip works fine on a Mini when playing any show that has AutoSkip data. You only run the background AutoSkip from SkipMode for non Mini series 5 or later TiVos that support SkipMode.
     
  4. TivoJD

    TivoJD Active Member

    414
    92
    Feb 7, 2005
    Polk Co,...
    Something I just noticed, the AutoSkip doesn't work in Quickmode. You have to drop out of quickmode before it will skip.
     
  5. moyekj

    moyekj Well-Known Member

    12,324
    958
    Jan 23, 2006
    Mission...

    Advertisements

    Yup, that's as designed. It will only auto skip when play speed == 1. So you will note if you FF/REW into commercials it won't skip either until you return to normal play speed.
     
  6. TivoJD

    TivoJD Active Member

    414
    92
    Feb 7, 2005
    Polk Co,...
    ahh, didn't think about the FF/REW, that would be annoying!
     
  7. BrettStah

    BrettStah Well-Known Member

    33,693
    6,520
    Nov 12, 2000
    San Antonio
    I can test it later but I'm curious how skip mode works when you've padded a recording (for example, SNL sometimes starts a little early so I pad that by a minute, and when there's a football game on earlier I'll pad 60 Minutes, Elementary, etc.)
     
  8. mrizzo80

    mrizzo80 Well-Known Member

    3,272
    594
    Apr 16, 2012
    I pad 60 Minutes 30 minutes during football season. SM works fine.

    ETA: forget this is the kmttg thread. AutoSkip works fine in this scenario, too.
     
  9. Dan203

    Dan203 Super Moderator Staff Member TCF Club

    54,944
    7,736
    Apr 17, 2000
    Nevada
    SkipMode works by aligning itself to the captions, so as long as enough the captions line up the skip points will work. It usually only fails if there is some sort of corruption that effects the captions.
     
  10. moyekj

    moyekj Well-Known Member

    12,324
    958
    Jan 23, 2006
    Mission...
    v2.2i version of kmttg is now released.

    Contains ability to run AutoSkip service as a background task without needing to run the kmttg GUI. Also has a fix for "AutoSkip from SkipMode - ALL" hanging up the GUI after 1st show processed.
     
  11. Connor

    Connor Member

    39
    0
    Oct 12, 2002
    Works great on my Ubuntu desktop.. But when I try to run on my Raspberry Pi (No X running, using the -k all command) I get the following..

    Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "main"
    Shutdown hook executing

    Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "Thread-0"

    Running jdk-8-oracle-arm32-vfp-hflt
     
  12. moyekj

    moyekj Well-Known Member

    12,324
    958
    Jan 23, 2006
    Mission...
    Whatever Java you use needs to have JavaFX. I doubt the Rasberry Pi Java has that.
     
  13. Connor

    Connor Member

    39
    0
    Oct 12, 2002
    I found some compiled JavaFX libs and installed them. Looks like that did it. Now the raspberry Pi is doing everything.
     
  14. mrizzo80

    mrizzo80 Well-Known Member

    3,272
    594
    Apr 16, 2012
    Any idea what causes these types of errors?

    1st attempt (in a block of 6 shows using the -W command; 4 worked/2 failed/1 error log output listed below):
    Living Room: Scanning SkipMode cut points for 'Life in Pieces - Dinner Professor Steps Lesbian'

    rpc Read error - Invalid Padding length: 112

    rpc Auth error - null

    2nd attempt (in a block of 2 shows that previously failed above - the other failed show worked in this attempt):
    Living Room: Scanning SkipMode cut points for 'Life in Pieces - Dinner Professor Steps Lesbian'

    rpc Read error - Invalid Padding length: 232

    rpc Auth error - null

    3rd attempt (only 1 show it had to process; finished successfully):
    Living Room: Scanning SkipMode cut points for 'Life in Pieces - Dinner Professor Steps Lesbian'

    0: start=00:00:09.809 end=00:11:04.163

    1: start=00:12:56.041 end=00:16:53.211

    2: start=00:21:09.268 end=00:25:44.476

    3: start=00:28:13.792 end=00:30:08.573

    Saving AutoSkip entry: Life in Pieces - Dinner Professor Steps Lesbian
     
  15. moyekj

    moyekj Well-Known Member

    12,324
    958
    Jan 23, 2006
    Mission...
    Sounds like LAN networking issues to me because of such messages: "rpc Read error - Invalid Padding length: #"
    i.e. Sounds like packets being dropped
    What kind of network is between the TiVo and the kmttg host?
     
  16. mrizzo80

    mrizzo80 Well-Known Member

    3,272
    594
    Apr 16, 2012
    Thanks for the response.

    6 year old cheap laptop with a 2.4ghz wireless N card --> newish AC router --> Roamio Plus (2.4ghz wireless N; TiVo diagnostics screen says 70% signal)

    I wonder if I can run a continuous DOS ping to the TiVo like I can against a Windows machine to test for dropped packets.

    I'll flip the TiVo over to my 5ghz network. It used to be setup that way but I switched it to 2.4ghz for a reason I can't remember - maybe to troubleshoot the Mini not working.
     
  17. slowbiscuit

    slowbiscuit FUBAR

    4,686
    628
    Sep 19, 2006
    In the ATL
    Hey Kev, looks like the background AutoSkip service might not work for a Tivo after it reboots? I've got a couple of Minis that I've had to reboot for YouTube app lockups and AutoSkip no longer works after. Have to restart the background kmttg task.
     
  18. moyekj

    moyekj Well-Known Member

    12,324
    958
    Jan 23, 2006
    Mission...
    Yes it makes sense, if the communication between kmttg and TiVo is interrupted too long it probably becomes a fatal error that may stop service from working for any of the TiVos. You'd have to run service in GUI mode and reboot a Mini to see what kind of errors you get - something I haven't experimented with. I have a Windows Task to run service in background mode that I just run manually at night before I start watching anything, and then just manually stop it after I'm done watching, so I don't leave the service running permanently.
     
  19. BrettStah

    BrettStah Well-Known Member

    33,693
    6,520
    Nov 12, 2000
    San Antonio
    So is it possible to have kmttg automatically retry to connect to a TiVo after a network outage (let's say my router is restarted). The automatic SkipMode service is still running after that happens but it has lost contact with the TiVo, so automatic skipping doesn't work until and unless I close kmttg and reopen it. Maybe some configurable number of seconds or minutes in the config, for it to retry to connect?
     
    slowbiscuit and BRiT wtfdotcom like this.
  20. moyekj

    moyekj Well-Known Member

    12,324
    958
    Jan 23, 2006
    Mission...
    For next release the handling is a little more graceful when failing to connect to a TiVo from AutoSkip service. In GUI mode the service will be disabled for that TiVo, but you can keep using GUI as normal and re-start the service manually. In batch mode the service will stop running. I didn't find a good way to keep attempting to re-establish communication with a TiVo once it stops responding.
     

Share This Page

spam firewall

Advertisements