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 30, 2009 #601 of 10800
    txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    Ok, I will give this a try tonight. I simply created my own shortcut to launch kmttg, so I could have easily screwed up the start folder (it is probably pointing to my desktop).

    I don't have Tivo Desktop installed anymore. Is this a new port for kmttg with the additional of the beacon?

    Jason
     
  2. Apr 30, 2009 #602 of 10800
    moyekj

    moyekj Well-Known Member

    11,336
    119
    Jan 23, 2006
    Mission...
    Yes, prior to auto discovery kmttg did not need access to port 2190. The first time I ran it Windows Vista firewall asked for permission to let wperl access it.
     
  3. Apr 30, 2009 #603 of 10800
    txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    That's odd. I didn't get a notification for that. Wonder if it is because I have UAC disabled?

    Jason
     
  4. Apr 30, 2009 #604 of 10800
    txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    I updated my shortcut to have a Start in: path that points to the kmttg folder and that does indeed fix the problem with the launch. Thanks! I have removed the tivo_beacon.pm from the perl64 folder.

    I am apparently doing something wrong with the beacon itself though. I am still getting the same error. I opened up port 2190 TCP and called it perl/wperl. I also added wperl.exe to the exception list. It is still not auto detecting my tivos. Does the port need to be UDP?

    Jason
     
  5. May 1, 2009 #605 of 10800
    moyekj

    moyekj Well-Known Member

    11,336
    119
    Jan 23, 2006
    Mission...
    Yes it's UDP that is monitored not TCP. If that still doesn't work just add the tivos manually and save them to config file - that's recommended even if they are auto detected anyway since auto-detecting can take several seconds. I added auto detection mostly to try and make it easier for first time users. Could be that it's not binding to the proper IP address of your computer or something like that.
     
  6. May 1, 2009 #606 of 10800
    AudioNutz

    AudioNutz New Member

    318
    0
    Nov 9, 2008
    Could you possibly explain this "tivo_beacon.pm" file a bit? I had a similar issue, kmttg wouldn't launch, and the error message said something that led me to believe this file was needed in my Perl folder, so I put it there. This caused kmttg to be able to launch, but I really don't understand the way this is intended to work.

    Since I'm not using shortcuts, I cannot do the "Start in:" stuff listed above.

    How is this supposed to be used, where is it supposed to be installed?
     
  7. May 1, 2009 #607 of 10800
    moyekj

    moyekj Well-Known Member

    11,336
    119
    Jan 23, 2006
    Mission...
    I'm going to change it in upcoming release such that tivo_beacon file inclusion does not depend on where you launch kmttg from.
     
  8. May 1, 2009 #608 of 10800
    Nutka

    Nutka New Member

    1
    0
    May 1, 2009
    Hi Kevin,
    I'm currently using your program to cut out the commercials. I wish I could do something opposite-cut out the shows and end up only with commercials. Can you give me some advise how to do it. Thank you,
    Nutka
     
  9. May 2, 2009 #609 of 10800
    moyekj

    moyekj Well-Known Member

    11,336
    119
    Jan 23, 2006
    Mission...
  10. May 4, 2009 #610 of 10800
    rjh

    rjh New Member

    3
    0
    May 4, 2009
    There is an issue with kmttg when using VideoReDo to cut adds. The comskip process creates a .edl file but the adcut process expects a .VPrj and dies because it isn't found.

    The following is a patch for v0.5n which I've tested and seems to work fine:

    Code:
    $ diff kmttg.pl kmttg.pl.dist
    958,964c958
    <          if ($VRD && -f "$VRD\\vp.vbs") {
    <             my $vprjFile = $edlFile;
    <             $vprjFile =~ s/\.edl$/.VPrj/;
    <             &comskip('FILE', $mpegFile, $vprjFile, $familyId);
    <          } else {
    <             &comskip('FILE', $mpegFile, $edlFile, $familyId);
    <          }
    ---
    >          &comskip($$entry_ptr{tivoName}, $mpegFile, $edlFile, $familyId);
    3800,3803d3793
    <    if ($VRD && -f "$VRD\\vp.vbs")
    <    {
    <       $args = "--videoredo ".$args;
    <    }
    


    Let me know if you've got any issues or questions.
     
  11. May 4, 2009 #611 of 10800
    moyekj

    moyekj Well-Known Member

    11,336
    119
    Jan 23, 2006
    Mission...
    rjh, actually as documented if you are using videoredo then the intent is to configure comskip to output a .VPrj file (as well as .edl file):
    Though it's interesting that apparently you got VRD working with .edl file?
     
  12. May 4, 2009 #612 of 10800
    rjh

    rjh New Member

    3
    0
    May 4, 2009
    moyekj,

    Thanks, I missed that in the documentation.

    The code change doesn't actually get VRD to work with an edl file. It checks inside kmttg.pl to see if you are going to use VRD for cutting commercials and if it does adds "--videoredo " to the parameters to comskip and changes the output file name to xxx.VPrj instead of xxx.edl.

    This saves having to modify the comskip.ini if you configure VRD. It does mean there is no way to create an edl file if you have VRD configured and wanted to create an edl file and not do a comcut for some reason.

    I also found to get VRD to do the cutting when running auto transfers I had to modify the log on of the service to have the "Allow service to interact with desktop" checked (running Windows XP). When I did that VRD ran fine but a perl command window appeared so I changed the service parameters to run wperl.exe instead of perl.exe and all worked fine. I've only tried it with a user logged, I'm not sure if it would work if the service was running but there was no user logged on.
     
  13. May 4, 2009 #613 of 10800
    krar4

    krar4 New Member

    57
    0
    Dec 21, 2002
    IL
    All,

    I found this thread this morning, and it's exactly what I've been looking for. I was so interested that I actually read all 21 pages of the thread to make sure I was up to speed. I then went through the download and install process as shown in the Windows Installation instructions, and I can't get it to work. I even used the same subdirectories as shown in the example, but to no avail.

    It looked like there was a minor error in the instructions. They said:

    In Step 3: unpack kmttg to c:\home, and unpack kmttg win32 tools to c:\home\kmttg. I did that.

    In Step 4: it shows the example of kmttg being installed under c:\home. When creating the shortcut, the command is: "c:perl\bin\wperl.exe c:\home\kmttg\kmttg.pl".

    The kmttg.pl file isn't in the c:\home\kmttg subdirectory. It's in the c:\home subdirectory. The tools are in the c:\home\kmttg subdirectory, per the directions in Step 3. Am I missing something?

    Regardless, I tried the setup with that command both ways, and nothing happens. Can someone walk this noobie through the process? It all looks so simple, and this is exactly the functionality I am looking for.

    I'm using the v0p5m install and the v0p5m tools download on a WinXP 32-bit machine. I installed Perl 5.8.9.825.

    Thanks in advance!
    Rick
     
  14. May 5, 2009 #614 of 10800
    fixxit

    fixxit New Member

    8
    0
    Dec 19, 2006
    USA
    Rick,

    It looks like the problem is that you unpacked the contents of the kmttg directory into home rather than the directory itself. You want to copy the kmttg folder to c:\home and then inside c:\home\kmttg you should unpack the tools. So you should have a bunch of directories and files like this:

    c:\home\kmttg\ (a directory)
    c:\home\kmttg\kmttg.pl (the main perl script)
    c:\home\kmttg\encode\ (the directory where the encoding profiles live)
    c:\home\kmttg\tivodecode\ (the directory where tivodecode lives)
    [etc]

    Also your shortcut is missing a backslash. You have:

    "c:perl\bin\wperl.exe c:\home\kmttg\kmttg.pl"

    when it should be

    "c:\Perl\bin\wperl.exe c:\home\kmttg\kmttg.pl".

    See if that fixes it.
     
  15. May 5, 2009 #615 of 10800
    krar4

    krar4 New Member

    57
    0
    Dec 21, 2002
    IL
    Fixit,

    Your assistance did indeed Fixit. I appreciate your assistance.

    I had the opportunity to try KMTTG out this morning, and it was a little hit and miss for me. I have 2 personal video players I'm trying to convert for. The easy one is the Archos 5 Internet Media Tablet. The software was fantastic for that player, in large part because that player has a wide variety of video formats it can play. The Mpeg4 format loads without any difficulty.

    The 2nd player I'm trying to convert video for is my mother's Creative Zen. I'm not at my PC at the moment, so I don't remember the exact name of the conversion format on kmttg, but I used the one that shows it's for the Creative Zen. It's about halfway down the list of available choices. Once that conversion completed in kmttg, I tried to load it into the Zen player, but it said that the format needed to be converted by the Zen software because the video file was too high quality to be played by the Zen. That's not the exact phrase, but that's the idea, so the only way I can load the video file into the Zen is if I run it through Creative's very slow conversion process after kmttg is done with it.

    Does anybody have experience with kmttg and the Creative Zen (Not the Zen-W)? It would be a huge help to me if I can skip the additional conversion process by Creative's software.

    Did I say this was great software? It is! Thanks for making it available!

    As always, thanks in advance.

    Rick
     
  16. May 5, 2009 #616 of 10800
    txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    I have a Creative Zen, but I actually haven't used it for video in a long time. Looking at Kevin's encoding profile for the Zen (not sure what it is called when viewing from within kmttg, but the profile is ff_zen), it looks like it transcodes the video to 320x240 XVID AVI @ 800kbps. If you look at the Creative Zen specs page, it really only plays .wmv files, so anything that is not windows media will be converted again. You might be better off simply downloading the shows, decrypting them, cutting the commercials and then letting the Zen software transcode the video for you.

    Jason
     
  17. May 5, 2009 #617 of 10800
    moyekj

    moyekj Well-Known Member

    11,336
    119
    Jan 23, 2006
    Mission...
    It's just a question of finding right encoding recipe that works. Most of the device specific encoding profiles I created based on Google search and I cannot test on the devices (since I don't have most of them). It's easy enough to create your own recipes as well. So the challenge is to find a recipe for ffmpeg or handbrake that works for your Zen. Shouldn't be too hard. Once it is found it's easy to add them to kmttg. I can work with you if you wish. First thing to do is create a short test mpeg2 source clip that you can use as a starting point for testing encodings quickly.
     
  18. May 5, 2009 #618 of 10800
    txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    moyekj- Been meaning to ask about encoding 1080i video to mp4 in kmttg. What does ffmpeg do about the interlacing? Does it construct a 29.97fps progressive frame instead of leaving it at 59.94fps interlaced? I have done some 720p encodes to mp4 and those are straightforward to do with XVID4PSP while burning in the captions since they are already progressive, however, I haven't played with any 1080i encodes yet and was wondering how you handle them in kmttg. Do HD Tivos handle interlaced mp4 files?

    Jason
     
  19. May 5, 2009 #619 of 10800
    krar4

    krar4 New Member

    57
    0
    Dec 21, 2002
    IL
    I would definitely appreciate any help. The conversion process for the Zen is incredibly slow, and there is no way currently to make it part of a 1-step process. kmttg is by far the best possibility.

    I'm not sure how to try different recipes, but I'll create a short mpeg2 source clip tonight.

    Thanks!
    Rick
     
  20. May 5, 2009 #620 of 10800
    fixxit

    fixxit New Member

    8
    0
    Dec 19, 2006
    USA
    Rick,

    I'm glad to help.

    As for the different encodings I would do as Kevin suggested and record a 3-5 minute video and transcode that into each of the formats and try them on your Zen. I have a Blackberry Bold and found that the ff_zen encoding works scheme the best and is very fast, even running in a VM. (ff tends to be much faster than hb, by the way).

    One suggestion that should save you a significant amount of time is to have kmttg keep the .tivo, .mpg and other temporary files between runs. Once a run is finished rename the final output file and run a different encoder. Keeping the intermediary files around saves the time of downloading, decoding and comstripping the show again. I was able to test most of the combinations in about a day.

    Tweaking the encoding schemes is pretty easy if you need to. I set mine to boost the volume upon reencoding to make them easier to hear while I'm on the noisy subway, for example. Post here and someone can give you a hand.

    -Jason
     

Share This Page