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. Jan 2, 2008 #1621 of 5684
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    Well for HD and S3 units i think we will do this, if it hasnt been done already i havent looked. But for S2 units i dont think it works, if I remember right S2 units have very specific file dimensions that they accept and no others.
     
  2. Jan 2, 2008 #1622 of 5684
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    I am not trying to be argumentative, but this is pretty easy to do on the wiki.

    I actually just did it quickly here:

    http://pytivo.armooo.net/wiki/CurrentRelease

    Then from the main page I added a link to the above page and a link to the prior list and calling it All Releases. Now we just need to change the above page to match the most current release. Others can also add links to their other programs there too.
     
  3. Jan 2, 2008 #1623 of 5684
    danpritts

    danpritts New Member

    6
    0
    Dec 15, 2007
    Interestingly enough, I just discovered pytivo the other day, and wanted the same thing. There weren't to be any options to do this (at least in the code branches i looked at) so i patched pytivo to do this.

    I've added options to:

    - keep original height/width
    - keep original framerate
    - keep original audio sampling rate

    All of these things should save CPU time on transcoding, and should probably result in a smaller video file being sent to/stored on the tivo. on my tivoHD the limited selection of files i've sent this way have all worked, with framerates 25fps and 29.97fps, audio sample rates from 32KHz to 48KHz, and sizes 512x384, 640x480, and 960x528.

    email me (danno umich edu) if you want my patches immediately; i'll work to get them submitted to the main distribution.

    I considered also adding an option to check the bitrate of the original audio stream and try to intelligently set the bitrate of the new audio stream to match (you probaby want a bit more on the target, since mp2 is less efficient than other codecs), but i decided not to bother. This would save a little space but probably not any cpu time; might actually cost more cpu time.
     
  4. Jan 2, 2008 #1624 of 5684
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    Armooo - This is a discussion plugin for trac, would you consider using this:
    http://trac-hacks.org/wiki/DiscussionPlugin

    From the best I can surmize I think it is the only thing that trac is really missing from what ppl want.
     
  5. Jan 2, 2008 #1625 of 5684
    MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    I think I have an idea that will work for this that everyone will like. Hopefully I will be able to put out an update pretty soon...
     
  6. Jan 2, 2008 #1626 of 5684
    MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    I have no problems there, but we might need to add some things in there like what's new in the release, a link to previous versions, etc.

    Is there somewhere in Tracs where Armoo is posting the newest features in releases?
     
  7. Jan 2, 2008 #1627 of 5684
    cconnell

    cconnell New Member

    18
    0
    Nov 15, 2006
    I just installed pyTivo. It looks great. I have about 250 movies in a directory (avg size 5 gig). They show up on my tivo (Series 3) but it takes a long time to see the list (about 30 seconds) and then every page down is another 30 seconds.

    pyTivo is running on Vista the movies are on a share (external hard drive). I can access the share very quickly from Vista.

    What is making the listing of the movies so slow? Can I speed it up? Thanks in advance.
     
  8. Jan 2, 2008 #1628 of 5684
    tlc

    tlc Member

    710
    0
    May 29, 2002
    Some of us are already doing this by setting the ffmpeg_prams as described here. It works great (for the HD). Much less server CPU for the transcoding and the HD does scaling. But the S2's can't handle this.

    tlc
     
  9. Jan 2, 2008 #1629 of 5684
    tlc

    tlc Member

    710
    0
    May 29, 2002
    FYI,

    This may lead to a subfolder fix on the TiVo!

    tlc
     
  10. Jan 2, 2008 #1630 of 5684
    philhu

    philhu User Since Day ONE!

    831
    0
    Apr 11, 2001
    Funcity, MA
    Or, just prompt for an output name for each items as you write it. Kind of what you do now. Ask for a file to match, change the extension to .txt and write that name. For a 13 episode season, you would prompt 13 times, but right now, using season stuff you would need to rename 13 files, and with the older by episode thing, it needs 5 clicks per episode or 65 total clicks. This would be only 13 clicks

    phil
     
  11. Jan 2, 2008 #1631 of 5684
    dlfl

    dlfl Cranky old novice

    7,002
    19
    Jul 6, 2006
    Near...
    A good idea for optimizing settings for S3/HD tivos, along with others that have been posted including wgw's post #1588 and another post for ffmpeg parameters that didn't specify the video bitrate at all, rather a quality goal.

    What we need is an algorithm (i.e., a function) for optimally setting ffmpeg parameters. Arriving at a consensus of how this should work may not be easy, but some suggested general guidelines are:

    1. For s2 (SD) tivos, use the old pre-HD method. (pyTivo knows whether it's s2 or s3/HD by the TSN, which it gets whether you have a per-tivo section or not.)

    2. Compute an intelligent s3/HD default parameter set that has a high probability of giving a fairly good result (good compromise between quality and encoding/transfer time) even if the user chooses not to configure anything.

    3. Provide "bounded" configuration where the intelligent settings from (2.) are constrained by max/min limits set by the user (e.g., for bitrates, size, fps, others as appropriate).

    4. Allow the user to completely determine some parameters. For some parameters such as bitrates this could be done with the bounded configuration by just choosing min and max bitrate to be equal.

    The basic principle is to provide good performance and ease of use for the user who knows nothing about encoding but allow increasing optimization control in proportion to how much the user knows and is willing to control.

    Even just formulating guidelines like these is controversial, so just consider these food for thought. Arriving at a consensus will probably be a messy process but a good solution will be very worthwhile.
     
  12. Jan 2, 2008 #1632 of 5684
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    It should go faster after the initial view of every folder. There is a cache built into pyTivo so as long as you are leaving it running you should notice speed increases the second and subsequent times viewing that folder.

    The reason for this is: When you select a folder for the first time pyTivo has to run each file in that folder through the ffmpeg process to determine of the file is a compatible video. The results of this test are stored in the cache so that subsequent requests for that folder do not require ffmpeg calls. While it is slow the first time, it ensures that only valid videos are displayed on your TiVo.

    Kevin
     
  13. Jan 2, 2008 #1633 of 5684
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    Cool I am always excited for any bug fixes that TiVo does.

    This sounds similar to the pyTivo shares replacing the NPL list. Even the solution is the same as what we came up with. This has been present even before the 8.3 bug, but hopefully fixing this will get rid of the subfolders issue.

    Thanks for the heads up!
     
  14. Jan 2, 2008 #1634 of 5684
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    I like the idea. But I agree it will certainly be a messy process. I am a little behind on the HD front in pyTivo, but I am working on catching up as quickly as possible.
     
  15. Jan 2, 2008 #1635 of 5684
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    Yes, my example was only to show that the wiki can be used to display any number of things. The wiki has come a long way, but it will always need constant edits from everyone. Maintaining the wiki is just too much for one person to do.

    Well you can look at the changelog and determine what was fixed or added in each release. Most releases do not add new features but fix bugs that have been found.
     
  16. Jan 2, 2008 #1636 of 5684
    cconnell

    cconnell New Member

    18
    0
    Nov 15, 2006
    Thanks for your response. It has been running all day and it is not faster. I have not taken the time to page to bottom of the file list. Would that matter? I have just one folder with 250 files in it. No sub folders. Thoughts? Thanks.
     
  17. Jan 2, 2008 #1637 of 5684
    MickeS

    MickeS New Member

    25,884
    0
    Dec 26, 2002
    AZ
    Thanks to both of you for responses! I will try tlc's suggestion with the ffmpeg_pram. Since the S2 still has the annoying bug where it squeezes widescreen video and adds black bars on top and bottom, I don't use it for TTCB any longer. I wonder if TiVo will fix that...
     
  18. Jan 2, 2008 #1638 of 5684
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    For those using MetaGenerator for entire seasons here is a good free batch renamer:
    http://www3.telus.net/pfrank/

    This way you can rename 1x1.txt -1x22.txt to match your desired format
     
  19. Jan 2, 2008 #1639 of 5684
    philhu

    philhu User Since Day ONE!

    831
    0
    Apr 11, 2001
    Funcity, MA
    If somehow you got metadata from that program and files from it, I wrote a quick VB program to turn the meta data into pyTivo NPL metadata. I will distribute the source, since it needs a quick config and I dont wanna build a full vb exe generator install kit.

    There is alot more data available in the meta files than is currently in the .txt files.

    Does anyone have a list of keywords that PYTIVO allows in the metadata .txt files when showing in the NPL? Or are we using all of them allowed so far?

    And can the PYTIVO .txt file take genre's in numbers, not words, like

    vProgramGenre : 34

    instead of

    vProgramGenre : Comedy

    Since the Tivo uses multiple genres in a numeric format. BTW, I do have a list of all Tivo Genre numbers if anyone wants it


    And is there a way in those metafiles for PYTIVO to show Original Airdate, and this showing airdate? Both is available.
     
  20. Jan 2, 2008 #1640 of 5684
    StanSimmons

    StanSimmons Senior Moment Member

    4,717
    0
    Jun 10, 2000
    Flower...
    Would it be possible to add support for .tmf files to pyTivo. They are native TiVo ty streams that are tar'd and have metadata in XML format added to them.
     

Share This Page