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. Sep 16, 2008 #261 of 10412
    W Auggie H

    W Auggie H Tivo Enthusiast

    364
    0
    Oct 11, 2001
    Atlanta,...
    Next question: How do I keep the audio and video in sync when using the comskip and or comcut?

    My first test was with "The Daily Show" and I used all of the options available like Create Metadata, Decrypt, Comskip, Comcut, and encode. After the first commercial skip/cut I noticed the audio out of sync. Is this common or am I doing something wrong?
     
  2. Sep 16, 2008 #262 of 10412
    W Auggie H

    W Auggie H Tivo Enthusiast

    364
    0
    Oct 11, 2001
    Atlanta,...
    Sorry, just read the manual and found this:
     
  3. Sep 16, 2008 #263 of 10412
    jmpage2

    jmpage2 New Member

    1,951
    0
    Jan 20, 2004
    I'm glad you are up and running, this is a great program and resource for Tivo owners!

    Kevin, is there any possibility that a future version can include the ability to provide different options for different programs that are automatically downloaded?
     
  4. Sep 16, 2008 #264 of 10412
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    I'll have to think about it as it complicates setup quite a bit. Another possibility I don't know if you've considered is you could setup additional kmttg installations each with different configuration options, so as long as you don't run kmttg as a service that may be a way to accomplish what you want with current version. Of course you have to be careful not to run 2 or more sessions at same time downloading from same Tivos since that will create problems, so depending on what exactly you are thinking about that may or may not be a good workaround.
     
  5. Sep 17, 2008 #265 of 10412
    jmpage2

    jmpage2 New Member

    1,951
    0
    Jan 20, 2004
    I've done a limited amount of programming so I can appreciate that. Here's a suggestion for another possible enhancement that might not be quite as difficult.

    Would it be possible to specify multiple decoding lines/options for the MPG ffmpeg as part of manual or automatic downloads?

    For example, it would be nice to be able to have my automatic downloads get coded with the default ffmpeg options that you've specified (for playback on the Tivo, PC, etc) as well as a compact MP4 version for playback on an ipod. Both versions could be decoded prior to the deletion of the .tivo file and could just have the different extensions/path/etc?
     
  6. Sep 17, 2008 #266 of 10412
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    That's the beauty of the current implementation. You can specify the encoder as any batch script you want and use the INPUT & OUTPUT keywords as arguments to the script. Then of course within the script you can do whatever you like including multiple ffmpeg encodings, double-pass encodings, etc.

    Also, even if you don't do need re-encoding you can still use the encoding step as an opportunity to run a post-processing script of some kind, perhaps to move files to different folders or whatever else you may want to do.
     
  7. Sep 17, 2008 #267 of 10412
    jmpage2

    jmpage2 New Member

    1,951
    0
    Jan 20, 2004
    Ah, I see. So if I'm understanding correctly then I can specify my script name in the "decoder arguments" line and then just call my script that does my own personal decoder steps.
     
  8. Sep 17, 2008 #268 of 10412
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    Not quite. The full path to your script should go in the "encoder" slot and script arguments in the "encoder args" slot.
     
  9. Sep 17, 2008 #269 of 10412
    jmpage2

    jmpage2 New Member

    1,951
    0
    Jan 20, 2004
    Okey dokey I will give that a try later today and hopefully does the trick!
     
  10. Sep 21, 2008 #270 of 10412
    tbigman

    tbigman New Member

    6
    0
    Sep 21, 2008
    first off, thanks for the great program. I am having one glitch that I hope you can help me solve. I am running kmttg under linux and it is working fine except for when it try's to run comskip. I get the following error: *ERROR* comskip binary not found: c:\windows\comskip - I am using the windows version of comskip under wine and from the command line it works great. It produces a *.edl file that I can then go back into kmttg and run the comcut and that works great. so I am trying to find out what to put on the configuration line to get kmttg to call comskip using wine? I can't be the only one right?
     
  11. Sep 21, 2008 #271 of 10412
    jmpage2

    jmpage2 New Member

    1,951
    0
    Jan 20, 2004
    Are you even allowed to call a Windows path name from under Linux? I'm not sure that it will ever work (to call a WINE executable from within a Linux shell environment). You should just get the Linux binaries and have them installed as mentioned in the installation instructions. I haven't tried the Linux version yet but I don't imagine it would be too difficult to set up.
     
  12. Sep 21, 2008 #272 of 10412
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    I've never used Wine before but I would think somewhere you need to call Wine as the main executable followed by the windows binary you wish to invoke (in this case comskip.exe). What's the exact command you use on linux command line that works?
     
  13. Sep 21, 2008 #273 of 10412
    tbigman

    tbigman New Member

    6
    0
    Sep 21, 2008
    Thanks for the quick response:

    the command from the linux terminal is this:

    wine comskip "nameofshow.mpg"
     
  14. Sep 21, 2008 #274 of 10412
    tbigman

    tbigman New Member

    6
    0
    Sep 21, 2008
    I have not been able to find the linux binaries. if you know where they are can you send me a link? I did find the source with a version that runs on a mac. but when I run the make file, it dumps errors about ppc and then stops. I don't know enough yet to edit the files to work on my setup. not a noob, but also not a progamer.
     
  15. Sep 21, 2008 #275 of 10412
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    In kmttg config what are you entering for comskip path? Make sure you give the full path to wine followed by a space followed by comskip (assuming wine knows where to find comskip).
     
  16. Sep 21, 2008 #276 of 10412
    tbigman

    tbigman New Member

    6
    0
    Sep 21, 2008
    I was not giving the full path: so I changed it to:

    /usr/bin/wine /home/john/Media/Downloads/kmttg/comskip.exe
    and get the following error:
    *ERROR* comskip binary not found: /usr/bin/wine /home/john/Media/Downloads/kmttg/comskip.exe

    so then I put comskip.exe in the wine windows\system dir and changed the path in kmttg to:
    /usr/bin/wine comskip
    and get the following error:
    *ERROR* comskip binary not found: /usr/bin/wine comskip

    so is there a linux version of comskip? I wold just rather use it if it's available.
     
  17. Sep 21, 2008 #277 of 10412
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    You have to build from source. You can obtain the source with svn:
    svn checkout svn://svn.kaashoek.com
    However my brief attempts to build it under cygwin failed and I don't see instructions anywhere how to build it.
     
  18. Sep 21, 2008 #278 of 10412
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    Thinking about it some more I have a better idea. Make a "wrapper" comskip script that calls wine. Example, make a "comskip" shell script (make sure it's set to executable) that looks something like:
    Code:
    #!/bin/sh
    /usr/bin/wine /home/john/Media/Downloads/kmttg/comskip.exe $@
    
    Make sure shell script is executable (chmod +x comskip)
    Then enter full path to above shell script as comskip path and that should work.
     
  19. Sep 21, 2008 #279 of 10412
    tbigman

    tbigman New Member

    6
    0
    Sep 21, 2008
    well, it's better. at least now it launches comskip: but I think there is a problem if there is a space in the title of the show. see error:

    >> SCANNING FOR COMMERCIALS IN /home/john/Media/Downloads/kmttg/Smallville - Odyssey_Thu_Sep_18.mpg ...
    "/home/john/Media/Downloads/kmttg/comskip" --ini "/home/john/Media/Downloads/kmttg/comskip.ini" "/home/john/Media/Downloads/kmttg/Smallville - Odyssey_Thu_Sep_18.mpg"
    *ERROR* comskip failed (exit code: 2) - check above /home/john/Media/Downloads/kmttg/comskip command
    Comskip 0.79.48, made using:

    mpeg2dec-0.4.1-cvs - by Michel Lespinasse <walken@zoy.org> and Aaron Holtzman


    I ran kmttg in terminal to see if there was a clue as to what happened and got this:
    Errors:
    ComSkip: excess parameter "Odyssey_Thu_Sep_18.mpg"

    so it looks like we need to wrap the show name in " quotes " if there is a space right?
    is there a simple way to do that with the script you posted?

    thank you so much for taking the time to teach me some new stuff.

    I am going to pick a show with no spaces or remove the title from the download and see if it works. I will post back my results.


    I changed the way the files are auto named to : [mainTitle]_[episodeTitle] and have started a test download/decrypt/comskip/comcut and will see what happens.
     
  20. Sep 21, 2008 #280 of 10412
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    I think the problem is comskip is identifying the '-' after Smallville as a command line switch. A simplified file name without a '-' maybe will work.
     

Share This Page