1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

pyTivo - Transcoding server

Discussion in 'TiVo Home Media Features & TiVoToGo' started by armooo, Nov 25, 2006.

  1. Apr 6, 2009 #2241 of 5683
    cadmium

    cadmium New Member

    31
    0
    Nov 13, 2007
    Pretty much yeah. It's pretty simple and requires pyTivo to do the heavy lifting as far as pushing to the Tivo.

    I'll see about fixing it up.
     
  2. Apr 6, 2009 #2242 of 5683
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    I'm using the old (but still reliable) Now Playing PHP code to generate RSS feeds of my TiVos' NPLs. You could use something like that to make it more cross-platform.
     
  3. Apr 7, 2009 #2243 of 5683
    cadmium

    cadmium New Member

    31
    0
    Nov 13, 2007
    I appreciate the suggestion. Right now I'm going to stick with C#\.NET just because I know I can get something working.

    Also, I've begun cleaning things up, but I think I'm going to have to change it from a service to a system tray application. It won't really change anything, and will allow me to do a few things i couldn't otherwise.

    Services in Vista are locked down too tight for what needs to happen.
     
  4. mikel_b

    mikel_b New Member

    6
    0
    Mar 13, 2009
    Can someone help point me in the right direction as far as python goes?

    I have found that I can do the following:

    f:\videos\movie.avi
    f:\videos\movie.srt
    f:\videos\movie_sub.avs

    The AVS file contains:
    LoadPlugin("C:\Program Files\Combined Community Codec Pack\Filters\vsfilter.dll")
    DirectShowSource("F:\videos\movie.avi")
    TextSub("F:\videos\movie.srt")

    Now on my TV I can select the avi file for an un-subbed version or the avs file for the subbed version.

    The annoying thing is having to create all these .avs manually. I could write a util to do it but I was thinking I would prefer something like this:

    I'm assuming TIVO requests a list of available files from pytivo and def QueryContainer in video.py gets called?

    What I'd like to do is have pytivo check to see if there are any .srt files and if so return a "virtual" file like movie_subbed.avi. Then if that file gets requested it (def send_file?) creates the .avs file on the fly and sends that to ffmpeg->tivo.

    I'm sure it's possible, if it was c# i'd know what to do, but I don't have any python experience.

    Thanks for any help...
     
  5. Allanon

    Allanon Member

    580
    0
    Nov 2, 2005
    Not sure if this has been asked before because this is a long thread and I didn't read everything. Would it be posible to program pyTivo to push a file that is located on one Tivo and have it auto transfer to another Tivo without having to download the file to a computer? I think .tivo files can be pushed and there is a HME streaming program that can stream .tivo files directly from the Tivo. So I was wondering if pushing the .tivo file from one Tivo to another would be posible? This would allow people to use their computer to tell the Tivo which files to transfer but the computer wouldn't be needed for the actual file transfer. I have 3 Tivo HD's and it would be great if I could auto transer files without having to go to each Tivo to specify which files to transfer.
     
  6. Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    .tivo files cannot be pushed from PC to Tivo. Or at least it doesn't work with the current pyTivo code. There was a recent thread about this over at the pyTivo forum. .tivo files can of course be pulled.

    However, Tivo HD to Tivo HD MRV transfers don't use .tivo format. The raw Tivo streams are actually transmitted between the two boxes at higher speeds than .tivo (TivoToGo) transfers. I don't know the mechanics enough to know if what you're asking is possible. wmcbrine probably does.
     
  7. Allanon

    Allanon Member

    580
    0
    Nov 2, 2005
    After reading THIS POST I was under the impression pyTivo did push .tivo files.
     
  8. wmcbrine

    wmcbrine Ziphead

    10,367
    22
    Aug 2, 2003
    Note the date on that message -- at that time, pyTivo didn't push at all, in the sense we now use the term. He was just using it to mean "transfer". This post is more relevant.

    I don't think it could work as you outline. It could theoretically work with the pyTivo system as the intermediary, if pyTivo also decrypted the source TiVo's stream with tivodecode. I've actually been planning something like that, although I was thinking more in terms of a regular pull. (I had in mind the ability to transfer HD programs to an SD TiVo.) I guess it could work for push, too. Of course it would be much slower than MRV.
     
  9. Joe3

    Joe3 Member

    284
    0
    Dec 12, 2006
    ohhh K

    I am getting tired of searching after a few hours of mind block```

    Dumb question, where do I download the Meta Generator to what file in my computer?

    I get Error- C:\WINDOWS/Microsoft.Net/Framework/v2.0.5072/mscorks.dll could not be loaded.

    Or how?

    Thanks
     
  10. greg_burns

    greg_burns Now in HD

    6,384
    0
    May 21, 2004
    Slower...
  11. Joe3

    Joe3 Member

    284
    0
    Dec 12, 2006
  12. Gavroche

    Gavroche New Member

    398
    0
    May 26, 2007
    State of...
    Well I have just been on a 16 hour troubleshooting marathon trying to fix this issue, but to no avail.

    I have 3 Tivos, Series 3, Series 2 ST (TSN 540) and Series 2 DT (TSN 649).
    My Series 2 units are connected to regular old 4:3 TV's.

    On my Series 3 everything plays fine.
    On my Series 2 ST (TSN 540) everything plays fine.

    But, on my Series 2 DT (TSN 649) The aspect ratio doesn't work right. For some reason, PyTivo believes that all of my 4:3 files (mp4) are infact 16:9 so when they arrive at the tivo the picture is letterboxed and stretched out.

    What is going on here and how can I fix it? I'm already using the "Aspect169 : False" in my config file but it doesn't make any difference.

    I can use " - aspect 4:3" for ffmpeg but then it stretches everything to 4:3.

    How can I get this Tivo to behave like my Series 2 540 and show 4:3 mp4's as 4:3 and 16:9 stuff as padded 16:9?

    I'm sure there must be something simple that I am missing, but after spending so many hours reading about this on the net I don't seem to be any closer to a solution other than knowing that PyTivo thinks my 4:3 files are 16:9 when tranfering to my 649 Tivo.

    What should I do now? Any help is greatly appreciated.

    EDIT: I've determined that the problem files are all .mp4's that are supposed to be 4:3 but where the pixel aspect ratio is not square. They do play correctly as 4:3 on my 540 S2 tivo though. There must be a way to make these play similarly on my S2 649, no?
     
  13. wmcbrine

    wmcbrine Ziphead

    10,367
    22
    Aug 2, 2003
    Can you send me or point me to one of these problem files?
     
  14. Gavroche

    Gavroche New Member

    398
    0
    May 26, 2007
    State of...
    They are Nero-Recoded standard (not AVC) MP4 files ("Nero Digital" format) that should be 4:3 but the PAR is less than 1. They seem to report back as something like this:

    par1 10:11
    par2 0.9090909091

    If I recoded them to be PAR 1 (select "square pixel" option in Nero) they play correctly on my 649 Tivo.

    I realize I probably encoded them wrong. Still, they play fine on my 540 Tivo and every other player out there, including Windows Media Player and VLC Player, and even on my Windows Mobile phone using the Core Media Player.

    It's only from PyTivo to my 649 Tivo that it comes up wrong. It squashes the picture and pads to 16:9 on ANY Nero-Encoded mp4 file where the PAR is not 1. What I do know is that from my 649 Tivo, PyTivo is using "- aspect 16:9" for ffmpeg where as from my 540 Tivo, PyTivo correctly picks "- aspect 4:3" for the transcode for the same file.

    For an example file, I'd basically have to encode something for you this way so as to not have to send you a huge file. I could do that, if you think the answer lies in the encoding of the file. How should I pass the file to you? Send it in PM or post a link?

    Thanks in advance.
     
  15. wmcbrine

    wmcbrine Ziphead

    10,367
    22
    Aug 2, 2003
    Don't limit the size on my account. I have Fios. :)

    I had one guy make a torrent file to send me a 786-meg test file. That worked well.

    I think the PM quota here is much too low for that.

    Again, it makes no difference to me. Whatever works for you. But I don't have a space you can upload it to, sorry.
     
  16. JeffKusnitz

    JeffKusnitz Member

    83
    0
    Apr 9, 2008
    I just installed pyTivo on a new PC (64-bit Vista). I configured it to share a pair of folders that contained a few hundred .TiVo recordings. From my TiVoHD's Now Playing List, I can see all of the recordings, and can select them to be transferred to the TiVo, but the transfers never happen.

    One odd thing I noticed - the sizes for all of the shows listed in the pyTivo NPL are 0:00. But if I move one of these shows over to Tivo Desktop (I have 2.7 installed on the same machine), the size is correct, and the show transfers fine. This would imply that the show itself is fine at least.

    The PC came with Norton Internet 2009, which I left installed, but I think I've configured it to allow python to respond to requests.

    Any thoughts as to where I might look to see what's happening to the transfer requests?

    EDIT: I looked at the recording history on TiVo - all it said was that the transfer didn't take place because of a transfer error.

    Thanks,
    Jeff
     
  17. wmcbrine

    wmcbrine Ziphead

    10,367
    22
    Aug 2, 2003
    Showing zero duration on .TiVo files is normal for pyTivo, because it doesn't peer into them (since they're encrypted), just treats them as black boxes. However, they are normally transferable. But, I'm guessing you're using this version of pyTivo -- yes? If so, see here. I fixed this last month in my repo, but unfortunately rdian06 has not updated his Windows Installer yet.
     
  18. Gavroche

    Gavroche New Member

    398
    0
    May 26, 2007
    State of...
    Here you go:

    http://www.jupah.com/users/alex/test.mp4

    It's just a minute or two. I encoded it "incorrectly" in Nero and verified that it plays correctly on everything except my 649 Tivo, which thinks it's a 16:9 file (adds "- aspect 16:9" to ffmpeg, whereas requesting the same file from my 540 Tivo adds "-aspect 4:3").
     
  19. Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    You can try using MP4Box to change the PAR setting of the video track to be 1:1.

    See this post for sample command line usage:

    http://www.tivocommunity.com/tivo-vb/showthread.php?p=7167069#post7167069
     
  20. JeffKusnitz

    JeffKusnitz Member

    83
    0
    Apr 9, 2008
    I confess, I have no idea what a "git" is, but I downloaded the latest zip from your repository, replaced my plugins/video/transcode.py with its and magically transfers work again. Thanks!

    Jeff
     

Share This Page