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. Jul 14, 2013 #5421 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    What kind of TiVo do you have and is episode info for those shows listed on the TiVo? Since everything else has episode info I'd say the information is likely missing for those shows. If it's a series 3, supplying your tivo.com login information under kmttg config->Tivo tab if you haven't already may help.
     
  2. Jul 14, 2013 #5422 of 10405
    gtaylor

    gtaylor New Member

    50
    0
    Jan 8, 2002
    California
    Well, it's working now. :)

    Must have been a memory leak somewhere.

    I launched kmttg and it was taking forever to load, so I checked system resources and ram usage was at 98%.

    kmttg config looked good, so I rebooted the pc.

    Now it's listing everything just as it did last week.

    FYI, it is a 2-tuner Premiere. Before the reboot I had cycled kmttg and pyTivo numerous times. Had a couple instances of Chrome running and a couple explorer windows open.

    Thanks,

    gary

    Edit to add, had also cycled Tivo Playlist several times before the reboot.
     
  3. Jul 14, 2013 #5423 of 10405
    sanjonny

    sanjonny New Member

    202
    0
    Nov 2, 2008
    Answering my own question as it turns out that sometimes the tivo when it gets low on space, likes to nuke the var directory (which contained tivowebplus) which is what happened to me, hence why kmttg was not able to communicate.

    Another issue in separate thread found while downloading......
     
  4. Jul 14, 2013 #5424 of 10405
    sanjonny

    sanjonny New Member

    202
    0
    Nov 2, 2008
    So I am recording the Tour de France and of course some of the stages are long and in HD. I have a 5+hour recording that horked up during downloading from the S3 today after it was about 4.5 hours thru.

    In the past, this would fail and be noted in the log, but it looks like it tried to download it again and could not get a connection, but this also threw away the already downloaded 4.5 hours of show downloaded (like 20GBs or more).

    I have not changed any settings but obviously, on such a big file, I would normally just resume from where the transfer dropped, but in this case, the file is gone to the heavens. Was this behavior changed on recent updates and if so, can I put in request number 1 to have it restored back to how it was, because now I have to wait many hours to download the file again.....

    Okay, it was 15GB and about 4 hours.

    >> ENCODING WITH PROFILE 'a11 640mx c24film dc' TO FILE E:\tivo recordings\encode\Rick Steves Europe Travel Skills (21-07_13_2013).mkv ...
    C:\kmttg\handbrake\HandBrakeCLI.exe -i "E:\tivo recordings\cut\Rick Steves Europe Travel Skills (21-07_13_2013).mpg" -t 1 -f mkv -s 1,2,3,4 -e x264 --loose-anamorphic --decomb -P --x264-tune film --cfr -q 24.0 -a 1 --aencoder lame -B 128 -6 dpl1 -D 1 -C 3 -Q 3 --gain 4 -X 640 -m -x ref=3:bframes=4:b-adapt=2:subme=7:direct=auto:nr=200 -v -o "E:\tivo recordings\encode\Rick Steves Europe Travel Skills (21-07_13_2013).mkv"
    http://192.168.0.33:80/download/2013 Tour de France.TiVo?Container=/NowPlaying&id=3114071: Read timed out
    C:\tivo\\tivo\2013 Tour de France - Stage 15 (05-07_14_2013).TiVo: size=14799.32 MB elapsed=3:47:32 (9.09 Mbps)
    Download failed to file: C:\tivo\\tivo\2013 Tour de France - Stage 15 (05-07_14_2013).TiVo
    2013 Tour de France - Stage 15 (05-07_14_2013).TiVo: Download attempt # 2 scheduled in 10 seconds.
    >> DOWNLOADING C:\tivo\\tivo\Caddyshack The Inside Story (10-07_14_2013).TiVo ...
    http://192.168.0.33:80/download/Caddyshack The Inside Story.TiVo?Container=/NowPlaying&id=3134121
     
  5. Jul 14, 2013 #5425 of 10405
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,715
    7
    Apr 6, 2000
    SF Bay Area
    It has always been that way. You can just blame it on "Overwrite Existing Files." You should rename the file before it downloads again or resumes.
     
  6. Jul 14, 2013 #5426 of 10405
    sanjonny

    sanjonny New Member

    202
    0
    Nov 2, 2008
    Overwrite existing files is not checked, (and has not been to prevent this exact thing from happening) and the file is gone. This is a changed behavior as in the past the file would just be there.

    I am even trying undelete stuff, but that usually will not work on such a big file.
     
  7. Jul 15, 2013 #5427 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    In File Settings if I have "Overwrite existing files" unchecked and try and download a title that is already downloaded I get as expected:
    SKIPPING DOWNLOAD, FILE ALREADY EXISTS: ...

    The download task though will remove a file that failed to download correctly since for that situation you normally want subsequent tasks to fail as well if the download doesn't complete. Going through check-in history delete after any type of download failure was added way back on 2/18/2010 so it's nothing new/recent.
     
  8. Jul 16, 2013 #5428 of 10405
    Hi8

    Hi8 TiVoPro - wanabe!

    192
    0
    Mar 6, 2002
    I'm new to kmttg - so far I Love it!

    I have a SlingBox and tried to set it up for capture... but get this when I attempt a connect.

    Code:
    >> CAPTURING SLINGBOX TO C:\kmttg_v1p0c\slingbox_2013_07_16_07_27_14.ts ...
    "C:\Perl64\bin\perl.exe" "C:\kmttg_v1p0c\slingbox\rec2.pl" -stdout -ip 192.168.2.254 -port 5201 -pass ****** -vbw 4000 -vs 5 | "C:\kmttg_v1p0c\ffmpeg\ffmpeg.exe" -fflags +genpts -i - -vcodec copy -acodec ac3 -ab 224k -y -f mpegts "C:\kmttg_v1p0c\slingbox_2013_07_16_07_27_14.ts"
    Capture to file failed: C:\kmttg_v1p0c\slingbox_2013_07_16_07_27_14.ts
    Exit code: 1
    ffmpeg version N-53033-g56ba331 Copyright (c) 2000-2013 the FFmpeg developers
      built on May 13 2013 22:18:29 with gcc 4.7.3 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
      libavutil      52. 31.100 / 52. 31.100
      libavcodec     55.  9.100 / 55.  9.100
      libavformat    55.  7.100 / 55.  7.100
      libavdevice    55.  0.100 / 55.  0.100
      libavfilter     3. 65.100 /  3. 65.100
      libswscale      2.  3.100 /  2.  3.100
      libswresample   0. 17.102 /  0. 17.102
      libpostproc    52.  3.100 / 52.  3.100
    No connection could be made because the target machine actively refused it. at C:\kmttg_v1p0c\slingbox\rec2.pl line 173.
    pipe:: Invalid data found when processing input
    
     
  9. Jul 16, 2013 #5429 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    Sounds like it can't connect to the Slingbox. Double check Slingbox settings:
    IP (Make sure you can "ping" that IP from command line)
    port
    admin password

    I assume you followed instructions on slingbox_capture Wiki to get the port number and password?

    Also what Slingbox model are you trying this for? Older Slingbox Solo models won't work.
     
  10. Jul 16, 2013 #5430 of 10405
    Hi8

    Hi8 TiVoPro - wanabe!

    192
    0
    Mar 6, 2002

    You were right.... I had the port set wrong should have been 5001 !

    it's working now Thanks!!
     
  11. Jul 16, 2013 #5431 of 10405
    sanjonny

    sanjonny New Member

    202
    0
    Nov 2, 2008
    Here is what I think has changed... Just my experiences and memory and guesses.

    Before, if there was a network interruption, kmttg would usually get stuck in the download task. Basically, it would not download anymore, but the timer would still tick. So I might come back from a downloaded file that had a problem and let's say, should have downloaded in a half hour, but at 3 hours, is 3/4 downloaded but not increasing (timer still ticking). I would then cancel the task, the file would be there, I would then rename it and set the tivo to resume downloading around where the network timeout happened.

    For example, say I was downloading jon is great.tivo and it hung at 22 minutes of play of 30 minutes. I would cancel and rename it to jon is great part 1 and then use resume download to pick it back up from 22 minutes in the playtime.

    The downloading attempts 2,3,4 seems to have happened rather recently, or did not work the way it is now, because I have used the prior protocol many times when network wonkiness caused issues and it has been much more recent than 2010. Maybe the checks for redownloading or whatever have changed or the detection for hung downloads has changed.

    I would suggest, especially for big files, that it is much better to be able to pick up where you left off, than to restart as it now does. Or possibly if it has to automatically restart the download, to leave the original file and name the second attempt jon is great 2 for attempt 2, jon is great 3.tivo for attempt 3 or something similar.

    That way if there are significant errors, you do not lose the original hard network work done and all the time spent. (I am fine with cleaning up the files or whatever, that is why I leave overwrite off)

    Because if you have spotty networks, you might never be able to download a big file. I would much rather have it fail, leave the file and move on and let me sort it out than to automatically try to redownload it and overwrite all the existing work already done.
     
  12. Jul 16, 2013 #5432 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    You can change # download attempts under "Program Options". Perhaps for your case you would prefer to set it to 1 so that there will be no attempts to try again. Still, if kmttg detected there was a problem with the download even with only 1 attempt it will be deleted.

    I guess I disagree with leaving behind partial downloads. In no scenario do I want unintended partial downloads which may give you the impression at first that nothing is wrong until you go play it back and discover it's not all there. If file is missing completely then you know something went wrong and to go try again. Especially now that series 4 downloads "resume" option doesn't even work anymore having a partial download becomes totally useless. I can understand where having a series 3 unit it may be somewhat useful to have partial download and then you can figure out where it stopped and do a resume download again to get the rest of it and then edit to put them back together, but that seems like a huge hassle and easier just to try re-download the whole thing.
    If your network is so unreliable that this happens all the time then it would be worth pursuing fixing that perhaps by wiring PC to TiVo for downloads instead of using wireless.
     
  13. Jul 16, 2013 #5433 of 10405
    cweb

    cweb New Member

    106
    0
    May 29, 2004
    Wasn't there a button in kmttg that was under the file tab that allowed you to just run atomic parsley on a file? Maybe it was somewhere else, I no longer seem to be able to find it.
     
  14. Jul 16, 2013 #5434 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    It will be under FILES tab but only if you configure kmttg to point to AtomicParsley binary under Programs tab.
     
  15. Jul 16, 2013 #5435 of 10405
    Hi8

    Hi8 TiVoPro - wanabe!

    192
    0
    Mar 6, 2002
    I just installed and have been playing around with kmttg.

    I have been transferring shows from both my TiVos. The strange this is that one of my TiVos does not show any protected files/shows from the recordings from HBO.

    I even have the same show that I recorded on both the same night... one is protected and the other is not? None of the HBO recorded shows have the lock.

    I have transferred 3 shows and they all play fine.

    I'm hoping that the new upgrade 11m doesn't; take this away?

    anybody seen this?

    see attachment, screen grab from each NPListing 2 different TiVos
     

    Attached Files:

  16. Jul 16, 2013 #5436 of 10405
    Hi8

    Hi8 TiVoPro - wanabe!

    192
    0
    Mar 6, 2002
    I've been testing with the SlingBox capture ... works fine until I try entering a channel change in the field box...

    Code:
    > CAPTURING SLINGBOX TO C:\kmttg_v1p0c\slingbox_2013_07_16_15_34_15.ts ...
    "C:\Perl64\bin\perl.exe" "C:\kmttg_v1p0c\slingbox\rec2.pl" -stdout -ip 192.168.2.254 -port 5001 -pass XXXXXXX -vbw 4000 -vs 5 -dur 300.0 -chan 1910 | "C:\kmttg_v1p0c\ffmpeg\ffmpeg.exe" -fflags +genpts -i - -vcodec copy -acodec ac3 -ab 224k -y -f mpegts "C:\kmttg_v1p0c\slingbox_2013_07_16_15_34_15.ts"
    Capture to file failed: C:\kmttg_v1p0c\slingbox_2013_07_16_15_34_15.ts
    Exit code: 1
    ffmpeg version N-53033-g56ba331 Copyright (c) 2000-2013 the FFmpeg developers
      built on May 13 2013 22:18:29 with gcc 4.7.3 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
      libavutil      52. 31.100 / 52. 31.100
      libavcodec     55.  9.100 / 55.  9.100
      libavformat    55.  7.100 / 55.  7.100
      libavdevice    55.  0.100 / 55.  0.100
      libavfilter     3. 65.100 /  3. 65.100
      libswscale      2.  3.100 /  2.  3.100
      libswresample   0. 17.102 /  0. 17.102
      libpostproc    52.  3.100 / 52.  3.100
    cmd: 135 err: 5 172 at C:\kmttg_v1p0c\slingbox\rec2.pl line 165.
    pipe:: Invalid data found when processing input
    
     
  17. Jul 16, 2013 #5437 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    I don't have a Slingbox Pro (which uses rec2.pl script) to test with, but the rec350.pl script used with Slingbox 350/500 works for channel changing for me. Comparing the 2 scripts I do see a difference. So perhaps edit the slingbox\rec2.pl script and change:
    Code:
        sling_cmd(0x87, $ircmds . pack("x448 v4", 3, 0, 0, 0));
    
    to:
    Code:
        sling_cmd(0x87, $ircmds . pack("x456 v4", 3, 0, 0, 0));
    
    i.e. change 448 to 456 to see if that works.
     
  18. Jul 16, 2013 #5438 of 10405
    Hi8

    Hi8 TiVoPro - wanabe!

    192
    0
    Mar 6, 2002
    That fixed it thanks!


    Sent from my iPad using Tapatalk HD
     
  19. Jul 16, 2013 #5439 of 10405
    moyekj

    moyekj Well-Known Member

    11,128
    27
    Jan 23, 2006
    Mission...
    Guess I'll check in that change to rec2.pl for next release then.
     
  20. Jul 17, 2013 #5440 of 10405
    sanjonny

    sanjonny New Member

    202
    0
    Nov 2, 2008
    Well, isn't that why the log is red and wouldn't that be enough notification that the download was not finished? It might not just be the computer, heck, networks can get cranky for any reason, this doesn't happen all the time, but in the past, it was an easy fix. I just hate to see that the 5 hours spent trying to download would be wasted over and over. Plus, sometimes files get screwed up and will not finish downloading ( who knows why but it happens in tivo world) and I think some of the file is better than nothing in certain cases.

    Tivos continuing removal of functionality from the premieres is making me nuts and I am using my HD more than ever because of their stupidity. I cannot see why I cannot schedule shows on my tivo using the app if my ipad is broken, but for some reason, tivo will not let me.

    Anyway, I am sure I am not the only one who would like it to just error out and not overwrite when something goes wrong. The HDs are slow to download, it is not like the premieres so 5 hour shows take forever in HD to download and resuming them is preferable to it wiping the file out, and like I said, maybe the detection is different or something, but this change is recent, last few months.

    I see your point about partial files, but isn't that the whole reason users get to decide to use the overwrite files option or not? Those who want them overwritten can, but others might not want the partials overwritten for the obvious reasons stated.
     

Share This Page