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 12, 2009 #861 of 10412
    bkdtv

    bkdtv New Member

    7,902
    0
    Jan 9, 2003
    DC Metro Area
    I just tried encodes with -async 50 and -async 48000. With every video, ffmpeg crashed and exited within seconds of starting the encode.
     
  2. Jun 12, 2009 #862 of 10412
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    Happened to me on windows too. I compiled a new version on linux and it worked fine. I downloaded this windows ffmpeg 0.5 binary and it seems to work without crashing, so try this one:
    http://download.videohelp.com/download/ffmpeg-0.5.7z
    EDIT: Scratch that, that version crashed for me just now...
    Maybe I'll try and build a windows version from scratch from latest source to see if that solves it...
     
  3. Jun 12, 2009 #863 of 10412
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    bkdtv, FYI the streambaby windows ffmpeg doesn't crash when using -async 48000 so probably easiest thing for now is just use that (you will need to copy the accompanying .dll files if you copy it over to kmttg ffmpeg folder).
     
  4. Jun 12, 2009 #864 of 10412
    bkdtv

    bkdtv New Member

    7,902
    0
    Jan 9, 2003
    DC Metro Area
    That runs for me without crashing (as do the latest ffmpeg builds on the pyTiVo forums), but I haven't been able to get usable audio. I just get a high pitched noise during playback in both WMP and VLC.

    I noticed the kmttg encodes two programs at once, rather than finishing one before proceeding to the next. Both encodes specify -threads 2. Is that intended?

    With the latest version of Java32 installed, I sometimes see the following error when I add a File and then select it in kmttg. This usually happens after I've already sorted the TiVo program listing by a certain column, such as channel.

     
  5. Jun 12, 2009 #865 of 10412
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    Those are configurable settings in kmttg:
    active job limit specifies how many CPU intensive jobs to allow to run at a time (defaults to 2). Hence if you only want to allow 1 CPU intensive job at a time change it to 1.
    encoding cpu cores controls how many cores to use for encoding. You probably have both set to 2.

    -async 48000 also gives me squeaky audio (must be adjusting the rate too much). I am trying -async 1 on my 1hr mpeg right now so will see how that goes - based on what you are posting it probably won't work...

    I haven't seen that swingx decorator exception but I think AudioNutz has seen that before as well. The exception is not being caused by kmttg code directly (you would see .java file names and line numbers in the exception trace if so), so I can't trace the origin of the problem. If it seems harmless enough and doesn't affect operation from that point on I guess just ignore it.
     
  6. Jun 12, 2009 #866 of 10412
    bkdtv

    bkdtv New Member

    7,902
    0
    Jan 9, 2003
    DC Metro Area
    That's odd....Using the same settings, an encoding of a program from HISI was fine. Both both episodes of The Daily Show had squeaky audio.
     
  7. Jun 12, 2009 #867 of 10412
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    Interesting result with -async 1:
    The A/V sync was preserved throughout in the resulting mp4 file. However:
    * 1 hr program became 1hr, 9 minutes long :)
    * Audio was often a little distorted and video sometimes a little slow-motioned.
    I think what's happening is there are wrong timestamps in the streams and ffmpeg is doing its best to honor them.
    I may try 1 more combination of mencoder filter (to clean up the timestamps) followed by ffmpeg with -async 1 (to try and sync correctly from start), but I don't expect that to be any better...
     
  8. Jun 12, 2009 #868 of 10412
    bkdtv

    bkdtv New Member

    7,902
    0
    Jan 9, 2003
    DC Metro Area
    I left it at two because I wanted the ability to download from two different TiVos and/or download and encode at the same time. If I change "active job limit" to 1, will it change that? Downloads require a trivial amount of system resources, so I don't think they should be thrown in with processor and I/O intensive tasks like encoding and streamfix.

    You might detect the number of available physical cores and set default encode (and/or post process) behavior based on that. A quick search suggests that the Runtime.getRuntime().availableProcessors() command will display the number of available cores. If the user has two physical cores available, the default for "encoding cpu cores" would be two, and the "active job limit" for encodes (and other cpu-intensive tasks?) would be one.
     
  9. Jun 13, 2009 #869 of 10412
    scsiguy72

    scsiguy72 OTA Only..Free TV

    1,154
    0
    Nov 25, 2003
    California Guy
    When I install and run KMTTG the interface opens correctly and tries to download the helper files in kmttg_win32_tools_v0p5m.zip. It downloads but when it tries to open I get the following error:


    Downloading file:

    http://kmttg.googlecode.com/files/kmttg_win32_tools_v0p5m.zip

    ...
    Download completed successfully
    error in opening zip file

    When I try to open the zip file manually I get "Can not open file: it does not appear to be a vaild Archive"

    Am I doing something wrong or is the file corrupt? I tried 4 times.

    Can i download kmttg_win32_tools_v0p5m.zip somewhere else and manually install the files? If so do they just go in the kmttg installation directory?
     
  10. Jun 13, 2009 #870 of 10412
    bkdtv

    bkdtv New Member

    7,902
    0
    Jan 9, 2003
    DC Metro Area
    You can get it here:

    http://code.google.com/p/kmttg/downloads/list
     
  11. Jun 13, 2009 #871 of 10412
    bkdtv

    bkdtv New Member

    7,902
    0
    Jan 9, 2003
    DC Metro Area
    Moyeki,

    Do you have any problems selecting your TiVo(s) in kmttg with the new JRE v6.14 installed?
     
  12. Jun 13, 2009 #872 of 10412
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    That's why the setting is called active job limit - it applies to CPU intensive jobs only. Metadata & Downloads are not CPU intensive but the rest of the tasks are considered CPU intensive.
    For Metadata & Downloads the only restriction is 1 at a time per Tivo (so for example if you have 3 Tivos all 3 downloads can happen at same time), so the active job limit setting has no effect on those jobs.
     
  13. Jun 13, 2009 #873 of 10412
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    Just tried it on my Vista 64 system and no problems with either v0p6d or current development version. Here's the java version info (I downloaded from your link):
    C:\Program Files (x86)\Java\jre6\bin>java -version
    java version "1.6.0_14"
    Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
    Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)
     
  14. Jun 13, 2009 #874 of 10412
    scsiguy72

    scsiguy72 OTA Only..Free TV

    1,154
    0
    Nov 25, 2003
    California Guy
    That is where the program pulls the download from. It is the same place I have tried 4 times already. I downloaded it again this morning and it still will not open. I get the same error the Zip file is saying it's Corrupt.

    I even tried 2 differant Unzip programs. As a test I downloaded one of the other zip files from the same site and I am able to unzip it.

    Can anyone else download and unzip this file? If so then the problem is on my end, but I have never had a problem with zip files before.
     
  15. Jun 13, 2009 #875 of 10412
    bkdtv

    bkdtv New Member

    7,902
    0
    Jan 9, 2003
    DC Metro Area
    You might try clearing your browser's cache. It sounds like maybe you've got a corrupted copy in your cache that the browser is grabbing each time.

    I tried the file with two different web browsers after you made the post, and both unzipped fine.
     
  16. Jun 13, 2009 #876 of 10412
    bkdtv

    bkdtv New Member

    7,902
    0
    Jan 9, 2003
    DC Metro Area
    Thanks for the clarification.

    In that case, you might consider setting the default value for "active job limit" at 1, and then set the default value for "encoding cpu cores" based on Runtime.getRuntime().availableProcessors() .
     
  17. Jun 13, 2009 #877 of 10412
    scsiguy72

    scsiguy72 OTA Only..Free TV

    1,154
    0
    Nov 25, 2003
    California Guy
    OK thanks. I did flush my cache on IE and emptied my temp files too. I deleted the zip each time gbefore I d/led a new one. But if you can D/L and unzip it, then it must me on my end.

    I will try and pull it down on my laptop and see if Ican get it that way.

    Thanks
     
  18. Jun 13, 2009 #878 of 10412
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    Looking at the code there actually is a bug in released version right now. The setting is:
    IF active_jobs >= active_job_limit THEN no more active jobs
    It should be > instead of >=
    (So with released version you have to have active job limit set to at least 2 to be able to do 2 things at a time)
    I've made the correction and implemented your defaults suggestion in development version.
     
  19. Jun 13, 2009 #879 of 10412
    fixxit

    fixxit New Member

    8
    0
    Dec 19, 2006
    USA
    Hmm.... that could work. Do you know if it's possible to log in as LocalService? If so I should be able to set the password there. I don't see LocalService as a user in the "User Accounts" widget in the control panel. Because of that I can't change its password to match mine either. Ideas?

    I tried running kmttg as my account instead of LocalService but it wouldn't run at all.

    Thanks for the pointers - it feels like I'm getting close.
     
  20. Jun 15, 2009 #880 of 10412
    camnito

    camnito New Member

    20
    0
    Apr 1, 2009
    Hi,

    I'm trying to use the pyTivo push.py custom script to automatically send the re-encoded files back to my TiVo, and I get the following error from pyTiVo:

    2009-06-15 15:53:39,894 INFO pyTivo: 127.0.0.1 [15/Jun/2009 15:53:39] code 400, message Bad request syntax ('GET /TiVoConnect?Command=Push&Container=kmttg&File=/South%20Park%20-%20A%20Ladder%20to%20Heaven.mp4&tsn=Family Room HTTP/1.1')
    2009-06-15 15:53:39,894 INFO pyTivo: 127.0.0.1 [15/Jun/2009 15:53:39] "GET /TiVoConnect?Command=Push&Container=kmttg&File=/South%20Park%20-%20A%20Ladder%20to%20Heaven.mp4&tsn=Family Room HTTP/1.1" 400 -

    I tried reverting the push.py script back to the original suggested version by removing the urllib2.quote(...) argument from the "file" variable, but that didn't solve the problem either. As someone else reported earlier in this thread, the manual push command from pyTiVo uses "+" signs for spaces instead of the HTTP "%20" space designator.

    I would appreciate your help with solving this problem.

    Thanks,

    Cam

    PS. I am using the March 2009 version of wmcbrine branch of pyTiVo. I tried to use the latest wmcbrine.git version referenced in the push.py wiki, but couldn't figure out how to install that over my existing version of pyTiVo. I tried copy/replace the files/folders in Windows, but had all kinds of issues, so I went back to 3/2009 version. Thanks. Cam.
     

Share This Page