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. Apr 14, 2012 #3981 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    Take all of the quotes out of the command and the keyword is metaFile with a capital F. i.e. Try simply:
    /usr/local/bin/getcover.py [metaFile]
     
  2. Apr 14, 2012 #3982 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    Now I remember why I stopped trying to use recent versions of ffmpeg. Looks like the developers make no effort to be backwards compatible. Aside from command line options being different (options that worked fine in previous builds no longer work) looks like ac3 audio in mp4 container seems to be broken (using -acodec copy for ac3 audio for mp4 container fails) when I tried a very recent build I downloaded from the web site I provided a link to above. Not worth the hassle for me to try and get things working with newer builds... If you don't care about ac3 in mp4 you may be OK though when using aac codec you have to add "-strict experimental" and instead of using -b option it now has to be -b:v
     
  3. Apr 14, 2012 #3983 of 10405
    DougD

    DougD New Member

    60
    0
    Apr 25, 2011
    Thanks for the help, I went downstairs and change the linux box and am now waiting for kmttg to transfer another movie to verify the change works. Thanks again.
     
  4. Apr 14, 2012 #3984 of 10405
    DougD

    DougD New Member

    60
    0
    Apr 25, 2011
    After changing the custom command I was able to get the script to run by clicking on start job then discovered that the default directory is where kmttg is started from. Guess I should have expected this. Anyway I changed the script so I could pass in the directory to store the cover jpg and it now runs with the entry:
    /usr/local/bin/getcover.py [metaFile] "/home/tivo/covers/"
    I also realized for the auto transfers I was selecting the custom entry but had been clicking OK instead of first clicking on the update button.
     
  5. Apr 15, 2012 #3985 of 10405
    danterner

    danterner Not it!

    10,610
    0
    Mar 4, 2005
    Greenacres, FL
    I've been struggling to figure out how to incorporate custom covers, so far without success. I'm encouraged to see you've figured it out. If you could give any more detail, I'd be thrilled. I'm relatively computer literate but I don't know coding. I assume your getcover.py is a script file that adds the cover step to Atomic Parsley or something along those lines? Would you mind elaborating on what it does/says, or even providing an example of the file itself?
     
  6. Apr 16, 2012 #3986 of 10405
    zabolots

    zabolots Member

    75
    0
    May 24, 2007
    NW Chicago...
    I grabbed a newer version and noticed the same thing. Why on earth they would completely change the command line arguments without supporting backwards compatibility for basic arguments (i.e. -b now -b:v -ab now -b:a) is beyond me. I went back to the older build as well.

    I'm sure somebody out there has time to go through the hassle of converting all the encode scripts but I sure don't :)
     
  7. Apr 16, 2012 #3987 of 10405
    Iluvatar

    Iluvatar New Member

    377
    0
    Jul 22, 2006
    The commands were deprecated with the FFmpeg 0.9 api change. They may finally have been removed on recent Git HEAD revisions but the old commands are still perfectly useable on the latest FFmpeg stable release, 0.10.2 albeit with warnings that you are using deprecated commands.
     
  8. Apr 16, 2012 #3988 of 10405
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,715
    7
    Apr 6, 2000
    SF Bay Area
    When I have 'Remove .TiVo files after Decrypt', MetaData and Decrypt are selected, I get .TiVo.txt and .mpg.txt files.

    Shouldn't the "Remove .TiVo files" also remove the .TiVo.txt file as well?

    Also, when I remove the job for the metadata on .Tivo.txt, KMTTG also removes the subsequent QSFix job.
     
  9. Apr 16, 2012 #3989 of 10405
    DougD

    DougD New Member

    60
    0
    Apr 25, 2011
    Attached are the files I have started using for cover art. I modified the open source scripts created for mythtv to work with tivo metafiles. I then went on line and signed up for keys at the two web sites so we can use the files for the tivo community. At this point I need to put in a plug for the web sites. The art for movies is courtesy of www.themoviedb.org. The art for TV shows is from www.thetvdb.com both depend on user support. I have attached the files to this post. Put the getcovers.py, getcover.py, ttvdb.py and tmdb.py files on your path. Put the two folders in your python path. Oh, I forgot you will need to download and install python. Also you need to download and install fuzzy logic for selecting the best match from http://github.com/seatgeek/fuzzywuzzy.
    To test if it works for movies enter
    tmdb.py -M Terminator
    Then test the shows portion with
    ttvdb.py -D "Pan Am" 1 1
    once you get this to work try entering
    getcover.py "xyz" /file/to/store/covers/
    where xyz is the name of one of your movie metafiles and /file/to/store/covers/ is the location to put the jpg files

    this is the command to add as a custom command to kmttg.

    Once this works you can get the covers for all shows on the computer by entering
    cd /
    getcovers.py "/folder_for/covers/"

    This is all I know and I'm hoping some one else can pick this up and fix it up a bit. You'll have to get some of the Python experts to help if you need more.
     

    Attached Files:

  10. Apr 17, 2012 #3990 of 10405
    Hercules67

    Hercules67 TiVo addict

    354
    0
    Dec 8, 2007
    For some of us who still use AVI and MKV (along with mpeg2), the newer builds of ffmpeg are problematic also.

    I tried them once and was disappointed.

    What you, wmcbrine and other developers have done in using STABLE versions of ffmpeg that are also backwards compatible have allowed people like me to utilize programs like KMTTG and pyTiVo at the same time.
     
  11. Apr 17, 2012 #3991 of 10405
    wmcbrine

    wmcbrine Ziphead

    10,360
    22
    Aug 2, 2003
    I don't distribute any version of ffmpeg myself, and I don't endorse one version or build over another. But yes, the lack of backward compatibility is annoying.
     
  12. Apr 17, 2012 #3992 of 10405
    Hercules67

    Hercules67 TiVo addict

    354
    0
    Dec 8, 2007
    Oh, I know that, I was just relating it to the ffmpeg that's in your pyTiVo branch <aka, fork>.

    Sorry for the confusion.

    Before KMTTG, I used to try changing TiVo files manually and sending them back with pyTivo. That's when I tried the newest ffmpeg. That was a disaster. I'll never repeat that mistake. I actually had to reload my OS to get its tendrils out of my system.
     
  13. Apr 17, 2012 #3993 of 10405
    wmcbrine

    wmcbrine Ziphead

    10,360
    22
    Aug 2, 2003
    But there is no ffmpeg in my fork. That's what I'm saying.

    I don't think any version of ffmpeg is going to insinuate itself into your system. You make it sound like TiVo Desktop or something.
     
  14. Apr 17, 2012 #3994 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    You must have metadata=all set under config->Program Options. Change metadata=last and only the last file in the set of tasks will be metadata file. i.e. In that case when metadata & decrypt are selected only .mpg.txt should be created.
     
  15. Apr 17, 2012 #3995 of 10405
    Hercules67

    Hercules67 TiVo addict

    354
    0
    Dec 8, 2007
    Hmm, then where did I get the ffmpeg that pyTivo uses.... never-mind.

    I am confused.

    Back to your regularly scheduled programming.
     
  16. Apr 17, 2012 #3996 of 10405
    lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    Although you can get the "recommended" version of ffmpeg from http://pytivo.sourceforge.net/forum/download.php?id=323, it is not actually part of the pyTivo package.
     
  17. Apr 18, 2012 #3997 of 10405
    nahtanoj1

    nahtanoj1 New Member

    21
    0
    Nov 19, 2007
    Does anyone know if there is an application for the mac that could be used to sync the files downloaded and processed by kmttg into the iTunes folder that auto imports the files into iTunes. (it's in Users/yourusername/Music/iTunes/iTunes Music/Automatically Add to iTunes/) My experience has been that if I select this folder in the kmttg config, iTunes gets confused&#729;because it sees the files before the complete processing is done by kmttg.
     
  18. Apr 18, 2012 #3998 of 10405
    DougD

    DougD New Member

    60
    0
    Apr 25, 2011
    Have you tried having kmttg download to a different directory and then have a custom command such as:
    move /kmttg/downloads/*.* Users/yourusername/.../Automatically Add to iTunes/.
     
  19. Apr 19, 2012 #3999 of 10405
    nahtanoj1

    nahtanoj1 New Member

    21
    0
    Nov 19, 2007
    I have not and will set that up as a cron job for early in the morning. Thanks.
     
  20. Apr 19, 2012 #4000 of 10405
    nahtanoj1

    nahtanoj1 New Member

    21
    0
    Nov 19, 2007
    Fairly new to kmttg and have a few problems I'm working through and would appreciate any help y'all could provide.

    1. Every few days on my new premier (dual tuner running version 20.2-01-2-746) kmttg is unable to download files from the premier (I get the message ERROR: <h2>Server Busy</h2>) and after I reboot the premier it works again. Is this a known problem with this version of Tivo code or is there something I have enabled that might be causing this?

    2. I also am getting audio problems where in most .mp4 files I can hear the audio in the left speaker but clicking or static in the right one and quicktime crashes after just a few moments of playing the files. I'm using ff_h264_high_rate and at this point have yet to be able to use any of my transferred files since the audio problem is so pervasive.

    3. Considering the issue above I would like to try moving my auto transfers to a different encoding profile but when I choose one under configure, auto transfers menu and click OK it does not seem to take my change. Must I delete the auto transfer and make a new one?

    Thanks for all of your help.
     

Share This Page