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. Oct 25, 2010 #2781 of 10413
    ferror

    ferror New Member

    66
    0
    May 3, 2005
    Austin, TX
    Update on my curl download stalling issue:

    I tried the Java downloads, and for some reason they are causing me even more problems than curl does. I also still have the problem with the Windows version of curl stalling. I have no idea why it used to work flawlessly, and then it stopped working a few months ago, but my theory is that a Windows update must have come along which created a timing issue or in some other way broke an aspect of the network stack for these tools.

    The cygwin curl is still the only one that works for me. I was very glad when it was figured out that the cygwin curl was having problems with quotation marks and other punctuation on the command line, as this had started causing me problems with downloading certain shows with those characters in the title. I ended up customizing my download.java to escape those characters on the command line so that I could continue using the cygwin curl. I am having to just take what I can get to work on this issue because it is very hard to reproduce, but I can see there are several others who run across it.

    On a quick side question, has anyone seen this particular error from AtomicParsley?

    You must be off your block thinking I'm going to tag a file that is at LEAST 3310211899 bytes long.
    AtomicParsley doesn't have full 64-bit support
     
  2. Oct 25, 2010 #2782 of 10413
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    Interesting. The very limited experience I've had with 64-bit was with an IBM mainframe. With that, initially only data was allowed to be used "above the bar", while the program was restricted to 31-bit. The OS would handle the fetching of the big addresses when needed. It's been a little while since I've touched a 64-bit (IBM) machine, so things may have changed in that regard. Like I said, it's been awhile for me, and the application folks could have cared less about 64-bit capabilities at the time. Their legacy apps ran 16, 24 & 31 bit.

    I'm guessing the squatty boxes (Windows/*nix/Mac/whatever) don't do the fetching on behalf of the programs?
     
  3. Oct 26, 2010 #2783 of 10413
    stalemate

    stalemate McGruber

    10,748
    0
    Aug 21, 2005
    Little Rock, AR
    I am attempting my transfers over wired network now. This was finally the push I needed to throw dd-wrt on an old router and configure it as a switch. :)
     
  4. Oct 26, 2010 #2784 of 10413
    DeWitt

    DeWitt New Member

    424
    0
    Jun 30, 2004
    Summit, NJ
    Wow, that takes me back a bit..... One of the first big projects on worked on at my current employer many many years ago was a program that had to run "above the 16 Meg Line" In those days the limitation was compiler dependent. We had to use assembler to get the actual program code "above the line". I believe modern COBOL compilers have eliminated that block, but I have not touched COBOL since 1993.

    32 bit Windows programs can work with large files but are limited to 3 Gigs of Memory space. 64 bit removes those limits and can significantly improve performance.

    64 Bit windows allows 32 bit programs to run in an emulated environment (Theoretically transparently) but to take true advantage of the large memory addressing and speed, programs need to be ported and recompiled to 64 bit versions. The work to do that ranges from simple to damn near impossible depending on the tools used for the original, adherence to rules etc.
     
  5. Oct 26, 2010 #2785 of 10413
    stalemate

    stalemate McGruber

    10,748
    0
    Aug 21, 2005
    Little Rock, AR
    I'm curious about naming my output files... I am dropping them in a directory that is monitored by my boxee machines.

    I need to name them in the format the boxee uses to figure out all the show metadata.

    I think that format is <series title>.S<season number>.E<episode number within the season>.extension

    Is there a way to get this? I didn't see episode number in any of the built in naming tags. I think tivo knows episode number for some stuff though right?
     
  6. Oct 26, 2010 #2786 of 10413
    innocentfreak

    innocentfreak Active Member

    8,950
    3
    Aug 25, 2001
    Florida
    Unless something has changed, there is a way to have it pull the number that TiVo thinks it is, but it uses absolute numbering which usually isn't correct. The format is usually just 15001 for example and it varies per show. I have been looking for similar options, but I haven't found it. I also haven't found a tool to automatically convert the OAD to the correct SXXEXX format.
     
  7. Nov 1, 2010 #2787 of 10413
    mreaves53

    mreaves53 Member

    82
    0
    Feb 9, 2009
    Has anyone written a profile for the Blackberry Torch?
     
  8. Nov 2, 2010 #2788 of 10413
    sanjonny

    sanjonny New Member

    202
    0
    Nov 2, 2008
    On the torch, doesn't the iPod setting work?

    New issue. Have a set of shows but kmttg is too smart and I am too stupid to dumb it to my level.

    Show name is battleplan and the episode names are the same but with multiple parts.

    So I have in my npl, battleplan - the battle for Italy (not shown in kmttg part 1)
    And battleplan - the battle for Italy (not shown part 2) and
    Battleplan - the battle for The Rhine (not shown part 1) and
    battleplan - the battle for The Rhine (not shown part 2) and so on for many files.

    When I select them in the list for kmttg to download and process, it only selects the first one and will not download the second one. The only way I have been able to download the second part so far is to wait until say Italy part one is complete and then change the name of the decrypted mpg (TiVo files is automatically deleted after decrypt) by adding something to it and then selecting part 2 and trying to download it.

    I am sure there is a simple trick I am missing but I can't find it and my work playing around with naming isn't working right either. I read about a unique program ID for auto transfer, but that doesn't fit for my setup as I want to select which files download.

    I noticed several videos are like this on the history and military channel so hopefully someone else has already run into this problem and fixed it. Your suggestions greatly appreciated.

    And finally, I am still playing with the media players, will have that write up soon!
     
  9. Nov 2, 2010 #2789 of 10413
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,739
    9
    Apr 6, 2000
    SF Bay Area
    What you have is the default setting in regards to the file naming of the downloaded videos.

    In your instance, each episode of Battleplan results in 'Battleplan.tivo' and then 'Battleplan.mpg', so Part 2 will overwrite Part 1, as well as when its converting from .tivo to .mpg. Another reason why it stops downloading and waits for the previous file to finish its decoding is because that file is still open when kmttg is trying to overwrite it.

    This is what I have set in kmttg under the file naming option in configure:

    [mainTitle] - [EpisodeNumber] - [episodeTitle] [year].[monthNum].[mday]-[hour].[min]

    Adding the date and time to the filename gives little or no chance of the file being over-written.

    For Example: for your 'Battleplan' episodes, recorded on Oct 23rd, 2010 at 8pm, I would have:

    'Battleplan - Part 1 2010.10.23-20.00.tivo'
    'Battleplan - Part 2 2010.10.30-20.00.tivo'
    etc. for any more episodes.
    If the episode times were, part 1, part 2, etc.

    The default setting will just give files its show titles in .tivo and may not show your "parts 1 and 2'

    You can change the settings yourself to your own discretion. For PCs, Just use periods (.) in place of colons :) ) as the colon is reserved for other purposes. Other characters you can use is the apostrophe ('), hyphen(-), comma (,), but you cannot use the double quotes ("), colon:) ), slash(/), backslash (\) and (|) in naming files and videos.

    You can also add on the episode titles and episode numbers to the filenames, but its also easier for it to get over-written as well.
     
  10. Nov 2, 2010 #2790 of 10413
    sanjonny

    sanjonny New Member

    202
    0
    Nov 2, 2008
    It is a little different from that, which is where the problem comes in. My current naming convention is
    [title] ([monthNum]_[mday]_[year])

    which leaves a title "Battleplan- The battle for italy (10-10-2010).tivo, etc etc

    when it shows up in the NPL on kmttg, It shows battleplan - the battle for italy in the show column.

    Both shows are shown with the time set, but when I select them and then hit start, it only puts an hourglass by the first show and the second show doesn't even show up on the list.
    The part numbers are not episodes, it shows in the tivo guide as part 1 of 2 for the episode of the battle for italy.

    I am going to try and change the naming convention including the time, but I think I might still have the problem with selecting the files. Will get back to you.

    [title] ([hour]-[monthNum]_[mday]_[year]) is my first try and then will try

    [mainTitle] - [EpisodeNumber] - [episodeTitle] [hour]-[year].[monthNum].[mday]

    I read warnings about file problems if say episode title was missing which is why I have not played with it much. Will report back.
     
  11. Nov 2, 2010 #2791 of 10413
    sanjonny

    sanjonny New Member

    202
    0
    Nov 2, 2008
    While I am trying that, I have another problem. Two shows I downloaded will not decrypt and I triple checked the TS stream to make sure it was not selected. They are both big files, 3.6 gb and say the following for each, one is hd and one is sd

    The sd error: This is a 2 hour long sd show part one of two and 3.6gb
    >> DECRYPTING e:\tivo recordings\tivo\Russia Land of the Tsars - Critical turning points (11_01_2010).TiVo ...
    C:\kmttg\tivodecode\tivodecode.exe --mak MAK --out "e:\tivo recordings\mpg\Russia Land of the Tsars - Critical turning points (11_01_2010).mpg" "e:\tivo recordings\tivo\Russia Land of the Tsars - Critical turning points (11_01_2010).TiVo"
    tivodecode failed (exit code: 10 ) - check command: C:\kmttg\tivodecode\tivodecode.exe --mak MAK --out "e:\tivo recordings\mpg\Russia Land of the Tsars - Critical turning points (11_01_2010).mpg" "e:\tivo recordings\tivo\Russia Land of the Tsars - Critical turning points (11_01_2010).TiVo"
    processing frame: No error
    Encryption by QUALCOMM ;)

    Invalid MAK -- aborting

    and the HD error: this is one hour glee hd show and 6.47gb
    >> DECRYPTING E:\tivo recordings\tivo\testfiles complete\Glee - Theatricality (09_14_2010).TiVo ...
    C:\kmttg\tivodecode\tivodecode.exe --mak MAK --out "e:\tivo recordings\mpg\Glee - Theatricality (09_14_2010).mpg" "E:\tivo recordings\tivo\testfiles complete\Glee - Theatricality (09_14_2010).TiVo"
    tivodecode failed (exit code: 10 ) - check command: C:\kmttg\tivodecode\tivodecode.exe --mak MAK --out "e:\tivo recordings\mpg\Glee - Theatricality (09_14_2010).mpg" "E:\tivo recordings\tivo\testfiles complete\Glee - Theatricality (09_14_2010).TiVo"
    processing frame: No error
    Encryption by QUALCOMM ;)

    Invalid MAK -- aborting


    Should I just redownload the files as something happened or what is going on. I saw in the threads that many times this was because of ts format, but I am not using that and this is from tivohd, not premiere. I didn't see if it was just a transport error or what or maybe because the files are large I need a different setting.
     
  12. Nov 3, 2010 #2792 of 10413
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    I would try running the tivodecode commands directly (type or copy/paste the command line in a DOS window) to see if there is any useful information in standard out or standard error.

    I also think there might be a way to see standard out/standard error from within KMTTG, but I don't remember what it is - maybe double click the status line?

    Perhaps you will get a more meaningful error message there.

    The error you do get 'Invalid MAK' indicates that the MAK specified on the command line is incorrect, but if you are able to decode other files, this might be misleading.
     
  13. Nov 3, 2010 #2793 of 10413
    sanjonny

    sanjonny New Member

    202
    0
    Nov 2, 2008
    Yeah, the mak is okay and two other glee episodes decoded fine. I will try command line as the double click didn't show anything exceptional in the log
     
  14. Nov 3, 2010 #2794 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    Perhaps run mediainfo on the .TiVo files that won't decrypt properly to check if they are PS or TS container. TiVo files with TS container have many issues and should be avoided.
     
  15. Nov 8, 2010 #2795 of 10413
    sirfergy

    sirfergy New Member

    288
    0
    May 18, 2002
    Is it possible to have kmttg to push metadata into WTV or dvr-ms files? I'm pulling shows off my TiVo and then pushing to a media center. Right now I have to run VAP which has it's own issues and I'd love to have everything done from one app.
     
  16. Nov 8, 2010 #2796 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    I don't have/use MCE so not familiar with wtv/dvr-ms formats, but are there any public domain command line tools to do those kinds of things? I guess the first question is how are you converting mpeg2 to wtv and/or dvr-ms containers? I would guess you are using VideoRedo TVSuite4? If you start from a .TiVo file with it's own metadata does VideoRedo preserve the metadata in some form in resulting wtv/dvr-ms file? Obviously if VideoRedo can do it then integration is already there with kmttg/VideoRedo, but I'm guessing it does not preserve metadata which is why you posted here.
     
  17. Nov 8, 2010 #2797 of 10413
    innocentfreak

    innocentfreak Active Member

    8,950
    3
    Aug 25, 2001
    Florida
    He might be using DVRMStoolbox which is free, but if not there are a bunch of other free Mpeg2 to DVR-MS tools. WTV is another story though since the support isn't there yet that I have found. Even some of the Microsoft MVPs are now moving on to other things rather than the WTV format since there is little to no documentation for the format and Microsoft isn't very forthcoming about support.
     
  18. Nov 8, 2010 #2798 of 10413
    dlfl

    dlfl Cranky old novice

    7,002
    19
    Jul 6, 2006
    Near...
    VRD doesn't pass .TiVo metadata to any other output format. Until build 607 it did preserve metadata for WTV-->WTV, WTV-->DVRMS, DVRMS-->WTV and DVRMS-->DVRMS. However there is a current post on the VRD TVS4 forum complaining that build 607 isn't doing this -- presumably a recent bug that will soon be fixed.
     
  19. Nov 8, 2010 #2799 of 10413
    dlfl

    dlfl Cranky old novice

    7,002
    19
    Jul 6, 2006
    Near...
    Your reference to VAP "issues" is rather mysterious. I assume you mean limitations of the designed VAP functionality relative to your needs, rather than quality issues, correct? If you have quality issues, please post them on the VAP thread, link in signature, before posting them here.
     
  20. Nov 8, 2010 #2800 of 10413
    sirfergy

    sirfergy New Member

    288
    0
    May 18, 2002
    Issues as in it requires a bunch of extra steps vs just going through kmttg. The tool works for straight conversions.

    Yes, todvrms and vap both can set the metadata. That is an interesting thought of using todvrms to set, except it requires sage tv formatted xml.
     

Share This Page