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 27, 2009 #581 of 10610
    moyekj

    moyekj Well-Known Member

    11,259
    76
    Jan 23, 2006
    Mission...
    FYI I goofed with a typo in v05pl release such that batch & auto modes won't work (GUI mode is OK). I'll release a fixed version tonight. (It's a very simple 1 character change needed on line 158 of kmttg.pl).
     
  2. Apr 27, 2009 #582 of 10610
    moyekj

    moyekj Well-Known Member

    11,259
    76
    Jan 23, 2006
    Mission...
    OK, v0p5m version posted with the fix. Sorry for the goof.
     
  3. Apr 28, 2009 #583 of 10610
    fyodor

    fyodor Member

    535
    1
    Sep 19, 2006
    Hi,

    I've noticed that when transcoding with handbrake I get almost no utilization of the second core of my dual core pentium.

    Isn't handbrake supposed to figure out the number of cores dynamically? Is there a way to force it to use the second core? Is this a general handbrake parameter, or a library-specific parameter?

    Thanks,
    F
     
  4. Apr 28, 2009 #584 of 10610
    moyekj

    moyekj Well-Known Member

    11,259
    76
    Jan 23, 2006
    Mission...
    It's supposed to autodetect by default, but you can use -C # (or --cpu #) to set a specific number according to the wiki page:
    http://trac.handbrake.fr/wiki/CLIGuide
    For ffmpeg there is a -threads option.
     
  5. Apr 28, 2009 #585 of 10610
    fyodor

    fyodor Member

    535
    1
    Sep 19, 2006
    Thanks!
     
  6. Apr 28, 2009 #586 of 10610
    jeepguy_1980

    jeepguy_1980 Unregistered User

    250
    0
    Mar 1, 2008
    Newport...
    I am getting the following error when I click on my TiVo in the drop down:

    Code:
    >> Getting Now Playing List from LOOPTRONIX ...
    "C:\kmttg\curl\curl.exe" --retry 3 --anyauth --user tivo:MAK --insecure --cookie-jar "C:\Users\Lassen\AppData\Local\Temp\cookies6716" --url "https://192.168.1.100/TiVoConnect?Command=QueryContainer&Container=%2FNowPlaying&Recurse=Yes" --output "C:\Users\Lassen\AppData\Local\Temp\nplFile6716_11"
    *ERROR* 
    Can't execute "C:\kmttg\curl\curl.exe" --retry 3 --anyauth --user tivo:MAK --insecure --cookie-jar "C:\Users\Lassen\AppData\Local\Temp\cookies6716" --url "https://192.168.1.100/TiVoConnect?Command=QueryContainer&Container=%2FNowPlaying&Recurse=Yes" --output 
    "C:\Users\Lassen\AppData\Local\Temp\nplFile6716_11" > "C:\Users\Lassen\AppData\Local\Temp\stdout6716_12" 2> "C:\Users\Lassen\AppData\Local\Temp\stderr6716_12"
    
    I have read all of the posts related to this error and nothing seems to have helped.

    Here is my config.ini file, with my mak edited out:

    Code:
    # kmttg config.ini file
    <MAK>
    ##########
    
    <TIVOS>
    DESKTOP              192.168.1.3         
    LOOPTRONIX           192.168.1.100       
    FILES                C:\Users\Lassen\Videos\Tivo
    
    <RemoveTivoFile>
    1
    
    <RemoveComcutFiles>
    1
    
    <RemoveMpegFile>
    1
    
    <CreateSubFolder>
    0
    
    <tivoFileNameFormat>
    [mainTitle]
    
    <outputDir>
    C:\Users\Lassen\Videos\Tivo
    
    <mpegDir>
    C:\Users\Lassen\Videos\Tivo
    
    <mpegCutDir>
    C:\Users\Lassen\Videos\Tivo
    
    <encodeDir>
    C:\Users\Lassen\Videos\Tivo
    
    <tivodecode>
    C:\kmttg\tivodecode\tivodecode.exe
    
    <curl>
    C:\kmttg\curl\curl.exe
    
    <ffmpeg>
    C:\kmttg\ffmpeg\ffmpeg.exe
    
    <mencoder>
    C:\kmttg\mencoder\mencoder.exe
    
    <handbrake>
    C:\kmttg\handbrake\HandBrakeCLI.exe
    
    <comskip>
    C:\kmttg\comskip\comskip.exe
    
    <comskipIni>
    C:\kmttg\comskip\comskip.ini
    
    <wan_http_port>
    
    
    <cache_time>
    10
    
    <MaxJobs>
    2
    
    <VRD>
    
    
    <AtomicParsley>
    C:\kmttg\AtomicParsley\AtomicParsley.exe
    
    <t2extract>
    
    
    <CheckDiskSpace>
    0
    
    <LowSpaceSize>
    0
    
    <CheckBeacon>
    1
    
    
     
  7. Apr 29, 2009 #587 of 10610
    moyekj

    moyekj Well-Known Member

    11,259
    76
    Jan 23, 2006
    Mission...
    Looks like the problem possibly is that C:\kmttg\curl\curl.exe doesn't exist. Note that I just noticed I messed up the kmttg_win32_tools_v0p5m.zip packaging a little in the latest release by putting the tools one extra folder deep (boy I'm on a bad streak lately). I just fixed that right now to be like previous releases. So if you see a folder named c:\kmttg\kmttg_win32_tools_v0p5l then move all the sub-folders under it up 1 level and delete that folder and you should be good to go.
     
  8. Apr 29, 2009 #588 of 10610
    jeepguy_1980

    jeepguy_1980 Unregistered User

    250
    0
    Mar 1, 2008
    Newport...
    Originally that was my mistake, but I had fixed that before I posted my problem.
     
  9. Apr 29, 2009 #589 of 10610
    moyekj

    moyekj Well-Known Member

    11,259
    76
    Jan 23, 2006
    Mission...
    Open a "cmd" window and execute the curl command there to see what happens. You can do this easily by creating a run.bat file that looks like below (replace the xxxx with your real MAK number) and then running it by typing "run".
    Code:
    @echo off
    set MAK=xxxx
    C:\kmttg\curl\curl.exe --retry 3 --anyauth --user tivo:&#37;MAK% --insecure --cookie-jar cookies --url "https://192.168.1.100/TiVoConnect?Command=QueryContainer&Container=%2FNowPlaying&Recurse=Yes"
    
     
  10. Apr 29, 2009 #590 of 10610
    jeepguy_1980

    jeepguy_1980 Unregistered User

    250
    0
    Mar 1, 2008
    Newport...
    I just got:
    Code:
    <h2>Resource Not Found</h2>
    
     
  11. Apr 29, 2009 #591 of 10610
    moyekj

    moyekj Well-Known Member

    11,259
    76
    Jan 23, 2006
    Mission...
    So something is really wrong with that Tivo. Try rebooting it.
     
  12. Apr 29, 2009 #592 of 10610
    jeepguy_1980

    jeepguy_1980 Unregistered User

    250
    0
    Mar 1, 2008
    Newport...
    I have no problem viewing the now playing list with PyTiVo.
     
  13. Apr 29, 2009 #593 of 10610
    moyekj

    moyekj Well-Known Member

    11,259
    76
    Jan 23, 2006
    Mission...
    Don't know if that means much. Try connecting directly via a web browser:
    https://192.168.1.100/TiVoConnect?Command=QueryContainer&Container=&#37;2FNowPlaying&Recurse=Yes
    (username = tivo, password = MAK)

    That will likely get you the same "Resource not found" response you are getting with curl which means there is something wrong with the Tivo and its web server that a reboot would likely fix.
     
  14. Apr 29, 2009 #594 of 10610
    jeepguy_1980

    jeepguy_1980 Unregistered User

    250
    0
    Mar 1, 2008
    Newport...
    Opening it in the web browser loaded a huge xml file with all of my programs on it. I'm assuming that means it worked.
     
  15. Apr 30, 2009 #595 of 10610
    moyekj

    moyekj Well-Known Member

    11,259
    76
    Jan 23, 2006
    Mission...
    If that works then the curl command (and kmttg) should work as well as it's doing exact same thing...
     
  16. Apr 30, 2009 #596 of 10610
    bkdtv

    bkdtv New Member

    7,902
    0
    Jan 9, 2003
    DC Metro Area
    moyekj,

    Just wanted to thank you for posting the win32 tools needed by kmttg. Most of the original tool links are dead, and so I was unable to use your program after a reformat.

    In the future, you might consider adding a [tools] autodownload feature as part of the program, much like streambaby downloads the necessary version of ffmpeg and automatically configures its settings for that program.
     
  17. Apr 30, 2009 #597 of 10610
    jeepguy_1980

    jeepguy_1980 Unregistered User

    250
    0
    Mar 1, 2008
    Newport...
    It's not though. Can you think of anything else I should be looking at? FYI: I am running Vista x64, and ActivePerl 5.10.
     
  18. Apr 30, 2009 #598 of 10610
    txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    I downloaded the most recent version of kmttg last night. I had been using a version before you added the tivo beacon. I downloaded both kmttg and the 3rd party tools. I extracted kmttg and copied the files over to my kmttg directory (Vista64, I just have it in c:/kmttg). When I tried to launch kmttg, nothing would happen (using wperl c:/kmttg/kmttg.pl). I then extracted the 3rd party tools and copied them in and tried again. Nothing again. I open up a cmd window and tried launching with perl c:/kmttg/kmttg.pl. I get this statement:

    Code:
    Can't locate tivo_beacon.pm in @INC (@INC contains: c:/Perl64/site/lib c:/Perl64/lib .) at c:\kmttg\kmttg.pl line 28.
    BEGIN failed--compilation aborted at c:\kmttg\kmttg.pl line 28.
    Do I need to add my path to something? If I copy tivo_beacon.pm over to the Perl64/lib directory, kmttg will launch for me.

    When it did launch, my tivos are not showing up for me in the list (I had stripped them out in the troubleshooting thinking maybe that was why it didn't launch). Do I just need to manually add them back in? I thought I read that they were supposed to auto-detect now.

    The text in the cmd window when I did finally launch kmttg this last time was:
    Code:
    Use of uninitialized value in concatenation (.) or string at c:/Perl64/lib/tivo_beacon.pm line 55.
    Can't bind to port : IO: :Socket: :INET:
    Is that telling me something about why the tivos aren't being detected?

    Jason
     
  19. Apr 30, 2009 #599 of 10610
    moyekj

    moyekj Well-Known Member

    11,259
    76
    Jan 23, 2006
    Mission...
    I'm stumped. I'm also Vista x64 and ActivePerl 5.10 and it's working for me. Nothing has changed with that curl code in a long time... If you are not already, try running kmttg with administrator privileges. Also check file permissions on the curl folder and curl.exe file and make sure that firewall is allowing curl and perl to run.
     
  20. Apr 30, 2009 #600 of 10610
    moyekj

    moyekj Well-Known Member

    11,259
    76
    Jan 23, 2006
    Mission...
    I think the 1st issue is the folder from which you are launching kmttg is not the installation folder. If you are using a shortcut make sure the start dir matches the location of the kmttg.pl folder. You should not copy the tivo_beacon.pm file to anywhere else (in case it gets updated in a future release).

    The 2nd issue is it looks like firewall is blocking access to port 2190. You need to give firewall permission for perl/wperl to access that port for auto discovery to work.
    Probably easiest thing to do at this point if you don't want to deal with firewall issues is to manually add in your Tivos and disable auto discovery in config.
     

Share This Page