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. Jan 11, 2011 #2961 of 10413
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    Nice! Thank you! :D
     
  2. Jan 13, 2011 #2962 of 10413
    cweb

    cweb New Member

    106
    0
    May 29, 2004
    Could somebody help me with what I hope is a most simple custom command / script? Command line stuff is a weakness of mine.

    I use the kmttg file naming convention: [mainTitle][/][mainTitle] ["Ep" EpisodeNumber " "][year]-[monthNum]-[mday] [episodeTitle] and my Encode Output Dir is simply f:\tivofinal.

    After the encode is finished, I would like to simply move the encoded file to a new drive and directory: g:\tivoshows\[main Title] (no brackets). If the directory [mainTitle] doesn't exist then create it.

    Any and all help would be appreciated.
     
  3. Jan 13, 2011 #2963 of 10413
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    Windows?

    Edit: Why not just set the Encode Output Dir to "g:\tivoshows\"?
     
  4. Jan 13, 2011 #2964 of 10413
    cweb

    cweb New Member

    106
    0
    May 29, 2004
    Yes, windows.

    The directory I am storing the shows on is an external drive. Every so often when I encode directly to the drive, the connnection will hiccup for a split instance. The result locks up my system. It doesn't happen often, but enough that the reboots are annoying. It doesn't appear to happen when I encode to a internal drive. This was my attempt at a work around.
     
  5. Jan 13, 2011 #2965 of 10413
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    Here ya go:
    Code:
    ::MoveFile.bat
    @ECHO OFF
    SETLOCAL
    
    SET FullPath=%~p1
    
    CALL :Get_Parent "%FullPath:~0,-1%"
    
    IF NOT EXIST "G:\tivoshows\%ParentPath%" (
        MKDIR "G:\tivoshows\%ParentPath%"
    )
    
    MOVE "%~1" "G:\tivoshows\%ParentPath%\"
    
    EXIT /B
    
    :Get_Parent
    SET ParentPath=%~n1
    GOTO :EOF
    
    Save that in your kmttg folder as "MoveFile.bat". In your custom command configuration, pass [encodeFile] as an argument to the bat file, similar to this:

    Code:
    "C:\Program Files\kmttg\MoveFile.Bat" [encodeFile]
     
  6. Jan 13, 2011 #2966 of 10413
    cweb

    cweb New Member

    106
    0
    May 29, 2004
    Thanks orangeboy. I really appreciate it. I'll give it a try this evening.

    I just remembered that I also need to move the .txt file. Should I be able to pass an additional [metaFile]? For example:
    Code:
    "C:\Program Files\kmttg\MoveFile.Bat" [encodeFile] [metaFile]
     
  7. Jan 13, 2011 #2967 of 10413
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    Sorry, no, not as it stands. I'll see about adding that part in though!
    Is your metadata files option set to encodeFile? I don't know if that matters or not. Mine is set to "last".


    This will do both [encodeFile] and [metaFile]:
    Code:
    
    ::MoveFile.bat
    @ECHO OFF
    SETLOCAL
    
    :Loop
    IF "%~1"=="" GOTO Done
    
    SET FullPath=%~p1
    
    CALL :Get_Parent "%FullPath:~0,-1%"
    
    IF NOT EXIST "G:\tivoshows\%ParentPath%" (
        MKDIR "G:\tivoshows\%ParentPath%"
    )
    
    MOVE "%~1" "G:\tivoshows\%ParentPath%\"
    
    SHIFT
    GOTO Loop
    
    :Done
    EXIT /B
    
    :Get_Parent
    SET ParentPath=%~n1
    GOTO :EOF
    
    Edit: Let me know if your metadata files option is set to "all". I'm not sure what [metaFile] would resolve to in that case!
     
  8. Jan 17, 2011 #2968 of 10413
    moyekj

    moyekj Well-Known Member

    11,149
    33
    Jan 23, 2006
    Mission...
    v0p7s version just released with a few enhancements based on recent requests such as option for combined download/decrypt, option to limit NPL retrieval to fewer shows and option to limit kmttg to 1 download at a time for all TiVos on your network and a channel filter for auto transfers.
    See release notes for all the details.
     
  9. Jan 17, 2011 #2969 of 10413
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    Looks like some good stuff added - Thanks!
     
  10. Jan 17, 2011 #2970 of 10413
    txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    Kevin, not sure if you noticed that VRD v4 indicated in their latest release notes that ffmpeg is now an option for decode/encode. Not sure how fully it is being supported or incorporated yet, but opens up new possibilities for encoding options in kmttg it seems.
     
  11. Jan 17, 2011 #2971 of 10413
    moyekj

    moyekj Well-Known Member

    11,149
    33
    Jan 23, 2006
    Mission...
    They have ffmpeg muxer (not encoder) as an option in latest VRD v4 (it's not enabled by default but you can turn on an option to enable it). I asked Dan if they were considering option to use x264 for H.264 encoding (which is what ffmpeg uses for H.264) but he said that while there is a commercial licensing option for x264 they have not yet decided to license it. i.e. They are still using Mainconcept or similar licensed software for H.264 encoding, not ffmpeg.
     
  12. Jan 17, 2011 #2972 of 10413
    txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    That's weird. From this post on 1-15 by DanR, it makes it sound like ffmpeg can be used for encoding too.

     
  13. Jan 17, 2011 #2973 of 10413
    moyekj

    moyekj Well-Known Member

    11,149
    33
    Jan 23, 2006
    Mission...
    Look at release notes for latest version:
    http://www.videoredo.net/msgBoard/showthread.php?t=24328
    Specifically:
    i.e. I believe it's ffmpeg-based mux/demux only that currently can be set to be used in place of Mainconcept mux/demux for mp4 container.
     
  14. Jan 17, 2011 #2974 of 10413
    txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    Bummer. Oh well. Could have opened up a lot of possibilities, especially if they had a full build of ffmpeg in there.
     
  15. Jan 17, 2011 #2975 of 10413
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    Based on a thread I have been participating in over at the VRD forum, Dan (if it's the same Dan) said that ffmpeg encoding WILL be supported in an upcoming beta. That was just 2 or 3 days ago that he posted that. SO maybe something is coming soon.
     
  16. Jan 17, 2011 #2976 of 10413
    moyekj

    moyekj Well-Known Member

    11,149
    33
    Jan 23, 2006
    Mission...
    Can you post a link to the relevant VRD thread(s)?
     
  17. Jan 17, 2011 #2977 of 10413
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
  18. Jan 17, 2011 #2978 of 10413
    moyekj

    moyekj Well-Known Member

    11,149
    33
    Jan 23, 2006
    Mission...
    Yes I've been following and posted in that thread. Currently it's just the muxer. DanR mentioned they considered licensing x264 encoder before but mentioned that is much bigger effort to integrate into VRD compared to muxer code, so I doubt it's in the works for the short term.
     
  19. Jan 17, 2011 #2979 of 10413
    cweb

    cweb New Member

    106
    0
    May 29, 2004
    Orangeboy:

    Thanks for the script. Everything seems to work great. Thanks for taking the time to make it.
     
  20. Jan 17, 2011 #2980 of 10413
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    No problem! I enjoy writing file manipulation scripts.
     

Share This Page