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. Jun 1, 2010 #2381 of 10412
    ellinj

    ellinj Seems Very Friendly TCF Club

    12,360
    8
    Feb 26, 2002
    RI
    Where is the documentation for custom jobs? I can't seem to find the list of substitution variables.
     
  2. Jun 1, 2010 #2382 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    In the configuration the "Available file args" cyclic field right below the "custom command" field shows the available file arguments you can use for the custom command, basically the following:
    Code:
    [tivoFile]
    [metaFile]
    [mpegFile]
    [mpegFile_cut]
    [srtFile]
    [encodeFile]
    
    Also, if your full path to custom command file contains spaces be sure to put double quotes around the whole file name.
     
  3. Jun 2, 2010 #2383 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    FYI. Looks like TiVo screwed up something temporarily which disables DVR name & TTG/MRV capabilities among other things (you also can't get list of shows from affected TiVos via https). One of my lifetime S3s was affected so it may be related to time of day your TiVo connected home yesterday or day before. See these other threads for examples:
    http://www.tivocommunity.com/tivo-vb/showthread.php?t=449855
    http://www.tivocommunity.com/tivo-vb/showthread.php?t=449847
    http://www.tivocommunity.com/tivo-vb/showthread.php?t=449896

    A forced net connect seems to fix the issue if you run into the problem.
     
  4. Jun 2, 2010 #2384 of 10412
    aaronwt

    aaronwt UHD Addict

    19,173
    21
    Jan 31, 2002
    Northern...

    These seem to be the same issues I've been having on/off since since the premiere came out where I had issues with the naming of my boxes and transfer porblems because the Media Access key would disappear or change.
     
  5. Jun 3, 2010 #2385 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    This is getting annoying. Now the same S3 that was having trouble does not advertise itself properly via Bonjour so my other S3 can't see it on the network for MRV purposes and pyTivo can't find it either. TTG currently does work though... I guess I'll try a net connect again to see if it resolves this.
     
  6. Jun 3, 2010 #2386 of 10412
    orev

    orev New Member

    81
    0
    Feb 16, 2003
    I'm a huge fan of kmttg. Thanks for all the great work on it.

    I've been using it to download TDS and TCR and convert them to iPhone format using the handbrake profile for iphone. I've been doing this for a long time, but now this week the resulting files will add to iTunes but iTunes complains that they cannot be synced to the iphone. I've tried the ffmpeg profile, and it does work, but the files are much bigger due to mpeg4 vs h264 encoding.

    Has anyone else seen this? I cannot think of anything that I have changed on the system. Same versions of itunes, iphone OS, etc...

    Here is the ffmpeg output from the resulting file that doesn't work:
    This file does work:
    I notice there's a discrepancy in the framerate, but unfortunately I don't have any of the files from back when it used to work correctly. Anyone have ideas?
     
  7. Jun 3, 2010 #2387 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    orev, try the following ff_ipod_h264 profile. Put that file under the "encode" folder of your kmttg installation.
     
  8. Jun 3, 2010 #2388 of 10412
    orev

    orev New Member

    81
    0
    Feb 16, 2003
    Nice. I had been trying to work out an h264 command line for ffmpeg, but finally gave up on it. The file that profile generated was absolutely huge though (3x the source file), but it did sync to the phone without issue.

    Any idea on what parameters to use to reduce the bitrate? I'm trying -maxrate 250k -b 250k, but it doesn't seem to have any effect. The files are huge, as if the bitrate is being ignored completely.
     
  9. Jun 4, 2010 #2389 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    Ah yes I just realized that qmin & qmax are set way too low (lower => higher bitrate). Bump those numbers much higher say to 15-30 range and that should produce much smaller files.

    I've updated ff_ipod_h264 profile to use -qmin 15 -qmax 20. If you want even smaller files make them like 20 & 25 or keep going as high as you can tolerate the quality hit.

    EDIT: I updated profile again to remove the -bufsize restriction.
     
  10. Jun 8, 2010 #2390 of 10412
    orev

    orev New Member

    81
    0
    Feb 16, 2003
    I see that the docs say:
    `-maxrate bitrate'
    Set max video bitrate (in bit/s). Requires -bufsize to be set.
    so I'd guess that's needed since you're also using maxrate?

    I played with the settings more and settled on -qmin 25 -qmax 30 -b 250k. I'm going for passable video, which this produces (good enough for a talk show on such a small screen).

    However, I now notice an issue with the audio. It seems the handbrake aac codec is much better as I could push it down to 112k and it sounded just fine. ffmpeg however doesn't sound nearly the same until 256k. I'm thinking it might have something to do with how it's processing the stereo channels, but I don't see any controls for that in the ffmpeg docs. I've searched around but don't seem to be hitting the right keywords. Any ideas?
     
  11. Jun 9, 2010 #2391 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    ffmpeg switched to their own aac codec because of some GPL issue with libfaac which IMO was better, and in fact in most recent ffmpeg builds their own aac codec is listed as experimental. If 256k sounds good then stick with that - compared to video size it shouldn't affect total file size much. Now that one of my kids has an iPod Touch I was actually able to test out some encoding profiles and got the hb_ipod and hb_iphone profiles working properly and they will be part of next release. In case you want to go back to Handbrake 0.9.4 here they are (they both sync fine to the iPod Touch with obviously iPhone profile looking better but creating bigger file):

    hb_iphone.enc
    Code:
    # Description (single line, keep short)
    <description>
    Handbrake iPhone: mp4 container, res x=480 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 mp4 -X 480 -e x264 -q 20 -a 1 -E faac -B 128 -R 48 -6 dpl2 -D 0.0 -x level=30:cabac=0:ref=2:me=umh:bframes=0:subq=6:8x8dct=0:trellis=0:weightb=0 -v 1 -o OUTPUT
    
    # Encoded output file extension
    <extension>
    m4v
    
    hb_ipod.enc
    Code:
    # Description (single line, keep short)
    <description>
    Handbrake iPod: mp4 container, res x=320 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 mp4 -I -X 320 -e x264 -b 700 -a 1 -E faac -B 160 -R 48 -6 dpl2 -D 0.0 -x level=30:bframes=0:cabac=0:ref=2:vbv-maxrate=768:vbv-bufsize=2000:analyse=all:me=umh:no-fast-pskip=1:subq=6:8x8dct=0:trellis=0:weightb=0:mixed-refs=0 -v 1 -o OUTPUT
     
    # Encoded output file extension
    <extension>
    m4v
    
     
  12. Jun 10, 2010 #2392 of 10412
    orev

    orev New Member

    81
    0
    Feb 16, 2003
    Those profiles worked great for handbrake. Thanks for your great work on all of this!
     
  13. Jun 11, 2010 #2393 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    This release was focused on updating ffmpeg & handbrake ipod & iphone encoding profiles as well as some new features and implementation of user requests and contributions. There is now a Run AtomicParsley button available in FILES tab to be able to explicitly run AtomicParsley jobs to add information from pyTivo metadata files to mp4/m4v files.

    Consult release notes for details:
    http://code.google.com/p/kmttg/wiki/release_notes
     
  14. Jun 13, 2010 #2394 of 10412
    alan2k

    alan2k New Member

    5
    0
    Feb 28, 2007
    I have 2 Tivo HD's & 1 Tivo Series3. One of the Tivo HD's is now giving me "Empty reply from server" using kmttg. TivoDesktop of course does not work also. I have restarted and cold rebooted the Tivo box. I have rebooted the PC and upgraded to the latest version of kmttg. I have issued a reset web server. Still getting the error.

    Any one got any suggestions?

    Love kmttg! but this one is frustrating!

    Alan
     
  15. Jun 13, 2010 #2395 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    Could be that TiVo screwed up your account settings as recently happened to me. Go to TiVo Central-Messages&Settings-Account&System Information and make sure your DVR has a name and that TiVoToGo is set to a,a,a. If DVR name is not there then that's the problem. That is what happened to one of my lifetime TiVos. To fix that do a net connect until DVR name is set. You may have to login to tivo.com and change DVR Preferences, Save, Net Connect, change back, net connect etc. to toggle it.
    You can then test if things are working by using:
    https://<TiVoIP>
     
  16. Jun 14, 2010 #2396 of 10412
    richklein

    richklein New Member

    98
    0
    Feb 9, 2001
    Hi,

    Everything was working fine & I was pulling a few movies off my premiere. I get the following error now (it does pull the .tivo file):

    Code:
    A flashy new action hero's arrival creates upset in a community of toys that comes to life when people are absent. Animated. 
    SKIPPING METADATA GENERATION, FILE ALREADY EXISTS: H:\Pytivo\Toy Story (06_13_2010).mpg.txt
    SKIPPING DOWNLOAD, FILE ALREADY EXISTS: H:\Pytivo\Toy Story (06_13_2010).TiVo
    SKIPPING DECRYPT, FILE ALREADY EXISTS: H:\Pytivo\Toy Story (06_13_2010).mpg
    >> Running qsfix on H:\Pytivo\Toy Story (06_13_2010).mpg ...
    C:\Windows\system32\cscript.exe //nologo C:\Users\Rich\AppData\Local\Temp\VRD5263618563472574891.vbs "H:\Pytivo\Toy Story (06_13_2010).mpg" "H:\Pytivo\Toy Story (06_13_2010).mpg.qsfix" /l:C:\Users\Rich\AppData\Local\Temp\VRDLock6056864206170689011.tmp 
    qsfix failed (exit code: 3 ) - check command: C:\Windows\system32\cscript.exe //nologo C:\Users\Rich\AppData\Local\Temp\VRD5263618563472574891.vbs "H:\Pytivo\Toy Story (06_13_2010).mpg" "H:\Pytivo\Toy Story (06_13_2010).mpg.qsfix" /l:C:\Users\Rich\AppData\Local\Temp\VRDLock6056864206170689011.tmp 
    ? Unable to open file/project: H:\Pytivo\Toy Story (06_13_2010).mpg
    Any idea why I cant make a mpg now?

    Thanks,
    RIch
     
  17. Jun 14, 2010 #2397 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    richklein, what's the size of the .mpg file? Is it very small or empty? Sounds like perhaps the decrypt step may have failed. You should also check the .TiVo file size to see if that is very small or empty as well indicating a previous download failed. (Latest versions of kmttg have better checks for failed downloads so if not already using latest version of kmttg would recommed you do so).
    If either .TiVo or .mpg files are very small then you should remove them and start over with this title.
     
  18. Jun 14, 2010 #2398 of 10412
    richklein

    richklein New Member

    98
    0
    Feb 9, 2001
    Im not running the latest version. Do I just download & unzip over the old version?

    My file sizes are over 10gb so i think its getting the right .tivo file.

    EDIT: I did install the latest version & I copied my config.ini file over & I ended up with:

    >> Running qsfix on H:\Pytivo\Toy Story (06_13_2010).mpg ...
    C:\Windows\system32\cscript.exe //nologo C:\Users\Rich\AppData\Local\Temp\VRD5701556855928452129.vbs "H:\Pytivo\Toy Story (06_13_2010).mpg" "H:\Pytivo\Toy Story (06_13_2010).mpg.qsfix" /l:C:\Users\Rich\AppData\Local\Temp\VRDLock8805430252922243077.tmp
    qsfix failed (exit code: 3 ) - check command: C:\Windows\system32\cscript.exe //nologo C:\Users\Rich\AppData\Local\Temp\VRD5701556855928452129.vbs "H:\Pytivo\Toy Story (06_13_2010).mpg" "H:\Pytivo\Toy Story (06_13_2010).mpg.qsfix" /l:C:\Users\Rich\AppData\Local\Temp\VRDLock8805430252922243077.tmp
    ? Unable to open file/project: H:\Pytivo\Toy Story (06_13_2010).mpg
     
  19. Jun 14, 2010 #2399 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    Well the key error message from VideoRedo is the following:
    "Unable to open file/project: H:\Pytivo\Toy Story (06_13_2010).mpg"
    So VideoRedo in COM (batch) mode apparently does not have read access to the file.

    What is the H: volume? Is it external drive or a network share? Are you able to open that file using VideoRedo GUI? If it's a network share then try specifying using UNC syntax instead of using volume in kmttg output dir config. i.e. following syntax
    \\server\share
     
  20. Jun 14, 2010 #2400 of 10412
    bluefoggyday

    bluefoggyday New Member

    7
    0
    Feb 26, 2010
    Hi,

    Trying this out for the first time and can't get it to work. I keep getting the error below. I know the MAK ID is right and I got the IP from the TiVo itself (10.0.1.2). Not sure what I'm doing wrong. It won't let me post links so I had to remove parts of the error.

    Refreshing encoding profiles
    >> Getting Now Playing List from Living Room ...
    /usr/bin/curl --anyauth --globoff --user tivo:MAK --insecure --cookie-jar /tmp/cookie7640648564336273834.tmp --//10.0.1.2/TiVoConnect?Command=QueryContainer&Container=/NowPlaying&Recurse=Yes&AnchorOffset=0[/] --output /tmp/NPL6758596382765385761.tmp
    No rows selected
    Failed to retrieve Now Playing List from Living Room
    Exit code: 7
    Check YOUR MAK & IP settings

    curl: (7) couldn't connect to host
     

Share This Page