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

PyTivo Video Manager HME App for pyhme

Discussion in 'Developers Corner' started by jbernardis, Apr 20, 2011.

  1. Apr 20, 2011 #1 of 735
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    This app has been discussed in another thread in this forum, but it was suggested that I start my own thread, and so I am.

    There is no new version of the code, but I am reposting the link here.

    In recent discussion, I learned that the HME does indeed support an HD interface. based on suggestions from wmcbrine, I have figured out how to do this and decided that it is not all that difficult to have a dual-personality app that will work in either SD or HD mode. I am currently working on it - give me a couple of weeks or so.

    Obviously there are differences in screen geometry between HD and SD, and there is also additional screen real estate. I could simply increase the size of lists, etc - and that is indeed how I am starting. But in the HD version, I am trying to figure out if I can add additional information as well - such as the recently requested thumbnails.

    I have to admit that when I answered the posts earlier this afternoon, I was not into it at all. But since getting home, firing up eclipse, and starting to work on the code, I got right back into the mood.

    One question I have for now - does the HME simulator support HD? I can't find out how. I don't have an HD tivo near the computer. Every time I make a change, I have to walk across the house to try it out. It gets tiresome. If the sim supported HD, I could do a lot of debugging there. Also, the sim lets me see the safe areas of the screen (as pointed out by wmcbrine)

    Thanks
     
  2. Apr 21, 2011 #2 of 735
    wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    The standard simulator doesn't do HD. There have been at least a couple of modified versions that do... but as I look at it, of the two I have here, one doesn't run, and the other is half-assed.

    For my apps, I mostly just scaled everything up 50% (since 720/480 = 1.5), and then adjusted for the extra horizontal space.
     
  3. Apr 21, 2011 #3 of 735
    lew

    lew Active Member

    3,963
    3
    Mar 12, 2002
    I understand this is the developers thread but there doesn't seem to be a support thread. I'm not sure if there is an issue with the way I'm configured or if I'm doing something wrong.

    I'm running pyTivo with the start on console batch file.

    The error message on the pyTivo console says:

    Cannont find accountId for TSN 652-0001-8037-XXXX The TSN is correct

    Do I need to list the TSN in the configuration file for pyTivo? Doesn't seem to be an option to do so.
     
  4. Apr 22, 2011 #4 of 735
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    FWIW, I use my TiVo names in place of the TSN.

    config.ini:
    Code:
    [hmeserver]
    apps=vidmgr
    
    [tivos]
    tivo1.name=TivoS4
    tivo1.tsn=TivoS4
    
    [pytivos]
    pytivo1.config=\\dl380-server\pyTivo Production\pyTivo.conf
    pytivo1.ip=DL380-Server
    pytivo1.port=9033
    pytivo1.sep=\
    
    
     
  5. Apr 22, 2011 #5 of 735
    lew

    lew Active Member

    3,963
    3
    Mar 12, 2002
    Thanks. Solved the problem.
     
  6. Apr 25, 2011 #6 of 735
    jcthorne

    jcthorne Active Member

    2,723
    3
    Jan 28, 2002
    Houston
    Just for the record in case anyone else has the problem, The TSN needs to be listed without the dashes in the config file. I had the same errors before trying that.
     
  7. Apr 25, 2011 #7 of 735
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    I never even considered that dashes might be in the TSN.

    I can easily parse them out when I read in the config.

    BTW - The coding is essentially done on the HD version of the program. No real changes to the SD version except to try a bit more to stay in the TV safe zones. But the HD version will display thumbnails if you have them.

    Just a bit more testing before I release it. Also, I need to make sure that I haven't broken the SD version.
     
  8. Apr 26, 2011 #8 of 735
    jcthorne

    jcthorne Active Member

    2,723
    3
    Jan 28, 2002
    Houston
    Great news! Looking forward to giving it a try.
     
  9. Apr 27, 2011 #9 of 735
    arrarrgee

    arrarrgee New Member

    39
    0
    Dec 21, 2010
    could you tell me where to get the pytivo from? I mean i have been running stream baby and HME/VLC...and tried using the HME/VLC folder to copy vidmgr folder...but the following section turned out to be a bummer..help pls



    [pytivos]
    pytivo1.config=\\dl380-server\pyTivo Production\pyTivo.conf
    pytivo1.ip=DL380-Server
    pytivo1.port=9033
    pytivo1.sep=\

    [/CODE][/QUOTE]
     
  10. Apr 28, 2011 #10 of 735
    lew

    lew Active Member

    3,963
    3
    Mar 12, 2002
    I'm not enough of a tivo "geek" to have memorized my TSNs :).

    I logged on to my account at tivo.com and used copy and paste to put the numbers in the configuration file. Tivo listed the number with dashes so I assumed that's the way tivo wanted the numbers.

    I suggest you either parse out the - or update the readme file. Whatever is easier for you.

    Looks like using our tivo name as our TSN works. Is there any reason why you don't just automatically do that and not even ask for our TSN?
     
  11. Apr 28, 2011 #11 of 735
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    Tivo name works only by virtue of the fact that tivo mind obviously accepts it. I did not know that and do not process the tivo name in any way.

    I have made the change to the code to parse out the - from the entered value. I'm sure there will be somebody who has a dash in the middle of their tivo name and won't like the fact that I do that. I am actually indifferent to it, and will remove this logic if that is what the concensus is here.
     
  12. Apr 28, 2011 #12 of 735
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    A new version of the app is available at the same github location.

    This version - 0.2 - supports HD. It still works on an SD tivo as well, but SD does not give you much in the way of new functionality.

    New for HD is artwork - you can have a jpg for each file, or a single jpg for the folder/directory. Processing these images slows thing down a bit, but not unacceptably so. The jpg can be up to 320x444. This is a good aspect ratio for DVD case artwork which is why I chose it.

    There are a couple of other new features too - see the README file.
     
  13. Apr 28, 2011 #13 of 735
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    Look for a link in wmcbrine's signature up there in post number 2. He is the keeper of pytivo (at least one of the forks)
     
  14. Apr 28, 2011 #14 of 735
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    Thank you! :up:

    Edit: I like the exts= option. I'm converting my videos to mp4, so this will be a nice filter for natively accepted videos that don't need transcoding. Nice. :)
     
  15. Apr 28, 2011 #15 of 735
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    Yessir, I like the artwork feature.
    I renamed the existing jpg file from filename.jpg to filename.extension.jpg, but that's no problem.

    Nice work jbernardis!
     
  16. Apr 29, 2011 #16 of 735
    jcthorne

    jcthorne Active Member

    2,723
    3
    Jan 28, 2002
    Houston
    Look forward to having some time this weekend to install this new version!
     
  17. Apr 29, 2011 #17 of 735
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    Thank you everybody. Please let me know if you discover any issues. I tested it quite a bit, but it's impossible to catch everything.

    Orangeboy:

    What do you mean - did you change the code, or did you have to rename your files. I can add logic to also check for <filename>.jpg if <filename>.<extension>.jpg doesn't exist, but of course each file name check adds a bit to the processing time. wmcbrine also suggested I use the image attribute in the meta file, but I am presently not doing this.
     
  18. Apr 29, 2011 #18 of 735
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    I just renamed the files. As far as adding logic, I don't think it's necessary. The current implementation follows meta data file naming conventions. Speaking of meta data, I did change some code though to increase the font size relating to meta data description. I bumped up from 16 (or was it 20?) to 24. It made it a little easier to read in HD mode.

    Edit: What's an image attribute in the meta file? I usually go by this wiki: http://pytivo.sourceforge.net/wiki/index.php/Metadata, but didn't see "image" included.
     
  19. Apr 29, 2011 #19 of 735
    jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    Yeah - I'm not too happy with the fonts as they currently exist. I wish there was a way to enumerate the fonts so that I could choose something better - who knows, maybe there is. I have some videos that have long descriptions that fill up the view with the small font I have in place now, but it's not so much the size that bothers me - I can see staircasing and other artifacts in there. It doesn't look like a nicely scalable font, and at the size I have chosen, the quality is not great.
     
  20. Apr 29, 2011 #20 of 735
    jcthorne

    jcthorne Active Member

    2,723
    3
    Jan 28, 2002
    Houston
    Just installed, updated a directory of covers to the file name and size requirements and viola!

    WOW.

    SUPER!

    Very nice work indeed. I plan to do a bit of customizing of the design elements to fit our decor and theater theme. I already got thumbgen configured to generate the requred thumnail cover images, going to work on getting it to generate .txt files with meta data.

    This is great. THANKS!
     

Share This Page