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. Dec 2, 2008 #2041 of 5683
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    When you say "messes with regular SD television" what do you mean?

    I keep my S3 set to Native resolution, 16:9 shape and LCD Aspect (or at least I think that's what it's called off the top of my head). I also set width=1920 and height=1080 in my pyTivo.conf. 1280x720 content transfers and fills the screen. 1280x528 or other cropped content displays properly with a little black at the top and bottom. SD content is pillarboxed both when I transfer it and when I just watch it off the cable.

    Are you trying to get SD content to fill your screen instead of being pillarboxed? On the rare occasions when I actually wants this, I tend to use my TV's zoom controls and not mess with the Tivo's settings. But that's just me.

    Also, I second wmcbrine's suggestion that you not use non-standard resolution settings. Choose either 1920x1080 or 1280x720. The native res of your TV isn't a standard Tivo output resolution.
     
  2. Dec 3, 2008 #2042 of 5683
    wmcbrine

    wmcbrine Ziphead

    10,366
    22
    Aug 2, 2003
    Suggest:
    Output format: fixed
    Aspect ratio: 16x9

    and use the Aspect button as needed.
     
  3. Dec 3, 2008 #2043 of 5683
    MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    Hey guys, I just released a new version of the MetaGenerator...go here to see the details
     
  4. Dec 3, 2008 #2044 of 5683
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    What happens if you leave out optres or set it to false?

    For Tivo HD/S3 units, if the video res is below your width/height settings, then pyTivo will send the video over at it's native res. If the video is 1280x528, that's what is sent to your Tivo. How your Tivo and the TV deal with it from there is not under pyTivo's control.

    It feels like your TV is auto stretching the 1280x720 signal to fill it's native resolution, but that anything not 1280x720 is being treated as a literal centered window inside the 1366x768 as if it were a computer monitor. Does your TV have some fill screen control that you might need to enable?

    Also, you still haven't elaborated on what happens to your SD video when you set TV aspect ratio to 16:9.
     
  5. Dec 4, 2008 #2045 of 5683
    Good Karma

    Good Karma New Member

    2
    0
    May 9, 2007
    Python 3.0 released today. Any chance of a pyTivo Windows installer update?

    Many thanks in advance.
     
  6. Dec 4, 2008 #2046 of 5683
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    At first glance, it looks like Python 3.0 introduces language changes so it might not be as easy as just updating the installer.
     
  7. Dec 4, 2008 #2047 of 5683
    wmcbrine

    wmcbrine Ziphead

    10,366
    22
    Aug 2, 2003
    Yes, big incompatible language changes. It's not a simple matter of running it with 3.0; it's a port. That may happen eventually. However, for now, you should not try to use pyTivo with Python 3.0. That goes for every other Python app in existence, too, unless it's specifically labelled as being for 3.0, or compatible with it. (The set of programs that can run unmodified on both 2.x and 3.x is quite small.)

    2.x is mainstream Python for the forseeable future. There will be a 2.7 after 2.6, and perhaps even a 2.8 and 2.9. At this point, no one can really say how quickly 3.x will be taken up.
     
  8. Dec 4, 2008 #2048 of 5683
    lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    A couple of us have posted queries about this issue on the PyTivo forum, but so far no responses. I'm running the most recent wgw fork, and series titles are showing up in the NPL with the minor episode number - but not the season number - in the title. The new version of the metagenerator seems to be causing the episode number to show up at the end of the title rather than the beginning, but the behavior is still rather annoying, either way. How can we get the title to not show the minor episode number?
     
  9. Dec 5, 2008 #2049 of 5683
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    I don't think you quite understood what I was saying. First of all, the pyTivo FAQ predates me and is somewhat inaccurate (read wrong) with respect to how the current forks actually operate with Tivo S3/HD units. It just hasn't been updated in a while.

    I use what free time I have to do support, fix ffmpeg, and try to deal with the Windows installers. The other developers work on the actual pyTivo code. But I've crawled around enough in the pyTivo code to know how this particular part of it works.

    The Tivo S3/HD units are very forgiving as to the resolution and framerates they accept. This is in stark contrast to the S2 units that are very rigid and expect exact resolutions and framerates.

    pyTivo also uses DIFFERENT defaults depending on whether it is sending to a Tivo S3/HD or an S2 or lower (it decides what default to use based on the TSN which has the model number at the beginning of it.) Tivo S3/HD units default to width=1280 and height=720.

    For sending to Tivo S3/HD units, when the source video has a resolution equal to or lower than the defined width/height, the video is sent to the Tivo at the same resolution as the source. If you turn on pyTivo's logging, you will see the ffmpeg command line parameters used for doing the transcode. For source video with resolutions equal to or lower than the defined width/height, you will see that the -s parameter is NOT passed. Meaning that ffmpeg PRESERVES the source resolution. When you send to S2 units or the source resolution is beyond the configured width/height, the -s parameter is used to specify the target resolution.

    I set my width=1920 height=1080, so pretty much everything I send to my Tivo S3 is at the source resolution. Now what the Tivo unit decides to output to your TV and how it treats the video once it has it is completely up to the Tivo and beyond pyTivo's control.

    Another thing, the Tivo Info display LIES about what resolution it is outputting. The best way to tell what resolution is actually being output by the Tivo is to use the Info display of your TV (assuming it has one). There are plenty of times when I'll be watching a live 1080i broadcast and the Tivo will report it as 720p even though my Panasonic plasma's info display says 1080i. Hopefully Tivo will fix this bug with the v11 update.

    Based on the S3 to S2 testing you did, it sounds like the Tivo unit itself is treating anything with height lower than 720 to be convertable to SD for output. And that setting your Tivo TV shape to Smart in the Tivo tells it to output anything less than 720 as SD rather than HD.

    You yourself said that when you set the Tivo TV shape to 16:9, the same cropped 1280x5xx video is displayed as HD and with proper letterboxing only on the top and bottom. This would be impossible if pyTivo were sending an SD signal as you are saying.

    pyTivo has no knowledge of the Tivo TV Shape or Aspect settings. I don't think there is even a way for the pyTivo to extract that information from your Tivo if we wanted it to.

    On my setup, settings Tivo TV Shape to Smart causes the Tivo Central screen to come over in SD. I HATE this so I set it to 16:9 and the Tivo Central screen comes over at 1280x720 as reported by my TV. I've been told by others that the Tivo Central screen is actually a well designed non HD bitmap that is stretched to HD resolution for output. Hence why the Smart setting makes it come out as SD.

    When I first started using pyTivo, I had my Tivo Aspect set to Full which caused cropped HD heights to get stretched rather than properly letterboxed. I even proposed to add a generic padding function that would calculate the difference between the source height and either 720 or 1080 and then pass the ffmpeg parameter to border pad to the proper resolution. But then I discovered that setting Tivo Aspect to Panel in conjunction with Shape to 16:9 fixed my HD issue and stopped caring.

    I'm almost certain that double pillarbox effect is an issue with your TV. Is there a setting in your TV for stretching SD that you could turn on and then just use TV Shape 16:9 in your Tivo?

    Again, the FAQ is wrong. The video is transferring at the source resolution unless you lower your width and height to less than the source resolution.

    If it wasn't, then using TV Shape 16:9 and Aspect Panel wouldn't magically make the video appear as HD. It's stored on the Tivo as HD, it's just output as SD based on your Shape setting.
     
  10. Dec 5, 2008 #2050 of 5683
    MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    You didn't post this in the official MG threat at the pyTivo forums. I'll look into it about removing the episode number at the end of the title.

    If you need help with the MG, you need to post it in the MG thread, otherwise, I probably won't see it until I am bored and start looking around other threads and forums.
     
  11. Dec 5, 2008 #2051 of 5683
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    His problem (episode number prefixes episode title) pre-dates the new MG and is related to wgw's fork. However the new behavior where the episode number is at the end of the episode title is probably the new MG's issue.
     
  12. Dec 6, 2008 #2052 of 5683
    lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    That's right, so it didn't seem like the MG thread thread was the correct place for the post, plus I did not start the thread. I merely replied along with the original thread starter. Whatever the case, however, and whether MG is in part culpable or not, it's annoying.
     
  13. Dec 6, 2008 #2053 of 5683
    MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    The new MG is putting the episode number at the end of the title...

    Does everyone want this removed?
     
  14. Dec 6, 2008 #2054 of 5683
    gonzotek

    gonzotek tivo_xml developer

    2,402
    3
    Sep 24, 2004
    Outside...
    Maybe make it an option? I prefer not to have them in the title, myself.
     
  15. Dec 6, 2008 #2055 of 5683
    lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    Well, I could understand wantingto have the season and episode there, but having just the minor episode number seems totally pointless. I definitely vote for having the ability to remove it entirely, whether optionally or not. It seems to me if it is to be optional, though, then the only option that makes sense is the ability to have the season and episode both appear.
     
  16. Dec 7, 2008 #2056 of 5683
    jcthorne

    jcthorne Active Member

    2,721
    3
    Jan 28, 2002
    Houston
    I would prefer the episode number at the front of the episode title so that they sort correctly in the Tivo display.
     
  17. Dec 7, 2008 #2057 of 5683
    lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    This does not require anything at all from pyTivo or the MetaGenerator. If you have a metafile associated with a program, the filenames on your server have nothing to do with what is displayed on the NPL, except for the order of listing. Indeed, nothing in the metafile will affect the sort order in the TiVo, and prefixing the episode names in the episodeTitle field with the season and episode number will NOT cause them to sort properly in the NPL.

    To do what you want, simply name your programs and their metafiles sequentially on the server. For example, my Lord of the Rings directory looks like this:

    Code:
    RAID-Server:/RAID/Recordings/Lord of the Rings# ll
    total 62568664
    drwxrwxrwx  2 lrhorer users        4096 2008-11-02 02:21 .
    drwxrwxrwx 35 root    root        36864 2008-12-07 21:23 ..
    -rw-rw-rw-  1 lrhorer users 19960115200 2008-04-12 18:42 1 Lord of the Rings- The Fellowship of the Ring, The (Recorded Fri Apr 04, 2008, TNTHD).mpg
    -rw-rw-rw-  1 lrhorer users        2082 2008-04-26 02:27 1 Lord of the Rings- The Fellowship of the Ring, The (Recorded Fri Apr 04, 2008, TNTHD).mpg.txt
    -rw-rw-rw-  1 lrhorer users 21379262464 2008-05-02 23:53 2 Lord of the Rings- The Two Towers, The (Recorded Sat Apr 05, 2008, TNTHD).mpg
    -rw-rw-rw-  1 lrhorer users        1946 2008-05-02 21:48 2 Lord of the Rings- The Two Towers, The (Recorded Sat Apr 05, 2008, TNTHD).mpg.txt
    -rw-rw-rw-  1 lrhorer users 22668285952 2008-05-01 03:18 3 Lord of the Rings- The Return of the King, The (Recorded Sun Apr 06, 2008, TNTHD).mpg
    -rw-rw-rw-  1 lrhorer users        1933 2008-05-01 02:16 3 Lord of the Rings- The Return of the King, The (Recorded Sun Apr 06, 2008, TNTHD).mpg.txt
    RAID-Server:/RAID/Recordings/Lord of the Rings#
    Meanwhile, when I go into the Lord of the Rings directory in the NPL, it looks like this:

    Code:
    "The Fellowship of the Ring"
    "The Two Towers"
    "The Return of the King"
    Should you so choose, you could name them 1.mpg, 2.mpg, and 3.mpg, and they would still come out with the proper names etc. in the NPL. This is true whether they are episodes of a TV series, or not. You might notice I strip any leading "The " in the filename and place it after the program name, but before the "(Recorded..." section. I do this for all files, so the sort order comes out based upon the main title name, but not with a ton of programs beginning with "The " all lumped together. The metafiles have the "The " at the beginning of the title field, however, so the full name comes out in the NPL as The 6th Day, or The Philadelphia Experiment, the former being at the very top of the list and the latter being among the "P"s.

    The sort list after transferring back to the TiVo might be a different matter - I'm not sure, but then I don't recommend one transfers large groups of files back to the TiVo. There's little point, and it takes up space on the TiVo, which is limited.

    If the episode parms have to be there, I would vastly prefer they appear at the end. If anything gets truncated, I would prefer it be that.
     
  18. tim_ver

    tim_ver New Member

    35
    0
    Nov 30, 2007
    Ok, I am new to this so please do not laugh.

    If I understnad this you download the pyTivo program from here:
    http://www.python.org/download/releases/3.0/

    Or should I get 2.5 or 2.6?

    Install it on your PC, for me the Windows AMD64 MSI Installer (I have Vista 64). Then I can see the share folder it creates on my PC on my Tivo.

    And select the files I want say Family_trop_2008.avi and watch it on my TV through Tivo?

    Is this correct or did I miss something?

    Also does it leave the files on the PC just view them trough the Tivo/TV or does it physical move them over to the Tivo and store them there to watch/delete?

    Thanks much
     
  19. Kershek

    Kershek New Member

    125
    0
    Oct 10, 2002
    Mesa, AZ
    A post above (#2052) says not to use 3.0, so use 2.6.

    It works like TiVo Desktop, except that it will transcode any codec installed on the PC to TiVo format on the fly while it streams to your TiVo. It never deletes it off the source PC.
     
  20. tim_ver

    tim_ver New Member

    35
    0
    Nov 30, 2007
    Ok, so it just streams from the PC never copies it over so good to have the tivo connected via a cable and not wireless?

    Will it play .avi files?
     

Share This Page