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 3, 2008 #81 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    OK, that is the problem. You need to use the 5.8 installation. I probably need to make that clearer in the documentation now that 5.10 is confirmed not to work. I will have to look into why 5.10 doesn't work but in the meantime please uninstall 5.10 and install 5.8 instead and you should be good to go.

    EDIT: Actually I was able to get it working with Perl 5.10 as well without any changes to the program. The key is that 5.10 ActivePerl does not come with Tk module installed by default so you have to be careful to install from proper version (the 5.8 Tk module which you can get from CPAN does not work in 5.10). I've updated the documentation at my web site with instructions for ActivePerl 5.10 installation including proper way to install Tk module for it.
     
  2. Apr 3, 2008 #82 of 10405
    leiff

    leiff Member

    513
    1
    Aug 24, 2005
    Is this program better than tivodesktop? Pros/cons? I don't need the file conversion tool but I would like skip commercial ability if it works seamlessly. Converting tivo file I assume will allow user to use other media players besides wmp. Is there a favored media player for HD content? Using wmp11, I use high quality overlay in performance menu for best picture.
     
  3. Apr 3, 2008 #83 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    v0.2h just released with an important bug fix:
    ------------------
    v0.2h (04/03/2008)
    ------------------
    BUG FIX:
    * Fixed problem with Now Playing List retrieval checking that would flag
    certain successful downloads as in error.
     
  4. Apr 3, 2008 #84 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    As the author of this program you can guess my position on this. I was using Tivo Desktop to download shows before and for the most part didn't have any trouble, except it didn't seem to be very accurate reporting time remaining. However, the encrypted .TiVo files to me are useless as I usually want to further process files to remove commercials, or make DVDs, or convert to a more portable format for my Portable Media Player. All the utilities were out there to do these different tasks but it was cumbersome to bring up different tools to do the different steps so I decided to start scripting some of them to make things easier, and eventually this grew into this program - this program is essentially just a GUI using various 3rd party tools to do these tasks.
    As far as automated commercial detection and removal I have yet to see any (free) program that does it perfectly. Comskip can do a great job on some programs and a very lousy job on others. Bottom line is if you want perfect commercial editing you have to use an mpeg editor and do it yourself. I use Womble Mpeg Video Wizard for that but most users around here use VideoRedo. Both have very similar capabilities and are excellent tools for that purpose but of course are not free. (Both tools can also take a file generated by Comskip as a starting point so you can check and edit the commercial points).
    As for media player I usually don't watch any programs on my laptop - I either feed them back to my Tivos or store them on my Portable Media Player. I think WMP is fine for playback but I also have VideoLAN VLC, Media Player Classic and some other commercial programs. All have different advantages and disadvantages. The nice thing is once you have unencrypted mpeg2 files then you give yourself a lot more options.
     
  5. Apr 4, 2008 #85 of 10405
    Berone

    Berone New Member

    108
    0
    Feb 14, 2005
    Kevin,
    Now I'm having a problem with my Windows installation. This is what I'm getting when I first run it:

    >> Getting Now Playing List from Willow ...
    C:\KMTTG\curl\curl.exe --retry 3 --anyauth --user tivo:MAK --insecure --cookie-jar "" --url "https://192.168.1.7/TiVoConnect?Command=QueryContainer&Container=%2FNowPlaying&Recurse=Yes" --output "_1"
    *ERROR* Failed to launch command: C:\KMTTG\curl\curl.exe --retry 3 --anyauth --user tivo:MAK --insecure --cookie-jar "" --url "https://192.168.1.7/TiVoConnect?Command=QueryContainer&Container=%2FNowPlaying&Recurse=Yes" --output "_1"
    *ERROR* The operation completed successfully.

    And nothing downloads. I've deleted the config.ini and let it rebuild, but no joy.

    On the other hand, I have it almost working in OS X. You were right - I needed to run it from X11. The documentation on getting perl scripts working in OS X sucks! I've been getting advice on a forum and I keep getting asked things like "oh, well don't you have (blah, blah) installed?" NO? WHY WOULD I? THIS IS THE FIRST I'VE HEARD OF IT!!!! Sorry - had to get that out of my system. The problem I'm having is that files won't download past about 410 mb. I just tried downloading from the https server and it's downloading the whole file, so the issue doesn't seem to be there. Anything you can think of that might cause that?

    Thanks,
    Anthony
     
  6. Apr 4, 2008 #86 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    Looks like there's a problem with the temporary files which go to the output directory. There's an empty cookie file: --cookie-jar "" and the output file is wrong: --output "_1".. Most likely you have an improper Output Dir specified in your configuration or some other syntax problem in config.ini that's screwing up parsing. P.M. me your config.ini file - something doesn't look right there. I need to work on improving error checking in the configuration so these kinds of problems are flagged up front.

    For the Mac OS X problem run the curl command displayed by kmttg from command line since that is what must be failing (replace MAK with your real MAK number). Make sure the output directory partition where the file is going has plenty of space. Could be a buggy version of curl so retrieving a new version of curl may solve the issue. Also if you have a firewall enabled try turning it off while testing.
     
  7. Apr 4, 2008 #87 of 10405
    Berone

    Berone New Member

    108
    0
    Feb 14, 2005
    Fixed the Windows problem - it was a syntax error (I forgot the \ at the end of the output directory name).

    OS X:
    I ran the curl command at terminal and this is what I got:

    mini:~ Mini$ /usr/bin/curl --anyauth --user tivo:00000000 --insecure --cookie-jar "/volumes/kaylee/tivo/cookies2936" --url "http://192.168.1.7:80/download/How%20I%20Met%20Your%20Mother.TiVo?Container=%2FNowPlaying&id=507743" --output "/volumes/kaylee/tivo/How I Met Your Mother - The Bracket_Mon_Mar_31.TiVo"
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 51 0 51 0 0 146 0 --:--:-- --:--:-- --:--:-- 146
    mini:~ Mini$


    The file is created in the correct output directory, but nothing is downloaded to it (unlike from kmttg where I get to around 400 mb and then the clock keeps running but nothing further downloads).

    Anthony
     
  8. Apr 4, 2008 #88 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    You are using your real MAK number instead of "00000000" right?
     
  9. Apr 4, 2008 #89 of 10405
    Berone

    Berone New Member

    108
    0
    Feb 14, 2005
    Of course. I had originally pasted in the actual command and then realized that I shouldn't post my MAK number so I edited.
     
  10. Apr 4, 2008 #90 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    It's a mystery to me then, since running the same command that kmttg is using you are getting different results. If as you mentioned the same URL works fine using a browser then the only thing left to suspect is the curl executable. Try using a more recent version of curl. You can get a Mac OS X binary from here:
    http://curl.haxx.se/dlwiz/?type=bin&os=Mac+OS+X
    (Get the 7.18.1 version with SSL enabled)
    Then obviously replace /usr/bin/curl in the above command with the binary you download and see how it goes.
    If that does work then you can just setup to use that binary in kmttg config.

    Also as I mentioned before make sure to take any firewall out of the picture (it could be interfering with curl).
     
  11. Apr 4, 2008 #91 of 10405
    mattack

    mattack Active Member

    20,731
    4
    Apr 9, 2001
    sunnyvale
    X Windows isn't installed by default, but you can install it. I honestly forget whether it's on the regular OS install DVD or developer tools DVD.
     
  12. Apr 5, 2008 #92 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    Minor enhancement just released to help with configuration issues.
    ------------------
    v0.2i (04/05/2008)
    ------------------
    ENHANCEMENT:
    * Added some more error checking for configuration setup.
     
  13. Apr 6, 2008 #93 of 10405
    Berone

    Berone New Member

    108
    0
    Feb 14, 2005
    Kevin,
    Still beating away at the Mac end of things. I was unsuccessful getting a different version of Curl going, but I believe the problem with running Curl at the command line was the "server busy" error, only I wasn't getting the error message. It's the same symptom, though - a file is created in the output directory but nothing is downloaded to it. In any case, I tried again to paste the syntax from the kmttg box into Terminal and it fully downloads the show. This is the same syntax that is stopping around 350 - 425 mb. I've duplicated these results with multiple shows of various lengths. In kmttg the clock keeps running but the show stops downloading and the progress meter stands still. I haven't let it do that for more than 10 minutes or so, but I'm going to set it running now and go to bed. I'll see what happens with the process running over night. You've successfully suppressed the terminal windows that the 3rd party programs open - is there any way to get them to open? Or to create a log that might show me what is going on?

    Thanks,
    Anthony
     
  14. Apr 6, 2008 #94 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    It could be something related to unflushed stdout/stderr that is wating to be flushed. On Linux and Windows I've set things up so those file ports auto-flush but it could be on OS X they are not. I'll PM you another version of kmttg.pl with some forced flushing to see if that solves your issue.
     
  15. Apr 6, 2008 #95 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    Forgot it's not possible to send attachments via PM. Attached is a version with buffer flushing (goes to stdout for non-Windows OS) that may solve the problem for you - let me know.
     

    Attached Files:

  16. Apr 6, 2008 #96 of 10405
    Berone

    Berone New Member

    108
    0
    Feb 14, 2005
    Nope, that didn't work. It queued up the show but then never downloaded it. Running it over night, btw, resulted in 8 hrs 43 min stopped at 358 mb.
     
  17. Apr 6, 2008 #97 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    Probably suffering from the "server busy" problem. Make sure any running curl processes are killed on your Mac before trying again with this modified kmttg.pl.
     
  18. Apr 6, 2008 #98 of 10405
    Berone

    Berone New Member

    108
    0
    Feb 14, 2005
    Couple of things - the problem wasn't the "server busy" problem, because when I tried again I got that. Problem with "server busy" is that it creates the file in the output directory but then kicks back the error and doesn't download. When I retry it won't download because the file already exists.

    Back to the other problem - it did the same thing (after I deleted the empty file)says "queued" but never moves past that. Also doesn't let me select that to cancel the process, nor select anything else. Program won't close, either - I had to crash the whole X11 instance to shut it down. It is, however, downloading the file. I discovered this the second time I tried it. Unfortunately the problem is still there. In the most recent example it got to 402 mb and stopped downloading.

    Any other ideas? I appreciate your efforts to help me work this out. I'm only starting to work on a Mac and Mac users are definitely second class citizens - nothing works there! It would be nice to bash one program into shape for the Mac users!

    Thanks,
    Anthony
     
  19. Apr 6, 2008 #99 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    I would still like you to try a different version of curl. You mentioned problems getting the pre-compiled binary to work for the one I linked you to, how about you build your own binary from source code:
    http://curl.haxx.se/dlwiz/?type=source
    I used that same source code to build the win32 curl binary I include in kmttg which I know is working fine.
     
  20. Apr 6, 2008 #100 of 10405
    Philipp5

    Philipp5 New Member

    19
    0
    Mar 5, 2008
    THANKS Moyekj! Your program is working for me to connect and download and convert from my Tivo.
    The only thing not working is the file browser to convert files already on my PC. It gives me the following error. It's not that big of a deal, just letting you know:

    >> Getting Now Playing List from FILES C:\TiVo ...
    S:\Downloads\TiVo\kmttg\curl\curl.exe --retry 3 --anyauth --user tivo:MAK --insecure --cookie-jar "C:\Tivokmttg\cookies2124" --url "https://Recordings/TiVoConnect?Command=QueryContainer&Container=%2FNowPlaying&Recurse=Yes" --output "C:\Tivokmttg\tmpFile2124_2"
    *ERROR* Failed to retrieve Now Playing List from FILES C:\TiVo
    *ERROR* Exit code: 6
    *ERROR* CHECK YOUR MAK & IP SETTINGS
    *ERROR* The system cannot find the file specified.

    FYI: I'm asking it to look in the following folder: C:\TiVo Recordings
     

Share This Page