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. Apr 6, 2010 #2161 of 10412
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    VRD is popping up a message indicating: "Mpeg stream error: TiVo file open error, please check your media access key." when I use kmttg GUI.

    The MAK entered in kmttg is the exact MAK found on tivo.com (actually copy/pasted from the site into kmttg), and is the exact MAK found on my DVRs.

    I'm at a loss... The only thing I can think of that changed is unchecking kmttg's option to force TS download when available, due to the problems TS streams cause. Any other suggestions?

    Edit: Actually, another change I just discovered was the option to have VRD decrypt instead of TiVodecode. I disabled that option, and will test further...
     
  2. Apr 7, 2010 #2162 of 10412
    VideoGrabber

    VideoGrabber New Member

    114
    0
    Sep 11, 2003
    Thanks very much. It looks like that did the trick. I take it I missed the memo on that change. (It's too bad that tivodecode isn't quite there yet on TS format, but good to know that the new TD codec does the job.)

    TS transfer speeds (TTG) are very impressive indeed, on the new Premiere's. I managed to do a solid 48 MBit/s TTG(ts), while simultaneously doing an MRV from my S3 at 39 MBit/s, for an aggregated total of 87 MBit/s. Running an isolated TTG/ts yields 70+ MBit/s. Awesome!
     
  3. Apr 7, 2010 #2163 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    That implies that TiVoDirectShowFilter (part of TiVo Desktop installation) is not being found properly to decrypt TiVo files. You can check that by trying to play TiVo file with Windows Media Player. If you use tivodecode to decrypt instead then you don't need TiVoDirectShowFilter so can bypass the problem.
     
  4. Apr 7, 2010 #2164 of 10412
    VideoGrabber

    VideoGrabber New Member

    114
    0
    Sep 11, 2003
    Thanks for the link! I was wondering how I missed that, and it's because it's an Alpha, not a Beta. And in the public Forum and not the private one. Doh.
     
  5. Apr 7, 2010 #2165 of 10412
    wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    Hmm. Perhaps we should consider changing the extension?
     
  6. Apr 7, 2010 #2166 of 10412
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    How about .meta? VLC player does the same thing when finding video.file.txt...
     
  7. Apr 7, 2010 #2167 of 10412
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    Thanks K -
    It seems I've uninstalled TD+ on that machine. TiVo corp. wouldn't support running their app on Windows Server 2003.

    I'm still testing tivodecode & VRD. And I can't win for losing (tonight):

    Code:
    2010_04_07_01:48:57 >> DECRYPTING F:\FromTivo\V\-Pound of Flesh.TiVo ...
    2010_04_07_01:48:57 "C:\Program Files\kmttg\tivodecode\tivodecode.exe" --mak MAK --out "F:\FromTivo\V\-Pound of Flesh.mpg" "F:\FromTivo\V\-Pound of Flesh.TiVo" 
    2010_04_07_01:48:59 ERROR: tivodecode failed (exit code: 10 ) - check command: "C:\Program Files\kmttg\tivodecode\tivodecode.exe" --mak MAK --out "F:\FromTivo\V\-Pound of Flesh.mpg" "F:\FromTivo\V\-Pound of Flesh.TiVo" 
    2010_04_07_01:48:59 ERROR: processing frame: No error
    2010_04_07_01:48:59 ERROR: Encryption by QUALCOMM ;)
    2010_04_07_01:48:59 ERROR: Invalid MAK -- aborting
    2010_04_07_01:49:00 ERROR: Received unexpected response for: http://localhost:9032/TiVoConnect?Command=Push&Container=Cut+Programs&File=/Lost/-Happily+Ever+After_cut.mpg&tsn=TivoS4+%282%29
    2010_04_07_01:49:00 ERROR: Internal Server Error
    2010_04_07_01:49:01 >> Running qsfix on F:\FromTivo\V\-Pound of Flesh.mpg ...
    2010_04_07_01:49:01 C:\WINDOWS\system32\cscript.exe //nologo "C:\Documents and Settings\orangeboy\Local Settings\Temp\VRD4000477964561124541.vbs" "F:\FromTivo\V\-Pound of Flesh.mpg" "F:\FromTivo\V\-Pound of Flesh.mpg.qsfix" "/l:C:\Documents and Settings\orangeboy\Local Settings\Temp\VRDLock3775289059848572103.tmp" 
    2010_04_07_01:49:09 ERROR: qsfix failed (exit code: 0 ) - check command: C:\WINDOWS\system32\cscript.exe //nologo "C:\Documents and Settings\orangeboy\Local Settings\Temp\VRD4000477964561124541.vbs" "F:\FromTivo\V\-Pound of Flesh.mpg" "F:\FromTivo\V\-Pound of Flesh.mpg.qsfix" "/l:C:\Documents and Settings\orangeboy\Local Settings\Temp\VRDLock3775289059848572103.tmp" 
    2010_04_07_01:49:09 ERROR: C:\Documents and Settings\orangeboy\Local Settings\Temp\VRD4000477964561124541.vbs(32, 1) (null): The server threw an exception. 
    
    I'll look at it more tomorrow.
     
  8. Apr 7, 2010 #2168 of 10412
    VideoGrabber

    VideoGrabber New Member

    114
    0
    Sep 11, 2003
    Nope. Looks like I jumped the gun. Close, but no cigar. :(

    I took a look at all the files I had downloaded previously in TS mode, and then downloaded a few more just to be sure. They all have numerous glitches in them, though certainly far fewer than with tivodecode.

    One example, TS glitches at: 5,70,194,302 seconds.
    Same program in PS mode: none.
    tivodecode would likely be: 3,6,9,12,... seconds.

    The glitches are far enough apart, and sometimes subtle enough, that they may not be immediately obvious to everyone. But they're a definite problem. And they may not even be on the PC (decoder) side. It could be a bug in the TTG/ts packager in the TiVo Premieres.

    I'm hopeful it is the former, though it could be the later. In any event, ATM all my TS downloads are trash. :thumbsdown:

    I might not mind so much, if it were just a matter of speed. I can live with slower, if I have to. As moyekj suggested, stick with PS mode for now. However, I was hoping to take advantage of the TS mode to download recordings that the TiVo PS mode is still broken on, and truncates midstream. TS mode does this great (never a truncated transfer, out of ~20 tests), but none of the files are any good. Unless you're happy with about a 1 second burst of trash every 1-3 minutes.

    The only thing left to try I can think of is downloading via the web interface in TS mode, though I can't imagine that curl being used by kmttg would be a problem. But I'm trying to whittle down the potential problem sources.

    What about sending the unmodified .TiVo (via TS) file back up to the Premiere? Would that be worth trying? I.e., if it played then, that would mean the PC-side codec was the problem, and if it didn't, it would isolate the problem to the TTG/ts packager? Any thoughts on that?
     
  9. Apr 7, 2010 #2169 of 10412
    VideoGrabber

    VideoGrabber New Member

    114
    0
    Sep 11, 2003
    Oh, and I should probably mention that these glitches are in the same place whether I'm using VRD-beta596, or the latest TVS4-Alpha599. I.e., the problem is completely independent of VRD.
     
  10. Apr 7, 2010 #2170 of 10412
    reneg

    reneg Member

    699
    0
    Jun 19, 2002
    I'd say let MS fix Windows Media Player, but since WMP 12 is already out and only runs on Windows 7, the chances of them going back to fix WMP 11 are nil.

    A workaround for this issue on Windows is to open up the metadata file and save it with CR LF instead of LF. I was wondering why I have never seen this issue before and it's because I always manually edit the metadata files, thus changing LFs to CRLFs.

    A less intrusive alternative to chaning the file extension for metadata files may be to create and option on the metadata generation to output Windows style metadata files with CRLF instead of LF.
     
  11. Apr 7, 2010 #2171 of 10412
    Stormspace

    Stormspace Electrocuted by TiVo

    5,171
    0
    Apr 13, 2004
    Hartsville, SC
    I know a lot of you guys are using pytivo for goback, but I've just gotten kmttg and galleon going again on a windows box and I'm liking it. I can get basic tagging via file format using kmttg so that Galleon presents the video with Show/Episiode Name correctly. The only thing I'm missing is a process to rename a file with *_cut.mpg" to remove the "_cut" portion. I may have to write a small program to do it if I can't get it done in a batch file.
     
  12. Apr 7, 2010 #2172 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    This is already checked into SVN for next release. However there really is no excuse from MSFT side to crash an application just because a text file is not what is expected... As mentioned VLC also tries to do something with it and pops up an error message dialog box when it fails and keeps going for playback, which is the expected response.
     
  13. Apr 7, 2010 #2173 of 10412
    reneg

    reneg Member

    699
    0
    Jun 19, 2002
    I wondering if someone has already solved this. I'd like a custom command script which copies the encoded file, metadata file & .srt file to a specific subdirectory based on the file that was encoded. For example, I'd like episodes of Lost to go into the Lost subdirectory, episodes of House to go into the House subdirectory. I could write a small program to parse the filename or if kmttg had an [MainTitle] option available for the custom command, it could save me some time.

    Seems like this might be something that is common enough that someone else might have already solved.
     
  14. Apr 7, 2010 #2174 of 10412
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    Doesn't something like this in kmttg config already do that?
    Code:
    <tivoFileNameFormat>
    [mainTitle][/][EpisodeNumber][-][episodeTitle]
    
    I've got a Series2 that is setup for only manual recordings on a single channel, so I setup file naming to be this:
    Code:
    <tivoFileNameFormat>
    [mainTitle][/][wday][.][year][-][monthNum][-][mday][.][hour][.][min]
    
     
  15. Apr 7, 2010 #2175 of 10412
    reneg

    reneg Member

    699
    0
    Jun 19, 2002
    Perhaps it does and I missed it. I thought the customer command script was limited to a different set of keywords than the filename formatter. Not sure how to handle series where mainTitle is not consistent season to season. Take Survivor for instance.

    [Edit] Nevermind - Thinking about mainTitle inconsistency in the program guide, I'm going to have to parse filenames anyway to get files where I ultimately want them archived.
     
  16. Apr 7, 2010 #2176 of 10412
    wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    BTW, I don't see this as intrusive. I'd continue to recognize the old names, just only generate the new ones going forward. We have about three programs that use this data, AFAIK, so it shouldn't be hard to coordinate. ".txt" was never a good extension anyway (it's too generic), except in that they actually are text files.
     
  17. Apr 7, 2010 #2177 of 10412
    reneg

    reneg Member

    699
    0
    Jun 19, 2002
    I was assuming a hard cutover. A backwards compatible migration is certainly easier.
     
  18. Apr 7, 2010 #2178 of 10412
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    Is the Window's Service that kmttg looks for baked into the .jar file? I've installed a second instance of kmttg with different config.ini and auto.ini files. I've updated wrapper.conf to create a unique Service name, but prior to starting the new Service, I queried it from the second instance's "Service Status", and it reported that the Service was running. Is there a way to set the second instance to query the new Service? No big deal if not; I can use the Services.msc control the new Service when needed.
     
  19. Apr 7, 2010 #2179 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    Service->Status essentially just runs the following windows command to check status:
    sc query kmttg
    (i.e. kmttg name is hard coded, so if you have a separate instance with a different name you need to monitor it by other means)
     
  20. Apr 7, 2010 #2180 of 10412
    dlfl

    dlfl Cranky old novice

    6,996
    16
    Jul 6, 2006
    Near...
    Someone has already written the program for you: Bulk Rename Command. When you go to the download page scroll down to the bottom -- you want Bulk Rename Command (zip) not Bulk Rename Utility (installer for GUI version, I believe).

    And here is the command line that should do what you want:

    Code:
    BRC32 /PATTERN:"*_cut.mpg" /REMOVELASTN:4 /EXECUTE /QUIET
    The batch file or command window it's running in has to be logged to the folder containing the files to be renamed of course. There is good documentation in the download. It claims to do a number of other clever things but this feature is the only one I've used.
     

Share This Page