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 14, 2011 #3081 of 10413
    krar4

    krar4 New Member

    57
    0
    Dec 21, 2002
    IL
    Kevin - Thanks for the quick reply. I'll give VRD Plus a try tonight when I get home.

    Is it possible to incorporate VRD QS Fix into the kmttg process so that it completes all of the actions in one step as it currently does without VRD QS? I like to choose several shows and start kmttg processing in the evening so the completed files are available in the morning. Does the VRD QS Fix step have to be completed as a standalone option and then restart processing by kmttg in the morning to finish the whole process?

    Thanks,
    Rick
     
  2. Mar 14, 2011 #3082 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    VRD QS Fix is fully integrated in kmttg, just enable the check mark for that task once you have VRD installed and configured. (kmttg runs VRD in batch mode in the background just like with the other tasks). Be sure to read the Wiki page regarding VRD configuration.
     
  3. Mar 14, 2011 #3083 of 10413
    krar4

    krar4 New Member

    57
    0
    Dec 21, 2002
    IL
    Kevin - How cool! You do an incredible job, and your program is phenomenal. Count me as a fan!

    In fact - When I recently bought my Premiere TiVo, I was talking with a guy in TiVo's Tech Support group. I told him all about kmttg, and he said he knew several of his coworkers who would be interested in your program. He was going to pass the word.

    Thanks again!
    Rick
     
  4. Mar 15, 2011 #3084 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    "album" metadata is one of several fields that is filled (with title and season information if available in the pyTivo metadata txt file) during the AtomicParsley task run. If indeed AtomicParsley is being run you should be able to see the full command line that was used by kmttg and verify what fields were filled.
    NOTE: You can run AtomicParsley task manually by switching to FILES tab and locating your mp4 file (and accompanying metadata file) and then clicking on Run AtomicParsley button. That's a good way of testing things out.
     
  5. Mar 15, 2011 #3085 of 10413
    krar4

    krar4 New Member

    57
    0
    Dec 21, 2002
    IL
    Kevin - I downloaded VRD and it looks like I have configured VRD correctly with kmttg. I got the VRD Scripts copied into the kmttg subdirectory (that was the initial error that occurred). The job is still bombing on me, though. The job makes it through download and decrypt without problem. Here is the message I receive once it bombs during VRD QSFix:

    >> Running qsfix on C:\kmttg\Everybody Loves Raymond - Sleepover at Peggys (03_14_2011).mpg ...
    C:\Windows\system32\cscript.exe //nologo C:\kmttg\VRDscripts\qsfix.vbs "C:\kmttg\Everybody Loves Raymond - Sleepover at Peggys (03_14_2011).mpg" "C:\kmttg\Everybody Loves Raymond - Sleepover at Peggys (03_14_2011).mpg.qsfix" /l:C:\Users\Rick\AppData\Local\Temp\VRDLock6318322040559579003.tmp
    qsfix failed (exit code: 0 ) - check command: C:\Windows\system32\cscript.exe //nologo C:\kmttg\VRDscripts\qsfix.vbs "C:\kmttg\Everybody Loves Raymond - Sleepover at Peggys (03_14_2011).mpg" "C:\kmttg\Everybody Loves Raymond - Sleepover at Peggys (03_14_2011).mpg.qsfix" /l:C:\Users\Rick\AppData\Local\Temp\VRDLock6318322040559579003.tmp
    C:\kmttg\VRDscripts\qsfix.vbs(43, 4) WScript.CreateObject: Could not locate automation class named "VideoReDo.VideoReDoSilent".
    >>

    What does that mean, and how do I resolve it?

    Thanks,
    Rick
     
  6. Mar 15, 2011 #3086 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    Look at the VRD configuration Wiki:
    http://code.google.com/p/kmttg/wiki/VideoRedo_configuration
     
  7. Mar 15, 2011 #3087 of 10413
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,738
    8
    Apr 6, 2000
    SF Bay Area
    Looks like there are some errors, take a look at the above underlined.
     
  8. Mar 15, 2011 #3088 of 10413
    krar4

    krar4 New Member

    57
    0
    Dec 21, 2002
    IL
    Kevin - In case it hasn't been said here before,YOU'RE AMAZING! Your tips fixed the problem so audio sync isn't an issue for me any longer.

    Thanks!!!

    Rick
     
  9. Mar 20, 2011 #3089 of 10413
    ACraigL

    ACraigL Member

    694
    0
    Feb 12, 2003
    Thanks for the reply. I checked the log and indeed 'albumartist' and not 'album' metadata is being saved to the file. I'm not a pytivo user, as kmttg has basically spoon-fed me very well to this point :).

    Can I configure the AP call to include this meta tag, or is this hard-codedin the app? All the data I need is already there; I just want to instruct AP to insert it, during or after (see next post) is fine either way.
     
  10. Mar 20, 2011 #3090 of 10413
    ACraigL

    ACraigL Member

    694
    0
    Feb 12, 2003
    Let me restate the question...
    I know I can insert the metadata via a batch file, called after the conversion. Any suggestions on the command-line values during the automated run? Can I just use %title% or is there something different to tell kmttg what metadata to use while processing a file?
     
  11. Mar 20, 2011 #3091 of 10413
    ACraigL

    ACraigL Member

    694
    0
    Feb 12, 2003
    I think I have it set now... I'm passing [encodeFile] into the custom command, and my batch script is:

    Code:
    D:\Downloads\TiVo\kmttg\AtomicParsley\AtomicParsley.exe %1 --album "%~n1" --overWrite
    This should take the path of the encoded file, and write the album metadata to the file based on the filename (which is also the title in this case).

    My new concern is that I can't download anything via kmttg. I keep getting an error, whether I use curl or java. The curl error is:

    curl: (23) Failed writing body (898 != 1460)

    Any ideas? I can download manually via the 'now playing' webpage on the tivo, so not sure why this is happening, and not sure when it broke.

    Help!
     
  12. Mar 20, 2011 #3092 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    Sounds like a disk space problem. Check space available of destination folder.
     
  13. Mar 20, 2011 #3093 of 10413
    ACraigL

    ACraigL Member

    694
    0
    Feb 12, 2003
    I did... 167gb free :(
    Any other reason this could error?
     
  14. Mar 20, 2011 #3094 of 10413
    ACraigL

    ACraigL Member

    694
    0
    Feb 12, 2003
    Ah! Got it. Turns out the 'Combine download and tivodecode decrypt' setting was the cuprit. Once I unchecked that the files resumed the ability to download.

    This has been set this way for some time, as I recall, but I have no idea why its a problem now.
     
  15. Mar 20, 2011 #3095 of 10413
    ACraigL

    ACraigL Member

    694
    0
    Feb 12, 2003
    Just a quick follow-up... my batch file using the code above worked perfectly. I'm in good shape now. If it's possible to consider adding the album tag (using the movie/showname) for a future version, I'd appreciate it, but all is well now.

    Thanks!
     
  16. Mar 25, 2011 #3096 of 10413
    jsprain

    jsprain New Member

    4
    0
    Jan 18, 2007
    I am having this same issue with files from my Premiere...I will try this and see if it works. However, I wanted to add a note that the file downloaded by kmttg is unreadable by VideoRedo as well (tried to open there and it crashes VideoRedo). I did a mediainfo on the file and got the following:

    General
    Complete name : C:\Users\T and J Sprain\Downloads\I Love Lucy.TiVo
    Format : MPEG-PS
    File size : 578 MiB
    Duration : 29mn 59s
    Overall bit rate : 2 695 Kbps

    Video #1
    ID : 224 (0xE0)
    Format : MPEG Video
    Format version : Version 2
    Format profile : Main@Main
    Format settings, Matrix : Default
    Duration : 29mn 59s
    Bit rate mode : Variable
    Nominal bit rate : 15.0 Mbps
    Width : 704 pixels
    Height : 480 pixels
    Display aspect ratio : 4/3
    Frame rate : 29.970 fps
    Colorimetry : 4:2:0
    Scan type : Interlaced
    Scan order : Top Field First
    Bits/(Pixel*Frame) : 1.481

    Plus a bunch more info for Video #1, #2, #3, etc., Audio #1, #2, #3, etc. and Text #1, #2, #3 etc.

    Just wondering if the file is somehow corrupt. I have tried to download it both with kmttg and directly logging into the Tivo and downloading the PS file. This didn't help either.

    J
     
  17. Mar 26, 2011 #3097 of 10413
    Phantom Gremlin

    Phantom Gremlin New Member

    1,555
    0
    Jun 20, 2002
    Tualatin,...
    You do know that if you download a .TiVo file directly from your TiVo (using its web server), that the file you get is encrypted? You can run mediainfo on it and it will report some basic information. However, that's as far as it goes. You must decrypt it using something like tivodecode before a program like vlc will play it.

    kmttg will run tivodecode for you, but you didn't mention whether you did that step manually when you tried downloading the PS file by yourself.

    Also, I'm too lazy to try tivodecode again (it's worked fine for me on many previous occasions). So I don't know exactly what "NO VERIFY" works around. But my first guess would be that it keeps trying to decode even if the MAK is incorrect. If so, then you're getting nothing but garbage out. You can't bypass encryption just by wishing it away (e.g. using a NO VERIFY switch!) :)
     
  18. Mar 26, 2011 #3098 of 10413
    Phantom Gremlin

    Phantom Gremlin New Member

    1,555
    0
    Jun 20, 2002
    Tualatin,...
    This isn't necessarily in response to jsprain, since he didn't say anything about NO VERIFY.

    Curiosity got the better of me, so I decided to find out what NO VERIFY does. The following comes from the tivodecode sourceforge readme:
    Usage: ./objects.dir/tivodecode [--help] [--verbose|-v] [--no-verify|-n] {--mak|-m} mak [{--out|-o} outfile] <tivofile>

    --mak, -m media access key (required)
    --out, -o output file (default stdout)
    --verbose, -v verbose
    --no-verify, -n do not verify MAK while decoding
    --help print this help and exit

    The key is the following:

    --no-verify, -n do not verify MAK while decoding

    To be clear. Without specifying the correct MAK, you will get nothing but garbage out. End of story.

    It's quite possible that you need to add --no-verify to work around some sort of program or datastream bugs. But you still must specify the correct MAK. Without that you won't decrypt properly.
     
  19. Mar 30, 2011 #3099 of 10413
    sender_name

    sender_name I remember XM 202!

    227
    0
    Feb 11, 2005
    Northboro Ma
    Has anyone defined what each of the settings are for handbrake? I am trying to figure out if I am using all my cores and what I can change to do custom encodings to match Scene standards for rips..

    For instance here is the handbrake HD_Television
    Code:
    # Description (single line, keep short)
    <description>
    Handbrake television: mkv container, same res h.264 video, aac audio
    
    # Encode command or script (single line)
    # Known keywords: FFMPEG, MENCODER, HANDBRAKE, PERL, INPUT, OUTPUT, PWD, CPU_CORES, SRTFILE
    <command>
    HANDBRAKE -i INPUT --cpu CPU_CORES -t 1 -c 1 -f mkv --large-file --decomb  --detelecine -e x264 -b 1300 -2  -T  -a 1 -E faac -B 160 -6 dpl2 -D 1 -x ref=3:mixed-refs=1:bframes=6:weightb=1:direct=auto:b-pyramid=1:me=umh:subq=9:analyse=all:8x8dct=1:trellis=1:nr=150:no-fast-pskip=1:psy-rd=1,1 -v -o OUTPUT
    
    # Encoded output file extension
    <extension>
    mkv
    
    Is there a directory of what each setting is/means?

    Thanks!
     
  20. Mar 30, 2011 #3100 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...

Share This Page