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

New program for 1 step TTG downloads, decryption, encoding - kmttg

Discussion in 'TiVo Home Media Features & TiVoToGo' started by moyekj, Mar 15, 2008.

  1. Jan 12, 2014 #6301 of 10413
    reneg

    reneg Member

    699
    0
    Jun 19, 2002
    Try setting "Edit without Audio" in VideoRedo -> Tools -> Options -> Playback Devices.

    My Playback Devices settings are attached.

    [​IMG]
     

    Attached Files:

  2. Jan 12, 2014 #6302 of 10413
    murgatroyd

    murgatroyd Don't stop believin'

    25,395
    0
    Jan 5, 2002
    Berkeley CA
    I have two distinct 3-hour recordings from NBC sports yesterday.

    Both are Figure Skating with an episode title of "US Championships".

    Unlike last year, the separate events aren't included in the episode titles or descriptions. Nor do I see an episode number.

    How can I transfer the second recording without clobbering the first one?

    1. the brute force way (move recording #1 to its own directory
    2. rename the first recording (optimal, since I need to do that anyway)
    3. some other solution I'm too asleep to think of now?

    Pointers to where this has already been discussed would be welcome.
     
  3. Jan 12, 2014 #6303 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
  4. Jan 12, 2014 #6304 of 10413
    murgatroyd

    murgatroyd Don't stop believin'

    25,395
    0
    Jan 5, 2002
    Berkeley CA
    Thanks! That'll work nicely.
     
  5. Jan 12, 2014 #6305 of 10413
    wireman121

    wireman121 Member

    126
    0
    Nov 8, 2008
    My thought on it was, if you have auto transfers already set up, and since kmttg is already refreshing the NPL on a timed basis for that, having it keep track of what was requested to be pushed, and the status of it (from the blue icon would be the easiest way) or from an extra few characters added to the meta file which kmttg would look for, would be a way to determine if the push was successful and if so, delete the source files.

    I would see this as the final missing piece to making kmttg pretty automated without need for user interaction when cutting commercials and pushing them back.
     
  6. Jan 15, 2014 #6306 of 10413
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,736
    8
    Apr 6, 2000
    SF Bay Area
    Here is a captured pic of KMTTG of its downloading 2 files at once when I specifically set the "1 download at a time" option.
    [​IMG]
     

    Attached Files:

  7. Jan 15, 2014 #6307 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    Steps to reproduce?
     
  8. Jan 15, 2014 #6308 of 10413
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,736
    8
    Apr 6, 2000
    SF Bay Area
    All I did was to start downloads on 1 Tivo then the other, I think the dual downloads started after the first was complete. (I had started 2 on each.)
     
  9. Jan 16, 2014 #6309 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    I can't seem to reproduce. I turned on the option, then started 2 transfers from my Roamio and then queued up 2 from my Premiere and watched and only had 1 download at a time. I guess I can go looking in the code but would be much easier if there was an easily reproducible sequence.
     
  10. Jan 16, 2014 #6310 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    Nothing obvious in the code, and it's pretty simple so not sure what could go wrong. Here's the relevant code deciding on whether to launch a queued up job (continue at end in this context means break out of loop and don't launch the job).
    Code:
       private static Boolean isDownloadJob(jobData job) {
          return (job.type.equals("download") ||
                  job.type.equals("javadownload") ||
                  job.type.equals("download_decrypt") ||
                  job.type.equals("jdownload_decrypt") ||
                  job.type.equals("metadata"));
       }
    ...
          int totalDownloads = 0;
          for (int i=0; i<running.size(); i++) {
             job = running.get(i);
             if (isDownloadJob(job))
                totalDownloads++;
                ...
             
             // If single_download option is set only allow 1 download at a time
             if (isDownloadJob(job) && config.single_download == 1 && totalDownloads >= 1)
                continue;
    
    Only thing I can think of is possibly, depending on very precise timing, 2 or more download jobs can be started before their status changes to "running". When you see 2 or more downloads are they always starting at almost identical times? I'll have to look at code more closely to account for that scenario if not already...
     
  11. Jan 16, 2014 #6311 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    I'm able to reproduce the problem now. It can happen if you select multiple titles at once for a TiVo and then click START. It is related to timing as suspected. If you individually select 1 title at a time and click START then it won't happen. I think I know how to resolve it for next release.
     
  12. Jan 16, 2014 #6312 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    2 line fix is checked in for next release for this issue.
     
  13. Jan 17, 2014 #6313 of 10413
    danthom1704

    danthom1704 New Member

    1
    0
    Jan 27, 2005
    Is there any way to see what's going on with the mind.tivo.com server? My pushes seem to be going through, no errors. But nothing gets sent to the tivo.

    Thanks
     
  14. Jan 17, 2014 #6314 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    Not that I'm aware of. pyTivo has never added that functionality AFAIK which is why I added it in kmttg for a while (until it stopped working). Quick thing to check is if you are pushing to a machine that is part of a TiVo beta then you need to use alternate TiVo push server in pyTivo server, or vice versa if you are setup for staging server vs production server.
     
  15. Jan 17, 2014 #6315 of 10413
    gonzotek

    gonzotek tivo_xml developer

    2,404
    3
    Sep 24, 2004
    Outside...
    Also Australian TiVos have a different mind server as well(symind.tivo.com:8181).
     
  16. Jan 19, 2014 #6316 of 10413
    Joe Siegler

    Joe Siegler New Member

    780
    0
    May 10, 2000
    Garland, TX
    Question about metadata files. Might be a stupid question, but I'm venturing into an area I've not messed with before.

    In the past I've kept the actual .TiVo files from my TiVos on my computer's archive of programs. Giving some thought to changing that and decrypting/adcut to save space. To that, I'll need the metadata files, obviously if I want to keep program info in there.

    The Q is this.. Is there any way of re-integrating that data back into the video file, or do I have to leave the .txt/metadata files sit on the HD with the video file for good? I prefer a cleaner HD than that, so I was wondering about reintegration of the metadata info. Tkx.

    Also, I've tried taking .TiVo files already on my computer and using kmttg to decrypt/adcut, which works, except when I do that, it never creates a metadata file - I always get an error doing that. Any ideas why?
     
  17. Jan 19, 2014 #6317 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    If you have VideoRedo you can edit out commercials and save as .TiVo files (independent of kmttg) so that metadata remains intact within video file.

    For kmttg, creating pyTivo metadata files from .TiVo files should work, so if you are getting errors I would have to see all the messages in message window for a failing case to comment further.
     
  18. Jan 19, 2014 #6318 of 10413
    dearing

    dearing New Member

    23
    0
    Jan 31, 2007
    Please forgive me if this is a repost. I did search for some of the relevant strings in this thread before posting...

    I'm running v1p0l and Java 1.7.0_45-b18. As soon as I updated java, I started getting the below error in the log window (bottom pane) when kmttg starts. Is there something I need to change in jre\lib\security or something like that?

    Thanks for any help.

    >> Getting Now Playing List from Premiere ...
    https://192.168.15.3/TiVoConnect?Co...tainer=/NowPlaying&Recurse=Yes&AnchorOffset=0
    java.lang.NoSuchMethodError: sun.security.internal.spec.TlsRsaPremasterSecretParameterSpec.getEncodedSecret()[B
    at com.sun.crypto.provider.TlsRsaPremasterSecretGenerator.engineGenerateKey(TlsRsaPremasterSecretGenerator.java:75)
    at javax.crypto.KeyGenerator.generateKey(KeyGenerator.java:530)
    at sun.security.ssl.RSAClientKeyExchange.<init>(Unknown Source)
    at sun.security.ssl.ClientHandshaker.serverHelloDone(Unknown Source)
    at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
    at sun.security.ssl.Handshaker.processLoop(Unknown Source)
    at sun.security.ssl.Handshaker.process_record(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
    at com.tivo.kmttg.main.http.noCookieInputStream(http.java:86)
    at com.tivo.kmttg.main.http.download(http.java:169)
    at com.tivo.kmttg.task.javaNowPlaying$1.run(javaNowPlaying.java:104)
    at java.lang.Thread.run(Unknown Source)

     
  19. Jan 19, 2014 #6319 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    Sounds like Java may be messing with security stuff again and not being backwards compatible. In kmttg config->Program Options turn off Java downloads to workaround it for now, or don't use latest version of Java.
     
  20. Jan 20, 2014 #6320 of 10413
    mattack

    mattack Active Member

    20,743
    4
    Apr 9, 2001
    sunnyvale
    I can reproducibly get a

    java.lang.ArrayIndexOutOfBoundsException

    It seems like it happens when the very first item in the list is a folder. Click on it, which opens the folder, then any item in the folder you click on will get that..
    After that, you can successfully click on any item in the folder.

    But going out and back in reproduces the problem again, of course.
     

Share This Page