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 22, 2012 #4101 of 10412
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,724
    8
    Apr 6, 2000
    SF Bay Area
    I recently changed to a new router, and before that, I set each of my Tivos to a static IP manually. But now, I have entered the MAC of each device, Tivos and computers, and they get a reserved static IP through the DHCP.

    The old Linksys router crashes on me during Tivo transfers, but that was cut down with some internet traffic.
     
  2. Jun 23, 2012 #4102 of 10412
    lrhorer

    lrhorer New Member

    6,922
    0
    Aug 31, 2003
    San...
    Hey, I have a request. Occasionally I come across a program that only transfers partially due to some error in the program. On my S3 TiVos, I can use tserver to transfer the program, but that is a bit of a manual pain. I haven't tried it yet on the Premier, but the Premier offers the potential option of attempting the transfer via TS, instead of the default PS. Right now, in kmttg, this requires configuring the program to use TS transfers, transferring the file, and then configuring the program back to use PS transfers. This is also a bit of a pain. What would be nice is a button that allows the user to transfer the selected program(s) using the alternate method to the configured one for one-shot attempts to transfer files in PS mode if TS is configured or TS mode if PS is configured.

    One caveat: if you do decide to implement this feature, it might be prudent to have it disable the "combine download and tivodecode decrypt" function if implemented, since you say tivodecode does not properly handle transport streams. That, or perhaps better, make it a T instead of a pipe so the .TiVo file is retained in the event of a failure of tivodecode.
     
  3. Jun 23, 2012 #4103 of 10412
    markmarz

    markmarz Member

    94
    0
    Feb 3, 2002
    Chicago, IL
    I'm starting to migrate my use of kmttg from my windows laptop pointing to shares on my (mostly headless) debian server to running it on the server only. The laptop is just not as reliable as the always running server; besides since the server is always running, why keep my laptop running for hours on end just to pull shows?

    I plan on using kmttg on the server to pull files onto a share intended as a staging area, no further processing on the server. I don't mind running comskip & videoredo later from the laptop when I feel like editing videos. Maybe I'll add wine to support comskip on the server, but it's not a powerful machine. We'll see, that's for later.

    I see there's all sorts of nifty ways to run kmttg in the background, even as a daemon, against a list of shows to pull. But is there any way to kick off kmttg in gui mode from my laptop, so I can (say) select a long list of shows to download, and then end? In other words I'd use kmttg in gui mode to build a list of shows to pull, save the list somewhere, end kmttg gui, and then have the daemon process the list.

    The ideal addition to that scenario would be to be able to kick off kmttg in gui mode later to monitor and possibly alter the daemon processing (cancel a download, add another show) while the daemon is still processing the download list.

    Feasible? Sensible? None of the above?
     
  4. Jun 23, 2012 #4104 of 10412
    lrhorer

    lrhorer New Member

    6,922
    0
    Aug 31, 2003
    San...
    Basically you are talking about converting kmttg to a client-server platform. 'Interesting idea, and indeed one I would definitely use if moyekj decides to implement it. Depending on how he has structured the code, it might be a fairly simple thing to accomplish, or it might require a complete rewrite of the code.
     
  5. Jun 23, 2012 #4105 of 10412
    wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    Just use pyTivo for that.
     
  6. Jun 23, 2012 #4106 of 10412
    markmarz

    markmarz Member

    94
    0
    Feb 3, 2002
    Chicago, IL
    Hah! Brilliant!

    I'm already running pyTivo as a daemon in support of vidmgr, which is cool. I can pull from the TivoHD onto a share no problem, just checked. Is there anything I should watch out for using pyTivo to push for vidmgr and possibly pull at the same time?
     
  7. Jun 23, 2012 #4107 of 10412
    markmarz

    markmarz Member

    94
    0
    Feb 3, 2002
    Chicago, IL
    I just thought of something. pyTivo is pointing to the same place for pulls and pushes, /mnt/samba/Videos

    Is there any way to configure it to pull into one place but push from another?
    I'd like to pull to a work share and push from a 'production' share.
     
  8. Jun 23, 2012 #4108 of 10412
    lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    You can push from any share.
     
  9. Jun 23, 2012 #4109 of 10412
    markmarz

    markmarz Member

    94
    0
    Feb 3, 2002
    Chicago, IL
    Okay, I missed that, I'll review the vidmgr configuration. Thanks!
     
  10. Jun 23, 2012 #4110 of 10412
    markmarz

    markmarz Member

    94
    0
    Feb 3, 2002
    Chicago, IL
    Okay, now I'm confused. Let me make clear what I'm doing now and where I'd like to end up. Right now I'm using vidmgr to push to my tivo. vidmgr uses the pyTivo.conf file to figure out where to push from; at least that's what I infer from:

    Code:
    [pytivos]
    pytivo1.config=/usr/share/pyTivo/pyTivo.conf
    vidmgr uses pyTivo to do the actual push as well, doesn't he?

    I'd like to be able to use the same instance of pyTivo .. currently running as a daemon .. to pull shows from the tivo onto a different share than the push share.

    I don't see a way to configure that in pyTivo or vidmgr. Please feel free to push my nose directly into it. :p
     
  11. Jun 23, 2012 #4111 of 10412
    lrhorer

    lrhorer New Member

    6,922
    0
    Aug 31, 2003
    San...
    If one is not going to run tivodecode and comskip, absolutely. Of course one can run a script to handle those. One cannot delete the show after transferring, either, although that might be possible with Expect for the Premier and perhaps Curl with an S3.
     
  12. Jun 23, 2012 #4112 of 10412
    lrhorer

    lrhorer New Member

    6,922
    0
    Aug 31, 2003
    San...
    Yes.

    That is typically the case. There can be many, many shares. The TTG directory is specified separately, and although it can be the same directory as one of the shares, it does not have to be a share directory. For example, my pyTivo.conf is:

    Code:
    [_tivo_SD]
    audio_lang = en, eng, 0x80, 5.1, ac3
    
    [_tivo_HD]
    audio_lang = en, eng, 0x80, 5.1, ac3
    
    [_tivo_00000DEADBEEF]
    
    [Server]
    tivo_password = XXXXXXX
    tivo_mak = YYYYYYYYYYYY
    ffmpeg = /usr/bin/ffmpeg
    togo_path = /RAID/Server-Main/Movies/TiVo_TS
    debug = True
    tivo_username = ZZZZZZZ@zzz.zzz
    port = 9032
    
    
    [pyMusic]
    type = music
    path = /RAID/Music
    
    [RAID Server]
    force_alpha = True
    type = video
    path = /RAID/Recordings
    
    [DVD]
    path = /RAID/DVD
    force_alpha = True
    type = dvdvideo
    fast_index = true
    
    [Unverified]
    type = video
    path = /usr/share/pyTivo/Unverified
    
     
  13. Jun 23, 2012 #4113 of 10412
    lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    You need to define a share in pyTivo.

    First shutdown vidmgr.

    Try opening a browser tab, navigate to http://localhost:9032/, select "Web Configuration", "Add Section", put in whatever you want to name the share, "Save Changes", highlight the new section in the list, put "video" as the type, put in the full path to the directory, put "True" in the force_alpha field if you want it sorted alphabetically, "Save Changes" then "Restart pyTivo".

    Restart vidmgr.

    If the above doesn't work, shutdown both pyTivo and vidmgr and use a text editor to modify the pyTivo.conf file to add the share. You need to create an entry in the file that looks something like this:
    Code:
    [Videos]
    type = video
    path = /mnt/samba/Videos
    force_alpha = True
    (The "force_alpha" line is optional) Change "Videos" inside the [] to be whatever you want the new share name to be and "/mnt/samba/Videos" to be the full path of the directory you want to use. Save the edited file (you'll be replacing the existing file) Then restart pyTivo and vidmgr.
     
  14. Jun 23, 2012 #4114 of 10412
    wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    pyTivo will handle tivodecode just fine.

    markmarz, the directory or share name (either way) for pyTivo to pull to is specified by "togo_path" in the "Server" section of pyTivo.conf. And any video share can be pushed from, as others have said. I don't use VidMGR, so I can't comment on that.
     
  15. Jun 23, 2012 #4115 of 10412
    lrhorer

    lrhorer New Member

    6,922
    0
    Aug 31, 2003
    San...
    Oh, it can spawn an external script on the file after transferring it? I didn't realize. In that case, of course, an external script calling tivodecode and then wine / comskip would be easy to set up. The section that calls a delete would be a bit trickier, but may be reasonable, as well. The trick will b e determining from which Tivo the file was transferred.

    William,

    When calling the external script, can pyTivo pass the name or IP of the TiVo?
     
  16. Jun 23, 2012 #4116 of 10412
    todd_j_derr

    todd_j_derr Member

    180
    0
    Jun 6, 2000
    Pittsburgh,...
    The third time was a charm. This time I ditched ffmpeg and did the transcoding (manually) using handbrake with a Xoom preset I cobbled together from various sources on the net. Also I was finally smart enough to test the files before I was sitting on a plane :) Now I just need to incorporate that into a kmttg preset and I'll be good to go - although doing it manually isn't that big of a burden since handbrake has an encoding queue.
     
  17. Jun 23, 2012 #4117 of 10412
    wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    No. It will decode while transferring. It pipes it through.

    May I suggest that further discussion of pyTivo be taken to the pyTivo thread, or its own thread, instead of the kmttg thread? I only brought it up to point out that it was not necessary to reengineer kmttg in order to do what pyTivo already does.
     
  18. Jun 24, 2012 #4118 of 10412
    catfan64

    catfan64 Member

    219
    0
    Mar 6, 2002
    Louisville KY
    I am using KMTTG to copy recordings from a Tivo series 2. The only setting I use is decrypt, which removes the .tivo extension. I can burn the copied recording (.mpg) to a DVD, or copy to a usb thumb drive, and play on my DVD player or laptop, but it doesn't fill the whole screen. Does anyone know the best encode profile to use, that would make it fill the whole screen, without losing any video quality?
     
  19. Jun 24, 2012 #4119 of 10412
    lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    What size screen, 4:3 or 16:9?

    Is the video 4:3 or 16:9?

    Are there black bars all around or just top and bottom or on the sides?

    Does the picture look distorted?

    What does it look like when you watch it on the TiVo?
     
  20. Jun 24, 2012 #4120 of 10412
    catfan64

    catfan64 Member

    219
    0
    Mar 6, 2002
    Louisville KY
    I want to watch it on 16:9

    When i watch the copied file, there are black bars all around.

    The picture does not look distorted.

    When I watch it on Tivo (on a 16:9 tv) it has black bars at the top and bottom.
     

Share This Page