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. Feb 15, 2009 #501 of 10802
    ehagberg

    ehagberg Member

    93
    0
    Dec 27, 2004
    Montclair, NJ
    I've now seen the behavior - twice - where a show isn't downloaded, but it appears that curl and kmttg think that all's fine and the program tries to do further operations on the truncated (I believe it's either zero-length or very small) file, which of course fail.

    I've only ever seen this happen when doing a batch of something like 5 or 7 shows all at once, and selecting all checkboxes except for metadata and encode. And I'm using VRD.

    Unfortunately, I don't have the truncated/zero length files to inspect and see whether there's a good indication of what went wrong when curl attempted to download.

    I also had a case this morning, while trying to reproduce this problem, where the downloads from the TiVo all worked, but when kmttg went to run adcut, it got this error:

    >> CUTTING COMMERCIALS IN I:\kmttg\CSI Crime Scene Investigation - Deep Fried and Minty Fresh_Thu_Feb_12.mpg ...
    "C:\WINXP\system32\cscript.exe" //nologo "C:\Program Files\VideoReDoPlus\\vp.vbs" "I:\kmttg\CSI Crime Scene Investigation - Deep Fried and Minty Fresh_Thu_Feb_12.VPrj" "I:\kmttg\CSI Crime Scene Investigation - Deep Fried and Minty Fresh_Thu_Feb_12_cut.mpg" /t1 /d /q /na
    *ERROR* adcut failed (exit code: 3) - check above command
    *ERROR* video file not given or non-existent: I:\kmttg\CSI Crime Scene Investigation - Deep Fried and Minty Fresh_Thu_Feb_12_cut.mpg

    even though the source file to generate the *_cut.mpg and the .VPrj file were both there, and worked fine when I re-ran the same command against the files by hand.
     
  2. Feb 15, 2009 #502 of 10802
    moyekj

    moyekj Well-Known Member

    11,337
    119
    Jan 23, 2006
    Mission...
    ehagberg, if you go to FILES mode in kmttg and repeat just the comcut step again starting with the same .mpg file do you get the same error again?
     
  3. Feb 15, 2009 #503 of 10802
    moyekj

    moyekj Well-Known Member

    11,337
    119
    Jan 23, 2006
    Mission...
    ------------------
    v0.5i (02/15/2009)
    ------------------
    ENHANCEMENTS
    * Added capbility for advanced, conditional keywords in file naming template.
    Thus for example one can now define something like:
    [mainTitle]["_Ep#" EpisodeNumber]_[wday]_[month]_[mday]
    In this example "_Ep#xxx" will be included in file name only if EpisodeNumber
    exists, otherwise "_Ep#" is not included in the file name.
    Consult the html documentation for more details.

    FIXES
    * Remove special character '$' for file names originating from Tivos.
    Files with that character got truncated in steps subsequent to download
    leading to problems.
    * Ensure Episode Number is always 3 digits.
    * For metadata creation no longer include episodeTitle as part of title since
    the metadata parsing issue has now been fixed in recent versions of pyTivo.
     
  4. Feb 15, 2009 #504 of 10802
    ehagberg

    ehagberg Member

    93
    0
    Dec 27, 2004
    Montclair, NJ
    Starting with the same file, it works just fine.

    As far as the failing downloads from the TiVo, I got another one to happen and this time checked the content of the file. It has this:

    <h2>Bad Request</h2>
    Unable to initialize videomgr pipeline: err 0x1d0012

    So it appears that something goes wrong, but curl doesn't realize it and kmttg is only checking for "html" "busy" or "failed" in that file to detect failure. Of course, even if "bad request" were checked for, it would only allow the failure to be detected and wouldn't cause a retry, so I'd still be re-running the download again and wondering why it doesn't "just work."
     
  5. Feb 15, 2009 #505 of 10802
    moyekj

    moyekj Well-Known Member

    11,337
    119
    Jan 23, 2006
    Mission...
    I very rarely get a failure to download. If you are getting that problem frequently perhaps a Tivo reboot is in order if you have not already tried that.
     
  6. Feb 20, 2009 #506 of 10802
    nvt

    nvt New Member

    60
    0
    Aug 19, 2003
    MD
    Thanks for the feedback....it turns out that Videora uses ffmpeg...so creating a batch file is based around this tool
    This forum thread had a suggested batch file
    http://www.redkawa.com/forums/showthread.php?t=4246
    But this was directed at VOB files

    If I understand how this works I am using the same tool in kmttg as in Videora just a different interface so they should both produce the same result assuming version etc are the same?
     
  7. Feb 20, 2009 #507 of 10802
    moyekj

    moyekj Well-Known Member

    11,337
    119
    Jan 23, 2006
    Mission...
    Then it could just be a matter of the particular ffmpeg version being used. Note that you can configure path to ffmpeg in kmttg so you can grab the ffmpeg.exe used by Videora. It could also be the particular encoding arguments which make a difference. If you can find out the particular ffmpeg recipe used by Videora that's working for you then it would be trivial to create a .enc file for kmttg that does the same.
     
  8. Feb 21, 2009 #508 of 10802
    jadekitten

    jadekitten New Member

    4
    0
    Feb 21, 2009
    i am about as new at this as i can possibly be but can i setup encoding to divx/xvid? also i'd like to say thanks cuz galleon refuses to see my tivo, but kmttg does, if anyone knows why let me know, i put my gateway into dmz so it isn't that, also it seems the outputted mpg file is still only 480x480 which is why i hate tivo desktop, can i set it higher somehow?
     
  9. Feb 21, 2009 #509 of 10802
    moyekj

    moyekj Well-Known Member

    11,337
    119
    Jan 23, 2006
    Mission...
    The ipod_high_res encoding profile is 640x480 xvid 1500 Kbps video with aac audio. If that's not good enough quality you can make a copy of ipod_hig_res.enc to a different name ending in .enc and change the resolution (-s 640x480) and the bitrate (-b 1500k). Then next time you start kmttg your encoding name will show up in the list.
     
  10. Feb 21, 2009 #510 of 10802
    jadekitten

    jadekitten New Member

    4
    0
    Feb 21, 2009
    that's perfect thianks
     
  11. Feb 22, 2009 #511 of 10802
    citivolus

    citivolus New Member

    93
    0
    Jul 3, 2002
    if anyone does have a profile or ffmpeg version # that keeps the video in sync when using comskip + VideoReDo, please do post it as I can't avoid the sync issues in my setup.
     
  12. Feb 22, 2009 #512 of 10802
    jadekitten

    jadekitten New Member

    4
    0
    Feb 21, 2009
    can you hep? it really doesn't say what's wrong

    >> Running VRD qsfix on C:\kmttg\kmttg\Josh and S.A.M._Tue_Feb_10.mpg ...
    "C:\WINDOWS\system32\cscript.exe" //nologo "C:\Program Files\VideoReDoTVSuite\vp.vbs" "C:\kmttg\kmttg\Josh and S.A.M._Tue_Feb_10.mpg" "C:\kmttg\kmttg\Josh and S.A.M._Tue_Feb_10.mpg.qsfix" /t1 /d /q /na
    C:\kmttg\kmttg\Josh and S.A.M._Tue_Feb_10.mpg.qsfix size=0.00 MB elapsed=00:00:09 (0.00 Mbps)
    *ERROR* qsfix failed (exit code: 0) - check above qsfix command
     
  13. Feb 22, 2009 #513 of 10802
    moyekj

    moyekj Well-Known Member

    11,337
    119
    Jan 23, 2006
    Mission...
    Well the command is running for 9/10 of a second and generating a 0 size file. Check that:
    1. C:\kmttg\kmttg\Josh and S.A.M._Tue_Feb_10.mpg looks proper (not zero size)
    2. Paste the entire cscript call above into a run.bat file and execute the run.bat file from a cmd window to see if there are any errors reported.
     
  14. Feb 22, 2009 #514 of 10802
    doormat

    doormat New Member

    146
    0
    Sep 15, 2004
    Vegas
    OK I setup kmttg, however the resulting files I'm getting from Decrypt+Comskip+Comcut aren't working at all. I copied out the TiVo and the Decrypt files and they look OK. Its the comskip and cut that seems to be an issue. Is there config stuff that I need to change to get it to work right? The source file is an epsiode of Big Bang theory in HD.
     
  15. Feb 25, 2009 #515 of 10802
    moyekj

    moyekj Well-Known Member

    11,337
    119
    Jan 23, 2006
    Mission...
    There is an issue with file name keyword parsing in kmttg 0.5i (latest release) where in some cases characters are incorrectly being treated as keywords and being replaced. Example:
    'Terminator: The Sarah Connor Chronicles'
    The "min" in Terminator is replaced with # minutes.
    I will issue a fix for this issue probably later tonight.
     
  16. Feb 26, 2009 #516 of 10802
    moyekj

    moyekj Well-Known Member

    11,337
    119
    Jan 23, 2006
    Mission...
    ------------------
    v0.5j (02/25/2009)
    ------------------
    FIXES
    * With prior version in some cases characters were incorrectly being treated
    as keywords and being replaced. Example:
    'Terminator: The Sarah Connor Chronicles'
    The "min" in Terminator was being replaced with # minutes.
     
  17. Feb 27, 2009 #517 of 10802
    fyodor

    fyodor Member

    535
    1
    Sep 19, 2006
    Thanks for all of your work on this. Are there any plans to integrate some sort of auto-push back to the Tivo, now that there's MP4 support-I am wistful for my SageTV days when I had autocompression.

    F



     
  18. Feb 27, 2009 #518 of 10802
    moyekj

    moyekj Well-Known Member

    11,337
    119
    Jan 23, 2006
    Mission...
    Haven't really considered it, especially as pyTivo can do native mp4 pushes now. Any reason to not use pyTivo? I know that currently pyTivo pushes are a manual process, but it wouldn't take much effort by pyTivo authors to make them automated like in Tivo Desktop +.
     
  19. Feb 27, 2009 #519 of 10802
    fyodor

    fyodor Member

    535
    1
    Sep 19, 2006
    I guess that there's appeal to having it be automated. Does KMTTG wait until the transcoding is complete before putting it in the destination directory?

     
  20. Feb 27, 2009 #520 of 10802
    moyekj

    moyekj Well-Known Member

    11,337
    119
    Jan 23, 2006
    Mission...
    Currently it transcodes directly into destination directory, but I could change that behavior.
     

Share This Page