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. Mar 18, 2010 #2041 of 10616
    moyekj

    moyekj Well-Known Member

    11,266
    81
    Jan 23, 2006
    Mission...
    I explained the algorithm in post above:
    http://www.tivocommunity.com/tivo-vb/showthread.php?p=7824235#post7824235
    Compared to download times qsfix jobs are really fast so should not be a bottleneck. I think you were messing things up when removing auto.history file causing a bunch of qsfix jobs to run, and they were not running properly in service mode for you for some reason. With 93a beta version I pointed you to you don't need remove auto.history anymore since the non-unique ProgramId problem has a good workaround now.
     
  2. Mar 18, 2010 #2042 of 10616
    miguelakiira

    miguelakiira New Member

    37
    0
    Jan 26, 2010
    Thanks moyekj, I will continue to use 93a for the next few days and see how it goes. Kmttg rules!
     
  3. Mar 18, 2010 #2043 of 10616
    moyekj

    moyekj Well-Known Member

    11,266
    81
    Jan 23, 2006
    Mission...
    Obviously if you haven't already you will need to update your auto transfers setup for the programs that don't have unique ProgramId for the fix to work.
     
  4. Mar 21, 2010 #2044 of 10616
    cweb

    cweb Member

    106
    0
    May 29, 2004
    I was downloading and converting approximately 10 shows when kmttg crashed and had to be restarted. This happened during the last encode and just before the queued atomic for each show was to start. So all the shows are good (except for the last one), but contain no metadata.

    Is there a way to add the shows and have kmttg do just the atomic for each one?
     
  5. Mar 21, 2010 #2045 of 10616
    moyekj

    moyekj Well-Known Member

    11,266
    81
    Jan 23, 2006
    Mission...
    Not with a released version. The jobs are scheduled automatically at end of encode. However you can do so with this beta version:
    http://kmttg.googlecode.com/files/kmttg_issue90c.zip
    (Rename your kmttg.jar and replace with one in above zip file).

    IMPORTANT: Make sure in kmttg configuration you TURN OFF "Overwrite existing files" option. Then you can go to FILES tab and add all your mp4 or m4v files (change Files of Type to "All Files") and for task set simply enable "encode" and nothing else. Since files already exist and overwrite files is turned off the encode step will be skipped but atomic parsley jobs will still run.
     
  6. Mar 21, 2010 #2046 of 10616
    tmarnik

    tmarnik New Member

    4
    0
    Mar 29, 2009
    This looks like a major improvement over Tivo Desktop, and I intend to use it soon. I found this while searching for a way to stream a show that Tivo is currently recording to my PC.

    Are there any plans to add that feature in the future, or is it just not possible?
     
  7. Mar 21, 2010 #2047 of 10616
    moyekj

    moyekj Well-Known Member

    11,266
    81
    Jan 23, 2006
    Mission...
    It's not physically possible, I've tried. The TiVo web server refuses to serve up a file that is still recording.
     
  8. Mar 21, 2010 #2048 of 10616
    wmcbrine

    wmcbrine Ziphead

    10,404
    43
    Aug 2, 2003
    Transfer of currently recording shows is blocked by the TiVo. This appears to be a policy decision by TiVo (appeasing some content fascists), rather than a technical limitation -- although "streaming" would be questionable anyway, given the usual speed of TTG.
     
  9. Mar 21, 2010 #2049 of 10616
    cweb

    cweb Member

    106
    0
    May 29, 2004
    I tried the beta version and turned off the "overwrite existing files" option, but instead of just doing the "atomic" it starts to re-encode the mp4 file, The new re-encoding file gets created in the root directory of "Encode Output Dir" instead of the show folder.

    What might I be doing wrong? In the start options, I am only checking the encode option.
     
  10. Mar 21, 2010 #2050 of 10616
    moyekj

    moyekj Well-Known Member

    11,266
    81
    Jan 23, 2006
    Mission...
    From FILES tab select mp4 file that is already in the "Encode Output Dir" as the starting point. i.e. That is where the mp4 file would be created in normal flow, and since it's already there and you have overwrite turned off then kmttg skips the encode and just runs atomic. If your mp4 files are not already in "Encode Output Dir" location then move them there 1st.
    NOTE: Make sure the pyTivo metadata files are also in the "Encode Output Dir" along with the mp4 files.
     
  11. Mar 21, 2010 #2051 of 10616
    cweb

    cweb Member

    106
    0
    May 29, 2004
    Moyekj, thanksnfor the quick responses. You solution now works.

    However, it also highlight a dynamic of kmttg I have been curious about. In the settings file, I am using a file naming convention that results in a folder being created where the downloaded/converted show is put ([mainTitle][/][mainTitle] ["Ep" EpisodeNumber " "][year]-[monthNum]-[mday] [episodeTitle]). If downloading from the Tivo to start, the show get put in the expected folder. However, if the "add file" option is used to add a .tivo, Mpeg, or mp4 file, the the resulting processed file ends up in the top level of the output directory instead of the show's folder where the original was located, as I would have expected (i.e., the processed result for the show Sanctuary's .tivo file ends up in "z:\" instead of "z:\Sanctuary\").

    Is this behavior by choice?
     
  12. Mar 21, 2010 #2052 of 10616
    moyekj

    moyekj Well-Known Member

    11,266
    81
    Jan 23, 2006
    Mission...
    Yes, in general the "File Naming" template applies to the downloaded TiVo file and subsequent files just cue off that name. For FILES mode the starting cue is the starting file name (which doesn't have sub-folders).
     
  13. Mar 22, 2010 #2053 of 10616
    moyekj

    moyekj Well-Known Member

    11,266
    81
    Jan 23, 2006
    Mission...
    The latest VideoRedo TVSuite 4 release (598) changed the reporting of encoding output profiles files a little which required a slight update to kmttg parser. As a result currently if you update to version 598 of VRD the encoding profiles won't show up any longer. This is already fixed in SVN and I will probably have a release sometime this week including this update among several other things.
     
  14. Mar 24, 2010 #2054 of 10616
    epstewart

    epstewart Member

    655
    0
    Mar 1, 2003
    I have begun trying to find my way around in kmttg, and I like what I see.

    My TiVo files generally have closed captions, important to me since I don't hear well. Decrypting them to MPEG-2 loses the captions.

    I've been able to use a Windows version of kmttg along with T2Sami to extract the captions, but my computers are both Macs and T2Sami doesn't work on a Mac. I run Windows XP in Parallels Desktop 5 for Mac emulation software. When I run kmttg there I frequently find that some of its window content just doesn't show up ... especially the Configure window. But I can run standalone T2Sami under Windows with success, so that's not a big problem. kmttg on Mac, meanwhile, generates decrypted MPEG-2 files from my TiVo transfers.

    Merging the captions files with the MPEG files to send back to a TiVo is what I'd like to do. At present I am not sure how to do that, though.

    The MPEG file that gets created by kmttg's 'decrypt' command (using tivodecode) won't actually play in QuickTime, however. (It will play in Windows/Mac VLC or in MPlayer on the Mac.) Accordingly, it will not play in iSubtitle on the Mac.

    I have also started experimenting with ffmpegx on the Mac, which nominally can do the video-subtitle merging. I am not yet sure which of its output formats is best for, but I'd (ideally?) like to just pass through the MPEG-2 video and audio, with the subtitles superimposed over the video. My first attempt to do that failed immediately with an incomprehensible software error, so I changed to using the mencoder software that ffmpegx contains to produce captioned h.264 output at the original 1280x720 resolution. The encoding process is in progress as I write this, and it seems to be taking forever (over 5 hours and counting for a 1-hr. show).

    I understand that kmttg is also able to do equivalent mencoder encoding, so maybe I'm better off to use it (under Windows so T2Sami works).

    So I'm here to ask the experts:

    (1) How would you handle closed captions/subtitle merging, if you were me?

    (2) Do you recommend trying to keep the MPEG-2 output format and resolution, as I'm trying to do, or should I accept something with smaller file sizes like h.264? (I want the result to be playable on my computers and movable back to my TiVo for play there, with captions/subtitles visible in both cases.)

    (3) If I use h.264, should I keep the original 1280x720 resolution? (That seems very desirable to me, but it may be one of those niceties that would have to be sacrificed to get other things working to my satisfaction.)

    Thanks in advance for any help and advice ...
     
  15. Mar 24, 2010 #2055 of 10616
    AudioNutz

    AudioNutz New Member

    318
    0
    Nov 9, 2008
    That's what I thought too, but there is a version of T2Sami that will run on Mac. I'll see if I can include it the next time I create the Mac tools for Kevin.
     
  16. Mar 24, 2010 #2056 of 10616
    AudioNutz

    AudioNutz New Member

    318
    0
    Nov 9, 2008
    Ok,
    So I've got a version of T2Sami that runs on Mac. Tell me... I'm an idiot when it comes to closed captioning, how are you using T2Sami with kmttg on Windows?

    I see that kmttg is telling me that it would normally do "-f srt videofile", but when I get information on the Mac version of t2Sami I get:
    Code:
    /Applications/kmttg/t2sami/t2sami 
    Usage: /Applications/kmttg/t2sami/t2sami [--help] [opts...] <tivofile|mpgfile>
    
      --output-file, -o      write output to specified file
      --output-path, -p      output file location (default: same path as input file)
      --srt, -s              output SRT format instead of SAMI format
      --add-spaces, -S       add extra spaces that exist in the captions
      --sync-bias, -b        synchronization bias (sec.)
      --cutoff-duration, -c  cutoff duration (sec.)
      --channel, -a          closed caption channel to extract (1 or 2, default 1)
      --html-encode, -e      html encode non-ascii characters (SAMI format)
      --text-size, -z        text size (SAMI format)
      --text-weight, -w      text weight (SAMI format)
      --font-style, -y       font family (SAMI format)
      --quiet, -q            quiet mode
      --version, -V          print the version information and exit
      --help, -h             print this help and exit
    
    The file names specified for the output file or the tivo file may be -, which
    means stdout or stdin respectively
    
    It would appear that -f is an invalid option, according to the error that I see.
     
  17. Mar 24, 2010 #2057 of 10616
    moyekj

    moyekj Well-Known Member

    11,266
    81
    Jan 23, 2006
    Mission...
    Probably the t2sami distro you are using is very old. For example the current windows binary version is 3.2.x and a quick google search only turns up source code for 2.x. I'm pretty sure the author no longer distributes source code with more recent releases...
     
  18. Mar 24, 2010 #2058 of 10616
    jmemmott

    jmemmott New Member

    393
    0
    Jul 12, 2003
    Santa Cruz, CA
    If you are running t2sami.exe, you are using the tivodecode version which is at least two years old. While it will work, it has a number of known issues in the captions it generates. With the release of ccextractor and my own admitted resource limitations for supporting multiplatform development I have given my support to ccextractor for use on non-Windows platforms.

    I still personally use t2sami so it is still being improved and released but only for Windows or Windows environments such as Wine. This window version has four components none of which is "t2sami.exe".

    1. T2Desktop.exe

    A GUI "desktop" environment that is able download programs extract caption and convert the .tivo files to other media formats. It is also able to convert other media formats to Tivo compatible mpegs with the captions converted to closed captions

    2. t2extract.exe

    A command line utility that is able to extract captions from .tivo files and format them into various subtile text formats such as .srt, .sami and timed text files.

    3. t2merge.exe

    A command line utility that is able to merge a Tivo compatible mpeg or vob files with .srt captions to create an mpeg file containing closed captions that will play back on a Tivo.

    4. T2Player.exe

    A GUI utility that can play back a .tivo file using DirectShow with closed captions and a captioning transcript without the need to extract the captions before playback.
     
  19. Mar 24, 2010 #2059 of 10616
    epstewart

    epstewart Member

    655
    0
    Mar 1, 2003
    I can confirm that the 2.x version is old. I contacted jmemmott, author of T2Sami, by e-mail. He said:

    I have not tried T2Sami v. 2.0, though I have downloaded it to my Mac. Right now I am using v. 3.2.0072 on Windows.
     
  20. Mar 24, 2010 #2060 of 10616
    epstewart

    epstewart Member

    655
    0
    Mar 1, 2003
    James,

    Your post came in while I was composing my previous one. I'm the guy who contacted you by e-mail recently to ask whether there is a current Mac version of T2Sami. Thanks for your helpful reply, quoted in my previous post to this thread.

    I would like to ask you how you recommend merging the .srt or .smi output of T2Sami for Windows with a downloaded TiVo file, or with its decoded .mpg version, or with whatever derived video format you prefer to use. How do you actually take advantage of the T2Sami output, in other words? Do you have the ability to move the captioned or subtitled result back to the TiVo for use there? Thanks.
     

Share This Page