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 17, 2015 #8041 of 12896
    moyekj

    moyekj Well-Known Member

    12,280
    935
    Jan 23, 2006
    Mission...

    Advertisements

    Just confirmed it works fine for me. The way it works is tivodecode creates the chunk-02-0002.xml file which kmttg then parses to create the .txt file and then the file gets deleted. Sounds like for some reason the chunk-02-0002.xml is not getting created (at least not in the expected location) hence the IOException error. The file should be getting created temporarily in the kmttg install dir. If you have set the starting dir for kmttg as some place you don't have write access to that could be the problem.
     
  2. Jun 18, 2015 #8042 of 12896
    lpwcomp

    lpwcomp Well-Known Member

    9,461
    298
    May 6, 2002
    John's...
    If the recordings were transferred in TS format, won't tivodecode fail?
     
  3. Jun 18, 2015 #8043 of 12896
    moyekj

    moyekj Well-Known Member

    12,280
    935
    Jan 23, 2006
    Mission...
    Not for the metadata portion which is separate from the video container.
     
  4. Jun 22, 2015 #8044 of 12896
    waynomo

    waynomo My One Time

    15,520
    1,025
    Nov 9, 2002
    Seven...
    Is there anyway to create a .tivo file with metadata included from an mpg and and a metadata .mpg.txt file?

    Bascially I've downloaded a file from a Roamio and I've selected "metadata" and "decrypt" which creates the two files. Is there anyway to recombine these in a .tivo file?
     
  5. Jun 22, 2015 #8045 of 12896
    lpwcomp

    lpwcomp Well-Known Member

    9,461
    298
    May 6, 2002
    John's...

    Advertisements

    For what purpose?
     
  6. Jun 22, 2015 #8046 of 12896
    waynomo

    waynomo My One Time

    15,520
    1,025
    Nov 9, 2002
    Seven...
    In case I want to load a .tivo file back to a TiVo and have the metadata there.
     
  7. Jun 22, 2015 #8047 of 12896
    lpwcomp

    lpwcomp Well-Known Member

    9,461
    298
    May 6, 2002
    John's...
    Just use pyTivo.
     
  8. Jun 22, 2015 #8048 of 12896
    moyekj

    moyekj Well-Known Member

    12,280
    935
    Jan 23, 2006
    Mission...
    Why not just keep the original .tivo file downloaded by kmttg (and hence no need for "metadata" or "decrypt")? i.e. If you uncheck all tasks and click START JOBS, all you will get is a .tivo file.
     
  9. Jun 22, 2015 #8049 of 12896
    waynomo

    waynomo My One Time

    15,520
    1,025
    Nov 9, 2002
    Seven...
    The problem is .tivo files don't work with Plex.

    I could keep both the .mpg and .tivo file, but that seems redundant and wasteful.

    I'm just starting to play with Plex and trying to figure out what works best.
     
  10. Jun 22, 2015 #8050 of 12896
    moyekj

    moyekj Well-Known Member

    12,280
    935
    Jan 23, 2006
    Mission...
    Then as mentioned above, just keep .mpg and .txt and use pyTivo to transfer back if needed.
     
  11. Jun 24, 2015 #8051 of 12896
    PLargent

    PLargent New Member

    17
    0
    Nov 13, 2013
    FIOS...
    I have looked for a reason why kmttg V1.1o is creating temporary files (like chunk-01-0001.xml) in my personal home directory (c:\urser\root) instead of someplace else and why if fails to create metadata files from the "files" tab. Can anybody see what I am doing wrong?

    I am getting the following text on the TTG console:
    Code:
    >> CREATING T:\_TTG_Output\Mega Movers s03e03 Army Mega Moves MILH126.TiVo.txt ...
    C:\kmttg_v1.1o\tivodecode\tivodecode.exe --mak MAK -D -x "T:\_TTG_Output\Mega Movers s03e03 Army Mega Moves MILH126.TiVo" 
    There are currently no queued jobs to save.
    IOException - chunk-02-0002.xml (The system cannot find the file specified)
    Failed to generate metadata file: T:\_TTG_Output\Mega Movers s03e03 Army Mega Moves MILH126.TiVo.txt
    Exit code: 0
    Encryption by QUALCOMM ;)
    Two new files are created in c:\users\root every time TTG is asked to start a job that includes "metadata".
    Code:
     Directory of C:\Users\root
    
    06/24/2015  03:44 PM    <DIR>          .
    06/24/2015  03:44 PM    <DIR>          ..
    06/24/2015  04:05 PM             1,464 .kmttg_settings
    06/17/2015  12:27 PM             9,787 chunk-01-0001.xml
    06/17/2015  12:27 PM            10,622 chunk-02-0002.xml
    Here are some details:
    * I am using Windows 7.
    * TTG is being launched from C:\kmttg_v1.1o\kmttg.jar
    I have rights and free space at this location.
    * TTG is configured on the File Settings tab to save ALL files to T:\_TTG_Output. "T:\_TTG_Output" is on all six lines.
    This is a mapped drive to another Windows7 workstation.
    I have rights and free space at this location
    * TTG is configured on the Programs tab to go to:
    C:\kmttg_v1.1o\curl\curl.exe
    C:\kmttg_v1.1o\tivodecode\tivodecode.exe
    C:\kmttg_v1.1o\dsd\DSDCmd.exe
    C:\kmttg_v1.1o\mencoder\mencoder.exe
    C:\kmttg_v1.1o\ffmpeg\ffmpeg.exe
    C:\kmttg_v1.1o\handbrake\HandBrakeCLI.exe
    C:\kmttg_v1.1o\comskip\comskip.exe
    C:\kmttg_v1.1o\comskip\comskip.ini
    C:\kmttg_v1.1o\ccextractor\ccextractorwin.exe
    C:\kmttg_v1.1o\AtomicParsley\AtomicParsley.exe
    C:\kmttg_v1.1o\ProjectX\ProjectX.jar
    C:\kmttg_v1.1o\mediainfo_cli\mediainfo.exe
    * TTG is configured on the WEB tab to save web server cache dir to "C:\KMTTG_Cache" even though the check box to enable the web server is not checked.
    This directory exists and I have rights and space
    * TTG is configured on the pyTivo tab to look for the pyTivo.conf file at "C:\pytivo\pyTivo.conf". This directory does not exist. I have not linked TTG and pyTivo at this time. Don't see why this would effect creating metadata files.
    * I don't see any other places where directory locations or file locations are mentioned.
    * Here is a copy of the config.ini file for kmttg:
    Code:
    # kmttg config.ini file
    <MAK>
    XXXXXXXXXX
    
    <TIVOS>
    FILES                T:\_TTG_Output      
    Living Room          192.168.1.4         
    Man Cave             192.168.1.7         
    
    <SHARES>
    
    <tsn_Man Cave>
    A9200019056E038
    
    <tsn_Living Room>
    8400001902F8A7D
    
    <limit_npl_Living Room>
    60
    
    <enableRpc_Living Room>
    1
    
    <FontSize>
    12
    
    <lookAndFeel>
    default
    
    <tableColAutoSize>
    1
    
    <httpserver_enable>
    0
    
    <httpserver_port>
    8181
    
    <httpserver_cache>
    C:\KMTTG_Cache
    
    <httpserver_share_filter>
    0
    
    <RemoveTivoFile>
    0
    
    <RemoveComcutFiles>
    0
    
    <RemoveComcutFiles_mpeg>
    0
    
    <RemoveMpegFile>
    0
    
    <VRD>
    0
    
    <VRDexe>
    
    
    <QSFixBackupMpegFile>
    0
    
    <UseAdscan>
    0
    
    <VrdReview>
    0
    
    <comskip_review>
    0
    
    <VrdReview_noCuts>
    0
    
    <VrdQsFilter>
    0
    
    <VrdDecrypt>
    0
    
    <VrdEncode>
    0
    
    <VrdAllowMultiple>
    0
    
    <VrdCombineCutEncode>
    0
    
    <VrdQsfixMpeg2ps>
    0
    
    <VrdOneAtATime>
    0
    
    <TSDownload>
    1
    
    <HideProtectedFiles>
    0
    
    <OverwriteFiles>
    1
    
    <DeleteFailedDownloads>
    1
    
    <java_downloads>
    1
    
    <rpcnpl>
    1
    
    <combine_download_decrypt>
    0
    
    <single_download>
    0
    
    <persistQueue>
    true
    
    <tivoFileNameFormat>
    [mainTitle] [SeriesEpNumber] [episodeTitle] [channel][channelNum]
    
    <outputDir>
    T:\_TTG_Output
    
    <mpegDir>
    T:\_TTG_Output
    
    <qsfixDir>
    T:\_TTG_Output
    
    <mpegCutDir>
    T:\_TTG_Output
    
    <encodeDir>
    T:\_TTG_Output
    
    <tivodecode>
    C:\kmttg_v1.1o\tivodecode\tivodecode.exe
    
    <DsdDecrypt>
    1
    
    <dsd>
    C:\kmttg_v1.1o\dsd\DSDCmd.exe
    
    <curl>
    C:\kmttg_v1.1o\curl\curl.exe
    
    <ffmpeg>
    C:\kmttg_v1.1o\ffmpeg\ffmpeg.exe
    
    <mediainfo>
    C:\kmttg_v1.1o\mediainfo_cli\mediainfo.exe
    
    <projectx>
    C:\kmttg_v1.1o\ProjectX\ProjectX.jar
    
    <mencoder>
    C:\kmttg_v1.1o\mencoder\mencoder.exe
    
    <mencoder_args>
    
    
    <handbrake>
    C:\kmttg_v1.1o\handbrake\HandBrakeCLI.exe
    
    <comskip>
    C:\kmttg_v1.1o\comskip\comskip.exe
    
    <comskipIni>
    C:\kmttg_v1.1o\comskip\comskip.ini
    
    <MaxJobs>
    4
    
    <MinChanDigits>
    1
    
    <AtomicParsley>
    C:\kmttg_v1.1o\AtomicParsley\AtomicParsley.exe
    
    <t2extract>
    C:\kmttg_v1.1o\ccextractor\ccextractorwin.exe
    
    <t2extract_args>
    
    
    <ccextractor>
    C:\kmttg_v1.1o\ccextractor\ccextractorwin.exe
    
    <custom>
    
    
    <web_query>
    http://www.imdb.com/find?s=all&q=
    
    <tivo_username>
    plargent@XXXXXXXXXX.com
    
    <tivo_password>
    XXXXXXXXXX
    
    <pyTivo_config>
    C:\pytivo\pyTivo.conf
    
    <pyTivo_host>
    localhost
    
    <pyTivo_tivo>
    Living Room
    
    <pyTivo_files>
    last
    
    <metadata_files>
    all
    
    <metadata_entries>
    
    
    <CheckDiskSpace>
    1
    
    <LowSpaceSize>
    10
    
    <CheckBeacon>
    1
    
    <UseOldBeacon>
    0
    
    <TivoWebPlusDelete>
    1
    
    <iPadDelete>
    0
    
    <cpu_cores>
    4
    
    <download_tries>
    5
    
    <download_retry_delay>
    10
    
    <download_delay>
    10
    
    <download_time_estimate>
    1
    
    <download_check_length>
    0
    
    <autoLogSizeMB>
    10
    
    <npl_when_started>
    1
    
    <showHistoryInTable>
    1
    
    <autotune_tivoName>
    Living Room
    
    <autotune_enabled>
    false
    
    <autotune_channel_interval>
    5
    
    <autotune_button_interval>
    1000
    
    <autotune_chan1>
    0
    
    <autotune_chan2>
    1
    
    <diskSpace>
    Living Room=2475.8389
    
    Any thoughts or suggestions on how to fix this anomaly would be appreciated. :)
     
  12. Jun 24, 2015 #8052 of 12896
    PLargent

    PLargent New Member

    17
    0
    Nov 13, 2013
    FIOS...
    After I pressed the submit button I discovered that TTG is creating the two files at a different location today:
    Directory of c:\Users\root\AppData\Local\VirtualStore\Windows\SysWOW64

    06/24/2015 04:08 PM 5,000 chunk-01-0001.xml
    06/24/2015 04:08 PM 5,721 chunk-02-0002.xml
    2 File(s) 10,721 bytes

    A third file is being created at the old location:
    C:\Users\root>dir
    Volume in drive C has no label.
    Volume Serial Number is F095-77C7

    Directory of C:\Users\root

    06/24/2015 03:44 PM <DIR> .
    06/24/2015 03:44 PM <DIR> ..
    06/24/2015 04:05 PM 1,464 .kmttg_settings

    I don't see how this changes the original problem or a possible solution but wanted to be complete and accurate.
     
  13. Jun 24, 2015 #8053 of 12896
    moyekj

    moyekj Well-Known Member

    12,280
    935
    Jan 23, 2006
    Mission...
    PLargent, try starting kmttg as follows from a "cmd" window:
    cd C:\kmttg_v1.1o
    java -jar kmttg.jar

    Then try the metadata generation to see if it works.

    If above works, then make a new desktop shortcut that simply executes:
    C:\kmttg_v1.1o\kmttg.jar
    And specify the "start directory" for the shortcut as:
    C:\kmttg_v1.1o

    For either case above the start directory will be C:\kmttg_v1.1o, so I would expect the tivodecode output to go there.
     
  14. Jun 24, 2015 #8054 of 12896
    lpwcomp

    lpwcomp Well-Known Member

    9,461
    298
    May 6, 2002
    John's...
    There's something (unrelated to the problem} that I noticed. The TSN for Man Cave begins with "A". Isn't that a Mini?
     
  15. Jun 24, 2015 #8055 of 12896
    moyekj

    moyekj Well-Known Member

    12,280
    935
    Jan 23, 2006
    Mission...
    Nothing wrong with having that. I have a Mini configured for use in kmttg so I can use the virtual remote with it as well as some of the other RPC functionality such as "Info".

    (I wouldn't generally recommend people posting their TSN #s for all to see as was done above).
     
  16. Jun 24, 2015 #8056 of 12896
    Diana Collins

    Diana Collins Well-Known Member TCF Club

    3,336
    799
    Aug 21, 2002
    New York...
    I'm running version 1.1p on Windows 7 (64bit) and Java 8. Every single download from either of our Roamios fails with the same error:
    Code:
    http://192.168.1.150:80/download/Defiance.TiVo?Container=%2FNowPlaying&id=4347: Bogus chunk size
    C:\kmttg_v1.1p\xfers\Defiance.s02e03.The Cord and the Ax.TiVo: size=32.52 MB elapsed=0:00:05 (54.56 Mbps)
    Download failed to file: C:\kmttg_v1.1p\xfers\Defiance.s02e03.The Cord and the Ax.TiVo
    I've tried every configuration option that could have effect on a download all with no difference. I tried curl download instead of Java and I get a curl error that is basically the same (error in the chunky parser).

    Where do I start to debug this?

    ETA: it fails at a diferent point each time...sometimes within a few seconds, other times I get as much as 20% of the program before it fails (all with the same recording).
     
  17. Jun 24, 2015 #8057 of 12896
    moyekj

    moyekj Well-Known Member

    12,280
    935
    Jan 23, 2006
    Mission...
    I would suspect a network issue or Antivirus/Firewall program interference. If you have AV software running that would be 1st suspect. Else reboot your router. If you have wireless anywhere in the path try going wired temporarily to see if that resolves the issue. If you have no wireless then start replacing network cables. Also reboot the TiVo(s) if you haven't tried that.

    (Error in chunky parser essentially means incomplete network packets being received).
     
  18. Jun 25, 2015 #8058 of 12896
    Diana Collins

    Diana Collins Well-Known Member TCF Club

    3,336
    799
    Aug 21, 2002
    New York...
    Thanks, the PC in question is running an antivirus program (Kaspersky) and while I have never been able to prove it, I have suspected it in the past. The connection is all wired, and the Tivo and the PC are both connected to the same gigabit switch, and I've tried replacing cables already.

    I'll peruse the AV avenue.
     
  19. Jun 25, 2015 #8059 of 12896
    Diana Collins

    Diana Collins Well-Known Member TCF Club

    3,336
    799
    Aug 21, 2002
    New York...
    Just to close this out, it was indeed the anti-virus software...once I turned it off, the downloads ran fine.

    Thanks again moyekj!
     
  20. Jun 26, 2015 #8060 of 12896
    elprice7345

    elprice7345 Active Member TCF Club

    405
    30
    Sep 28, 2009
    Denver, CO
    +1
     

Share This Page

spam firewall

Advertisements