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. May 5, 2009 #621 of 10413
    moyekj

    moyekj Well-Known Member

    11,142
    31
    Jan 23, 2006
    Mission...
    Rick, you may want to try the "ff_zune" profile which creates a Microsoft wmv file. Perhaps that will work on your Zen. Then if necessary you can use it as a starting point and tweak it to suit your needs.
     
  2. May 5, 2009 #622 of 10413
    krar4

    krar4 New Member

    57
    0
    Dec 21, 2002
    IL
    KJ & Jason,

    My Zen-encoding homework awaits. I appreciate all the input. I'll begin trying these ideas tonight, and I'll report back once I have any useful information.

    Thanks!
    Rick
     
  3. May 5, 2009 #623 of 10413
    krar4

    krar4 New Member

    57
    0
    Dec 21, 2002
    IL
    KJ & Jason,

    I completed my homework, and it wasn't pretty... I downloaded a 3 minute clip from my TiVo earlier today using Kmttg. I kept the original .tivo file and decrypted it for each of the listed encoding profiles. For each one, the Zen conversion software said, "Must convert. The video file format is not supported or exceeds playback capability of the player." I then deleted the output file, ran the decrypter for the next profile, and got the same message.

    I searched Google for Zen encoding parameters. There was a related discussion on www.AnythingButIpod.com. How do I tweak the given profiles on kmttg? I don't see how to do that, but I'd like to try some of the parameters they said that worked.

    Here are 2 different sets of notes from that forum:

    ============================================
    I use Super (available at no charge) to encode videos for my Zen 16 GB with the following settings and have had excellent results:

    output container: avi
    output video codec: DivX
    output audio codec: mp3
    ffmpeg encoder
    check the DirectShow Decode checkbox
    Video:
    Video scale: 320x240
    Frames per second: 29.97
    Bitrate: 1008 (have used much higher bit rates but results in larger file size and not needed)
    Options:
    - check Hi Quality
    - I usually use crop pad to crop to 1.33 to 1 ratio when encoding widescreen video to fill Zen screen without distortion
    Audio:
    Sampling Freq: 44100
    Channels: 2
    Bitrate: 192 kbps

    Some of these settings can be tweaked down to reduce file size.

    ============================================

    I think I've got video on the Zen figured out. Once you're sure that all parameters match Zen's capabilities......

    Resolution - 320x240
    Framerate - 30 fps max
    Audio Bitrate - 320 kbps max
    Video Bitrate - 1.0 Mbps max
    Global Motion Compensation set to NO or 0
    Quarter Pixel Motion Compensation set to NO or 0

    ......then the final thing to absolutely make sure of, because this is key, is that the resulting file is AVI 1.0! I encoded two AVIs with the exact same specs from the list above. The only difference between the two was that one was AVI 1.0 and the other was AVI 2.0.

    ==============================================

    Thanks,
    Rick
     
  4. May 5, 2009 #624 of 10413
    krar4

    krar4 New Member

    57
    0
    Dec 21, 2002
    IL
    ZEN ENCODING UPDATE:

    The "Super" profile in my last post was successful, so it shows what parameters should work. The big difference with Super and trying to complete this all with kmttg is that kmttg has the ability to do everything in one step. I've tried figuring out how to edit the encoding profiles, but I'm not seeing it. I checked the menus within kmttg, and I also tried looking in the subdirectory for an editor of some sort, but I didn't see it.

    Please advise asap. I feel like I'm very close to success.

    Thanks again for all the help!
    Rick
     
  5. May 5, 2009 #625 of 10413
    moyekj

    moyekj Well-Known Member

    11,142
    31
    Jan 23, 2006
    Mission...
    Rick the documentation under ENCODING section explains how to make your own encoding profiles. Basically you start with a copy of an existing .enc file under encode folder, give it some name of your own and edit the file accordingly. Then next time you start kmttg the name you choose shows up as a choice for encoding profile.

    Based on what you've posted so far the existing ff_zen profile seems close as it's xvid video + 2 channel mp3 audio. May just need some slight tweaking to get it to work.
     
  6. May 5, 2009 #626 of 10413
    krar4

    krar4 New Member

    57
    0
    Dec 21, 2002
    IL
    KJ,

    I opened the Zen.enc file with MS Word and I can't make sense of most of what's in there, so I don't know what to change. For example, where do I enter the Frame Rate? The contents of that .enc file are:

    ==========================
    # Description (single line, keep short)
    <description>
    Creative Zen: avi container, 320x240 xvid video, mp3 audio

    # Encode command or script (single line)
    # Known keywords: FFMPEG, HANDBRAKE, MENCODER, PERL, INPUT, OUTPUT, PWD
    <command>
    FFMPEG -y -i INPUT -vcodec libxvid -acodec libmp3lame -b 800k -ac 2 -s 320x240 -f avi OUTPUT

    # Encoded output file extension
    <extension>
    avi
    ===========================

    Based on what worked in the Super profile, can you update this (in red?) for what I need to change on my new version of the ff_Zen.enc file?

    Also - I made 1 minor change (changed libxvid to DivX) and saved it as "ff_newzen.enc", but the profile wasn't available within the program, even after I refreshed the profiles and quit and restarted kmttg. I even changed the profile back to how it originally read but left the new filename, but it still wasn't available within the profile list. Once I know how to change the file, what else do I need to do to make the updated profile available within the program?

    Finally - It was mentioned that you could increase the volume as part of the conversion process. How is that accomplished?

    I appreciate your assistance.
    Best,
    Rick
     
  7. May 5, 2009 #627 of 10413
    AudioNutz

    AudioNutz New Member

    318
    0
    Nov 9, 2008
    When you name the .enc file, be sure it doesn't contain any spaces, and doesn't contain any capital letters. :D
     
  8. May 5, 2009 #628 of 10413
    moyekj

    moyekj Well-Known Member

    11,142
    31
    Jan 23, 2006
    Mission...
    Rick there are a zillion options to ffmpeg, many of them documented here. There's no such thing as "DivX" for ffmpeg. I can probably help you find the options needed, but need a better idea of what changes are needed. If you run mediainfo on the clip you generated with "super" you can get detailed info on the file - post that information here.
    (or better yet upload the clip somewhere where I can get it).

    Also don't use MS Word to open/edit .enc files as you need to keep them as plain ascii files (likely MS Word will save as a Word document and screws things up). I use Notepad++ editor but perhaps even Notepad will work.
     
  9. May 6, 2009 #629 of 10413
    fixxit

    fixxit New Member

    8
    0
    Dec 19, 2006
    USA
    Wordpad works nicely too. Of course the old skool g33ks (like me) have a warm place in their hearts for vim, but it's not for the faint of heart.
     
  10. May 7, 2009 #630 of 10413
    spocko

    spocko TiVo HD

    432
    1
    Feb 4, 2009
    Thanks for the tip, this is a nice editor. I may retire TextPad.

    Be careful with Wordpad since since it can save in formats other than ASCII text. If you save as RTF for example, it won't work. Notepad should work just fine for these simple .enc files.
     
  11. May 7, 2009 #631 of 10413
    NYHeel

    NYHeel Active Member

    1,906
    12
    Oct 7, 2003
    I'm having trouble starting kmttg. I followed the windows installation instructions and the only thing I did differently was that I used c:\program files instead of c:\home. So my shortcut now looks like C:\Perl\bin\wperl.exe C:\Program Files\kmttg\kmttg.pl Any ideas why the shortcut isn't working.
     
  12. May 7, 2009 #632 of 10413
    moyekj

    moyekj Well-Known Member

    11,142
    31
    Jan 23, 2006
    Mission...
    To debug, open a cmd window and execute the following:
    cd "c:\Program Files\kmttg"
    perl kmttg.pl

    Then the console will display any problems there may be, such as missing Perl/Tk module or something along those lines.
     
  13. May 7, 2009 #633 of 10413
    NYHeel

    NYHeel Active Member

    1,906
    12
    Oct 7, 2003
    Thanks. I just added quotes around the shortcut and it worked. It probably didn't like the space between program and files. Oh well.
     
  14. May 7, 2009 #634 of 10413
    moyekj

    moyekj Well-Known Member

    11,142
    31
    Jan 23, 2006
    Mission...
    Makes sense. I've updated the documentation example to use quotes around the wperl path and the kmttg.pl path so hopefully this problem can be avoided in the future.
     
  15. May 9, 2009 #635 of 10413
    atlanta-mike

    atlanta-mike New Member

    3
    0
    May 9, 2009
    I must be doing something wrong. I can't get the "Add files" button to work. I first loaded the program on my WHS machine and figured it must be something with WHS. So I tried a Win-XP machine and got the same results. Here is some more info:

    kmttg version - v0.5n
    Pearl version - 5.8.0.802

    I have tried a local drive path and the network path I really want, neither worked. When I click on the "Add files" button, I get the following message in the Pearl window:

    Tk::Error: unknown option "-multiple", must be -defaultextension, -filetypes, -i
    nitialdir, -initialfile, -parent or -title at Z:/Perl/site/lib/Tk.pm line 271.
    Tk callback for tk_getOpenFile
    [\&main::selectFileCB]
    Tk callback for .top.addFile
    Tk::__ANON__ at Z:/Perl/site/lib/Tk.pm line 228
    Tk::Button::butUp at Z:/Perl/site/lib/Tk/Button.pm line 111
    (command bound to event)


    Any ideas what I am doing wrong?


    Mike
     
  16. May 9, 2009 #636 of 10413
    moyekj

    moyekj Well-Known Member

    11,142
    31
    Jan 23, 2006
    Mission...
    Sounds like older versions of Perl/Tk don't support the -multiple option in tk_getOpenFile function. Easy fix is to delete the "-multiple 1" on line 6181 of kmttg.pl v0.5n. Better fix if you want to be able to select multiple files at once from file browser is to upgrade to later version of Perl (I'm on 5.10).
     
  17. May 10, 2009 #637 of 10413
    Morlane

    Morlane New Member

    2
    0
    Jan 27, 2008
    Is there any way to set up the background job to download ALL shows from the Tivo, rather than specifying specific programs?

    I've got 3 people in the house that are trying to get stuff down to our individual PCs off of 2 Tivo's using Tivo Desktop. We constantly have problems with too many connections and/or one of our machines basically getting locked out and getting no downloads because the other 2 are always keeping it busy.

    My idea is to use kmttg to be the sole download agent to get things off the Tivo's, decrypt them, and then allow us to pull just the shows we're interested in to our systems from the kmttg system.

    I'd rather not have to specify every show, and have them all moved down so I can sort through them after decrypting.
     
  18. May 10, 2009 #638 of 10413
    atlanta-mike

    atlanta-mike New Member

    3
    0
    May 9, 2009
    OK, loaded Perl 5.10 build 1004 and now when I click on kmttg.pl the command window opens for a split second and then closes and kmttg never opens. Any ideas? Do I need to reinstall kmttg after loading a new perl version?


    Mike
     
  19. May 10, 2009 #639 of 10413
    moyekj

    moyekj Well-Known Member

    11,142
    31
    Jan 23, 2006
    Mission...
    As documented, Perl 5.10 does not come with Tk, so it's likely you need to install Tk first. Follow instructions given here to install the Tk module.
     
  20. May 10, 2009 #640 of 10413
    moyekj

    moyekj Well-Known Member

    11,142
    31
    Jan 23, 2006
    Mission...
    I will document this since it's been asked before. You setup a title with ".*" as the title keyword (without the quotes).

    i.e. in auto transfers configuration:
    Type=title title=.*
     

Share This Page