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. jcthorne

    jcthorne Active Member

    2,720
    2
    Jan 28, 2002
    Houston
    Yes, use vidmgr. I have disabled display of pytivo files in the NPL entirely for the reasons lrhoror has stated. The presentation by vidmgr on the tivo is much more useful and user friendly.
     
  2. djwilso

    djwilso Member

    588
    0
    Dec 23, 2006
    Phoenix, AZ
    Can you provide a link to where I can look at vidmgr? I have not heard of it before.

    Also, I use pyTivo mostly to play music on the TiVo. I really don't transfer that many videos from my computer to the TiVo.

    If the music shares will not appear under "Music & photos", what can I do then?

    Thank you.
     
  3. wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    Any particular reason for that "beacon" line? If not, I'd take it out.

    Beyond that, I don't know. I think others have reported pyTivo working with their Elites.
     
  4. jcthorne

    jcthorne Active Member

    2,720
    2
    Jan 28, 2002
    Houston
  5. djwilso

    djwilso Member

    588
    0
    Dec 23, 2006
    Phoenix, AZ
  6. Soapm

    Soapm Active Member

    1,564
    0
    May 9, 2007
    So close,...
    Is there a setting in wmcbrine fork to change the sorting of the NPL? My pytivo view doesn't seem to have a logical order and I would perhaps like to sort them alpha or at least have the folders before the lose files.
     
  7. lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    Yes.
     
  8. wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    It's date-sorted. Just like it says on the screen. If you want it name-sorted, press "1". Unfortunately that only works at the top level, and leaves folders date-sorted on lower levels; to get alpha sorting everywhere, you have to use the "force_alpha" kluge.
     
  9. jcthorne

    jcthorne Active Member

    2,720
    2
    Jan 28, 2002
    Houston
    If you would like better control and better presentation of your video collection on the tivo, suggest looking at vidmgr. It uses the HMO interface to present a much nicer view and then uses pytivo to push the video. For properly encoded video on Premiere units, this happens in better than real time allowing you to essentially watch any video on your server instantly.
     
  10. Soapm

    Soapm Active Member

    1,564
    0
    May 9, 2007
    So close,...
    That makes more sense and since I consolidated movies from 4 or 5 different locations to one external drive what I see is a mess... :)

    When you say date sorted, what date? Original air date maybe? Anyway to sort be original air date?
     
  11. lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    If you make the file names of the form series name.SssEee.<whatvever>.<ext>, this will accomplish two things:

    1. An Alpha sort will put them in order.

    2. You can drag the entire folder to pyTivoMetaThis and it will generate Metadata for every file in the folder.

    Even the TiVo does not sort by OAD. The choices are Alpha or record time. I usually put a default.txt file in every folder with time: OAD so that when I pull them to the TiVo, the record time is at least close to what it would have been if I had recorded them on the TiVo when first shown. The only problem is that record time is adjusted to local time so if I leave the OAD as the default yyyy-mm-ddT00:00:00Z, the record time ends up off by a day. If I change originalAirDate to the actual time, that is usually the next day and then OAD ends up off a day. As a compromise, I usually change the OAD so that the time is 23:00:00. That I can do via a mass edit. My only other option would be to edit each metadata file individually and put a time entry with the actual universal time of the original showing.

    I realize that the previous paragraph may have confused most people so may be ignored if you wish.:)
     
  12. lrhorer

    lrhorer New Member

    6,922
    0
    Aug 31, 2003
    San...
    Actually, it's HME, not HMO. pyTivo employs HMO.

    He has a TiVoHD. MPEG2 1080i videos will not quite transfer in real time on the THD, and 720p videos definitely will not. SD videos will, and using pyTivo push (with or without vidmgr), h.264 videos in a .mp4 container will transfer much faster than real time. I also would not quite say "instantly". There is a brief pause - up to a minute - before the video starts transferring.
     
  13. lrhorer

    lrhorer New Member

    6,922
    0
    Aug 31, 2003
    San...
    I have four different naming conventions on my server. The first is for ordinary movies. They are simply named:

    <MovieName> (Recorded <Day> <Date>, <Channel>).mp[4g]

    Example: World According to Garp, The (Recorded Fri Jul 09, 2010, ENCR1H).mpg

    The next is for movie franchises. Each franchise is collected into its own directory and all the names start with the same fragment, followed by the number in the series, followed by the remaining name:

    <Prefix><Number><Suffix> (Recorded <Day> <Date>, <Channel>).mp[4g]

    Example: Star Trek 02 II The Wrath of Khan (Recorded Mon Sep 05, 2011, MAXHD).mp4

    Finally, while I don't have many TV series, I do have a few of them. Again, each is collected into its own directory. If it was a series that was not chronologically ordered series, like the original Star Trek, then I just have the series name followed by the episode name:

    Example: Star Trek - Ultimate Computer (Recorded Sun Feb 10, 2008 KMYSDT).mp4

    If it is a chronological series, though, like ER or Wings, then I add the Season and Episode numbers to the name:

    Example: Frasier - S01 E12 - Miracle on Third or Fourth Street (Recorded Fri Dec 25, 2009, KABBDT).mp4

    I simply use the metafile created by kmttg when the video is transferred from the TiVo. I run a script against the metafile that adds a metafield whose value is based upon the record date, fixes the duplicates and incorrect names sometimes found in the metadata, and limits the number and type of genres found in the metafile.

    It was a bit breathless, yeah. :)
     
  14. lrhorer

    lrhorer New Member

    6,922
    0
    Aug 31, 2003
    San...
    Yes, if you include the original air date in the name. Alternatively, if you use vidmgr 2.0, you can create a virtual share that sorts based upon any partitular field in the metafiles. If the original air date is in the metafile, vidmgr can sort the share by that value. For example, I have a script create a metafield with a metavalue that is derived from the recording date. The metavalue is created in such a way that the lower the number, the more recently the video was recorded. (This is no longer necessary in V2.0 of vidmgr, since he has included a way to invert the sort, but I don't feel like going back and re-doing all the metafiles.) Here is an example:

    Code:
    title : Frasier
    seriesTitle : Frasier
    episodeTitle : Goodnight, Seattle
    originalAirDate : 2004-05-13T00:00:00Z
    description : During an especially bumpy flight, Frasier tells a fellow passenger about his eventful past few weeks, which are recounted in a long flashback. Niles worries that his child will turn out like Daphne's brothers. Frasier finally gets everyone out of the apartment, and he and Charlotte bid each other a sad farewell. Daphne delivers her son.
    callsign : KABBDT
    seriesId : SH080939
    vSeriesGenre : Comedy
    vDirector : David Lee
    vWriter : Joe Keenan
    vWriter : Christopher Lloyd
    recordDate : 11921336
    ...
    I then created a virtual share that is sorted on the record date, like so:

    Code:
    [Browse by Date]
    values = all
    sort = recordDate
    The result? I have a share that displays all my videos with the most recently recorded ones at the top. When my family comes over, we often want to see, "What's new?" I also have shares that sort by series, by name, by actor, by director, by channel, etc. Using the example metafile above as a template, with vidmgr all one needs to do to create a virtual share for series sorted by series name and then original air date is the following:

    Code:
    [Browse by Series]
    values = isEpisodic:true,True,TRUE
    groupby = seriesTitle
    sort = originalAirDate
    For more discussions relating to vidmgr, why don't we take it to the vidmgr thread?
     
  15. lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    In what way does Star Trek: TOS have no chronological order? Yes, there was some instance of them being show out of production order but so are other series. The standard naming convention of SnnEnn is still relevant.

    If what you are saying is that there was no episode to episode continuity, while mostly true, it is not entirely accurate. A particular example is that "Mudd's Women" should be viewed before "I, Mudd".

    For the most part, I prefer "pulls" to "pushes" because more of the Metadata is transferred to the TiVo. Whether anyone thinks this is the "wrong way" is entirely irrelevant to me. It's my preference.
     
  16. Soapm

    Soapm Active Member

    1,564
    0
    May 9, 2007
    So close,...
    Actually, Da Goon hooked that up a while back so my folders have been sorted by original air date http://www.tivocommunity.com/tivo-vb/showthread.php?p=6936250#post6936250

    All the shows I took off my S2DT are still in the Tivo wrapper and they transfer better than anything I've seen to date. I can transfer a 30 minute show in about 10 to 15 minutes which means not only can I transfer real time, I can skip the commercials...

    Why can't this coding be inserted in the pytivo code except sort only with "sort = originalAirDate". I used MetaGenerator.exe to make meta files for all the shows and they all have an original air date.

    I tried loading vidmgr a while back and abandoned that exercise as just too complicated for me.
     
  17. lrhorer

    lrhorer New Member

    6,922
    0
    Aug 31, 2003
    San...
    Not so much. Not only were they aired out of order, but their plot lines were not serialized.

    Well, since I and everyone I know well enough to invite over to my house have seen every episode of the original series several times, it really doesn't matter in what order they are viewed. With the exception of the solitary two part episode ( "The Menagerie" ), "I, Mudd" is the only episode that has anything more than a momentary referent to any previous episode, and even that is only invested in the character H.F. Mudd himself. What he did in "Mudd's Women" isn't really even relevant to the plot of "I, Mudd", and that episode stands perfectly well all by itself. The singular inter-relationship of that pair of episodes and the somewhat less tenuous link between the pilot episode ( "The Cage" ) and the aforementioned two part "The Menagerie" episode notwithstanding, I saw no reason to bother with episode sorting for that series, nor its first offspring, "Star Trek: The Next Generation". By contrast, series like ER have long strings of well serialized plot sequences involving specific characters in specific, chronological progression.

    The features of vidmgr so far outweigh the few advantages of pulls (the more complete metadata being greatest among them) that I cannot recommend the use of pulls in favor of vidmgr. Add to that the fact on the S3 and THD, h.264 videos transfer as much or more than 4x faster than the same video coded in MPEG2 (not to mention the fact the h.264 files take up about 1/3 less space on the server), and I simply don't use the NPL at all, any more.

    It's not a matter of "right" or "wrong". It is a matter of which feature set provides the greatest bang for the buck. The only major advantage the pull has over vidmgr is the more complete metadata set. That's a very small advantage compared to the advantages of vidmgr over a pyTivo pull. I never even look at the metadata on a file I have transferred from the server, nor do I expect most people do.

    I do frequently make use of the push feature in the pyTivo web utility.
     
  18. lrhorer

    lrhorer New Member

    6,922
    0
    Aug 31, 2003
    San...
    The container doesn't really make any difference to the transfer speed. Any .TiVo file will transfer at just about precisely the same speed if it is converted to .mpg. The .TiVo file is just a .mpg file with some simple encryption and some metadata added to it. SD video will indeed transfer just fine at better than real-time on the THD.

    HD content, OTOH, will not. Even moderately low bandwidth 1080i MPEG2 material will usually take a bit longer to transfer to the TiVo HD than it does to watch, resulting in pauses if one starts to watch immediately. High bandwidth 1080i and especially 720p material hasn't a chance of transferring at real time on a THD. By comparison, if that 720p material is re-coded to h.264, then not only will it use up about 1/3 less space on the server, but a 30 minute 720p video will transfer to the TiVo using the pyTivo push utility in about 10 minutes. A 30 minute SD video coded as h.264 will transfer in less than 5 minutes.

    The down side is transferring h.264 files via pyTivo pull takes a long time, so any h.264 files are probably limited to pushes only.

    pyTivo works very differently from the way vidmgr does. It would no doubt be possible for pyTivo to inspect the metafile for keys to sort the data, but it does not. You could certainly request such a feature.

    Since you just accomplished hacking a TiVo, I assure you it is not. Especially if you move forward with that Linux server, adding HME for Python and vidmgr are quite easy, although vidmgr has a *TON* of configurable features, so figuring out which ones you want to implement can take a while.
     
  19. lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    You are correct in that it isn't right or wrong. It is also not a matter of "bang for the buck". It is a matter of personal preference. I could not care less what you recommend. The way you do it is the best way - for you. The way I do it is better - for me. For one thing, most of what I have on my computer is neither MP4 nor MPG. For another, I sometimes like to start watching something immediately. Can't do that with a push.
     
  20. lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    Ok. I guess I should have said an "Unmodded TiVo".

    Well, for starters, it isn't code. It is entries that you place in the hmeforpython ini file. I suspect that the "code" tag was simply used to distinguish it from the text of the post.

    Could this feature be implemented in pyTivo? Probably. Is it a simple matter of copying the actual code from vidmgr and inserting it into pyTivo? Um, no.

    I installed it a couple of hours ago. Just doesn't do it for me. If I were going to use it, I would definitely need a different skin for it. I switched to the blue because the original skin kept making want to say "Isn't that a lovely window treatment.":eek:
     

Share This Page