pyTivo - Transcoding server

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

  1. Jan 4, 2008 #1681 of 6046
    wmcbrine

    wmcbrine Well-Known Mumbler

    11,861
    900
    Aug 2, 2003

    Advertisements

    I'm posting it in this thread since it includes changes to both the photo and music plugins.

    - Supports "RandomStart". Basically what this means is that, if your slide show options are set to shuffle, and you directly select a picture for full-screen view via "View Photo", you'll now get the right picture.

    - Caches directory scans and sorts for the music plugin (as previously for photos). You'll see this in faster transitions between songs, and in a more consistent "x of y" display (e.g., "5 of 552") when in shuffle mode -- it will count upwards instead of jumping around.

    As before, this is the complete package, minus the third-party libraries and ffmpeg. If you want those too, use git.

    If you're coming here without having read the photo plugin thread, note that you also need the Python Imaging Library to use the photo plugin. (In Ubuntu, you can install it from the repositories, just like the other libraries.)
     

    Attached Files:

  2. Jan 4, 2008 #1682 of 6046
    philhu

    philhu User Since Day ONE!

    972
    49
    Apr 11, 2001
    Funcity, AZ
    Here it is:
    # A map between zap2it.com/ananova TV programme Categories and TiVo Genres.
    # Use the following to find the new categories..
    # ..new categories should show up without any genre mapping numbers
    # cat zap2itgenres.txt zap2itgenres.txt.new | sort -u -t\" -k1 2
    #
    # Categories starting with a lowercase letter have been determined heuristically
    # with the xmltv tv_extractinfo_en perl script.
    #
    # Watch that we don't put any whitespace after the last Genre number on each line
    # THESE MUST BE TAB DELIMITED!!!!!!!
    "Action" 1011 1
    "Ad" 1011 1
    "Adult" 1000 1005 2
    "Adult Movie/Drama" 1000 1005 1006 2 35 68
    "adventure" 1011 1
    "aerobics" 1009 48
    "Adventure/War" 1011 1 115
    "Advertisement" 1000 90
    "Advertisement/Shopping" 1000 90
    "American Football" 1009 42 101
    "Animals" 1008 3
    "Animated" 1002 4
    "Anime" 1002 4
    "anthology" 1000 5
    "archery" 1009 101
    "arm wrestling" 1009 101
    "Art" 1000 6
    "Arts/Crafts" 1000 6
    "Arts/Culture" 1000 6 79
    "auction" 1010 44
    "auto" 1000 7
    "auto racing" 1009 7 120
    "aviation" 1008 87
    "awards" 1000 9
    "Australian Rules Football" 1009 42 101
    "badminton" 1009 101
    "ballet" 1000 10
    "baseball" 1009 11
    "basketball" 1009 12
    "beach soccer" 1009 101
    "beach volleyball" 1009 101
    "Beauty" 1000 13
    "Bio" 1004 16
    "Biography" 1004 16
    "Biz" 1007 21
    "biathlon" 1009 101
    "bicycle" 1009 14
    "bicycle racing" 1009 14
    "billiards" 1009 15
    "boat" 1010 17
    "boat racing" 1009 17
    "bobsled" 1009 101
    "bodybuilding" 1009 18
    "bowling" 1009 19
    "Boxing" 1009 20 101
    "bullfighting" 1009 101
    "bus./financial" 1007 21
    "cheerleading" 1009 101
    "children" 1001 22
    "children-special" 1001 100
    "children-talk" 1001 106
    "children-music" 1001 69
    "Call-in" 1010 107
    "Cartoons/Puppets" 1001 4 22
    "Children's" 1001 22 36
    "Children's/Youth Programmes" 1001 22 36
    "Collectibles" 1000 24
    "Combat Sports" 1009 64 101
    "comedy" 1002 25
    "Comedy" 1002 25
    "comedy-drama" 1002 1005 25 35
    "Computers" 1008 26
    "Cooking" 1000 27
    "Cricket" 1009 101
    "Cricket - International" 1009 101
    "Crime" 1005 29 104 110
    "Crime Drama" 1005 30 104 110
    "Curling" 1009 31
    "Dance" 1000 10 69 32
    "darts" 1009 101
    "debate" 1010 106
    "diving" 1009 101
    "Detective/Thriller" 1013 30 104 110
    "DIY" 1000 1004 34 54 58
    "Doc" 1004 34
    "Documentary" 1004 34
    "docudrama" 1005 33
    "documentary" 1004 34
    "dog racing" 1009 101
    "dog show" 1000 9
    "dog sled" 1009 101
    "drag racing" 1009 101
    "Drama" 1005 35
    "drama" 1005 35
    "Edu" 1012 36
    "Education" 1012 36
    "Educational" 1012 36
    "Education/Science/Factual Topics" 1012 34 36 87
    "Electronics" 1008 37
    "entertainment" 1000 106
    "environment" 1008 72
    "equestrian" 1009 101
    "exercise" 1009 48
    "extreme" 1009 101
    "Extreme/Minority Sports" 1009 101
    "Fantasy" 1014 39
    "Fashion" 1000 40
    "fencing" 1009 101
    "field hockey" 1009 101
    "figure skating" 1009 101
    "fishing" 1009 41
    "football" 1009 42
    "Film" 1006 68
    "Fin" 1007 21
    "Fishing" 1008 41
    "Fitness" 1000 48 13
    "Football - Club" 1009 97 101
    "Football - International" 1009 97 101
    "Football/Soccer" 1009 101 42
    "French" 1000 43
    "Fundraiser" 1000 44
    "gaelic football" 1009 101
    "Game" 1003 45
    "Game Show" 1003 45
    "Game Show/Quiz" 1003 45
    "Gardening" 1000 54
    "gymnastics" 1009 47
    "General Arts/Culture" 1000 79
    "General Children's/Youth" 1001 22
    "General Education/Science/Factual Topics" 1012 36 87
    "General Music/Ballet/Dance" 1000 69 10 32
    "General Movie/Drama" 1005 1006 35 68
    "General News/Current Affairs" 1007 73 117
    "General Show/Game Show" 1012 45
    "General Social/Political Issues/Economics" 1007 21 77
    "General Sports" 1009 101
    "Golf" 1009 101 46
    "handball" 1009 101
    "headlines" 1007 73
    "Health" 1000 48
    "Historical" 1004 49
    "history" 1012 49
    "historical drama" 1005 50
    "horror" 1005 1013 104 35 55
    "Horror" 1005 1013 104 35 55
    "Horse racing" 1009 101 56
    "Horse" 1009 56
    "House/Garden" 1000 54
    "Housewares" 1000 57
    "How-to" 1012 58
    "hockey" 1009 51
    "holiday" 52
    "holiday-children" 1001 52
    "holiday-children special" 1001 53
    "holiday music" 1000 52 69
    "holiday music special" 1000 52 69 100
    "holiday special" 53
    "home improvement" 1000 54
    "hunting" 1009 101
    "hurling" 1009 101
    "hydroplane racing" 1009 101
    "indoor soccer" 1009 101
    "interview" 1010 60
    "intl basketball" 1009 59 12
    "intl hockey" 1009 59 51
    "intl soccer" 1009 59 97
    "Ice Hockey" 1009 101 51
    "Info" 1004 34
    "Jewelry" 1000 61
    "Jewelery" 1000 61
    "kayaking" 1009 101
    "lacrosse" 1009 62
    "law" 1007 35
    "luge" 1009 101
    "Leisure Hobbies" 1000 79
    "Live Broadcast" 1007
    "magazine" 1010 63
    "martial arts" 1009 64
    "medical" 1008 65
    "Motorcycling" 1009 67 66
    "Motoring" 1000 1005 66
    "Motor Sport" 1009 101 66
    "motorsports" 1009 66
    "motorcycle" 1009 67
    "motorcycle racing" 1009 67 120
    "mountain biking" 1009 14
    "music special" 1000 69 100
    "music talk" 1000 69 106
    "Movie/Drama" 1006 35 68
    "Music" 1000 69 70
    "Musical" 1005 69 70
    "musical comedy" 1002 70
    "Musical/Opera" 1000 69 70 75
    "Music/Ballet/Dance" 1000 10 69 70
    "mystery" 1013 71 110
    "Mystery" 1013 71 110
    "Nature" 1008 3 72
    "Nature/Animals/Environment" 1008 3 72
    "News" 1007 73 117
    "news" 1007 73 117
    "News/Current Affairs" 1007 73 117
    "News/Weather Report" 1007 73 117
    "Off-Air" 1000
    "olympics" 1009 74
    "Opera" 1000 70 75
    #"omnibus"
    "outdoors" 1008 76
    "parade" 1008 76
    "paranormal" 1014 71
    "parenting" 1000 38
    "performing arts" 1000 32
    "politics" 1007 77
    "polo" 1009 101
    "pool" 1009 101
    "Pop" 1000 69 70
    "pro wrestling" 1009 101
    "public affairs" 1007 77
    "racquet" 1009 101
    "quiz" 1012 45
    "Rallying" 1009 66 101
    "Reality" 1015 79
    "religious" 1003 80
    "rodeo" 1009 81
    "roller derby" 1009 101
    "romance-comedy" 1002 83
    "rowing" 1009 101
    "running" 1009 85
    "Romance" 1005 82
    "Rugby" 1009 84
    "Sailing" 1009 17 116
    "science" 1008 87
    "Science Fiction" 1014 88
    "SciFi" 1014 88
    "self improvement" 1000 89
    "shopping" 1010 90
    "sitcom" 1002 25
    "skateboarding" 1009 101
    "skating" 1009 92
    "snowboarding" 1009 95
    "snowmobile" 1009 95
    "soap" 1003 96
    "soaps" 1003 96
    "soap special" 1003 100 96
    "soap talk" 1003 106 96
    "soccer" 1009 97
    "softball" 1009 98
    "speed racing" 1009 101
    "Serious Music/Classical Music" 1000 69
    "Shopping" 1000 90
    "Show/Game Show" 1012 45
    "Situation" 1002 91
    "Skiing" 1009 93 101
    "Snooker" 1009 101
    "snooking" 1009 101
    "Soap/Melodrama/Folkloric" 1005 35 96
    "Social/Political Issues/Economics" 1007 21 77
    "Spanish" 1000 99
    "Special" 1000 100
    "Special Characteristics" 1000 100
    "Spiritual" 1000 80
    "Sport - Events" 1009 101
    "Sports" 1009 101
    "Sports Magazines" 1009 101 63
    "sports event" 1009 101
    "sports talk" 1009 106
    "squash" 1009 101
    "standup" 1002 25
    "sumo wrestling" 1009 101
    "surfing" 1009 101
    "suspense" 1013 104
    "swimming" 1009 105
    "Tabloid" 1010 63
    "Talk" 1010 106
    "talk" 1010 106
    "Talk Show" 1010 106
    "Tennis" 1009 101 108
    "theatre" 1000 109
    "thriller" 1013 104 110
    "Tourism/Travel" 1000 112 59
    "track/field" 1009 111
    "Travel" 1000 112 59
    "Triathlon" 1009 101 111
    "Variety" 1010 113
    "Volleyball" 1009 101 114
    "War" 1005 1 115
    "Water Sport" 1009 101 116
    "Watersports" 1009 101 116
    "water polo" 1009 116
    "water skiing" 1009 116
    "weather" 1007 117
    "western" 1015 35 118
    "Westerns" 1015 35 118
     
  3. Jan 4, 2008 #1683 of 6046
    philhu

    philhu User Since Day ONE!

    972
    49
    Apr 11, 2001
    Funcity, AZ

    Does this fix anything with my video/music problems I posted the log for a while back? I don't have a clue what it is saying in that log. Do you?
     
  4. Jan 4, 2008 #1684 of 6046
    MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    philhu,

    Next time just put that into a txt file and attach it to your post :) That's a really long post :)
     
  5. Jan 4, 2008 #1685 of 6046
    mikeylikesit40

    mikeylikesit40 New Member

    22
    0
    Nov 28, 2006

    Advertisements

    I just wanted to thank you for your efforts.

    I am an old programmer and started to work on the bugs last week. I got a few sorted out but was still having problems. I'm new to pyTivo and Python.

    Then, I saw a post with your changes. I downloaded it and Viola! I haven't had a Tivo reboot since. Sub-folders are working fine (thank you thank you thank you).

    If I lived near ya... I'd buy ya a cup of coffee!

    ALSO... the person who created the MetafileGenerator program.... your latest changes to export the season all at once... beautiful.
     
  6. Jan 4, 2008 #1686 of 6046
    starmanj

    starmanj New Member

    27
    0
    Aug 18, 2007
    Is Pytivo compatible with zippered dtivos? I can't get the server to show up in "now playing". Tivoserver does show up, but it's old and I'd like to use pytivo.
     
  7. Jan 4, 2008 #1687 of 6046
    rjmitche

    rjmitche Member

    47
    0
    Dec 30, 2004
    I'm not sure I'm completely following you (of course, I could just be being dense... wouldn't be the first time :)).

    What you say makes perfect sense if the source of the data is an existing .tivo file (as in dlfl's excellent PyTivoMetaGen program) but MasterCephus' (also excellent) MetaGenerator program is using more generic internet resources (TVDB and Movie-xml.com) that aren't going to know when the show might have been shown/recorded on your tivo (nor specifics like channel, etc.).
     
  8. Jan 4, 2008 #1688 of 6046
    cconnell

    cconnell New Member

    18
    0
    Nov 15, 2006
    I just did that. The folder still loads slowly. There are 294 items in the folder with an average size of 5 gigs.

    My workaround was to create multiple sub folders with about 25 files each.

    Thanks for your help. I have no idea why it was so slow even after caching. Now to figure out the ffmpeg parameters... Thanks again.
     
  9. Jan 4, 2008 #1689 of 6046
    philhu

    philhu User Since Day ONE!

    972
    49
    Apr 11, 2001
    Funcity, AZ
    oh thats right. The dates I was talking about were from ty and txt files from shows off my old tivos, so thats good for that
     
  10. Jan 4, 2008 #1690 of 6046
    MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    I am pretty sure that I have hooks in there that could potentially get that data, it's just that I am never getting that data so it never prints those fields out.

    EDIT:
    After looking, I am trying to get the original air date of TV shows, but the data probably isn't there. In the example I give in the wiki, that episodes does have that data (<FirstAired>2004-08-27</FirstAired>). So I capture that for sure.

    Time would be something I couldn't get though...

    Maybe in a future version, I will allow a check mark or something that will allow the form to drop down and allow the user to manually add these fields if they choose...this would be better than not having the ability to add these fields....
     
  11. Jan 4, 2008 #1691 of 6046
    MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    Here is an idea to possibly toy with....


    Why don't we take the most stable version of pyTivo and all the surrounding applications (the most stable of them), and bundle them into an installer for new people?

    We probably could take an installer and make it create the config file as well (prompt the user where their directories are, etc).

    Maybe make it to where sets the service to start after completion...

    It would make this whole thing a lot more desirable IMO...
     
  12. Jan 4, 2008 #1692 of 6046
    StanSimmons

    StanSimmons Senior Moment Member

    4,717
    3
    Jun 10, 2000
    Flower...
    No, it only works with standalone tivos with current software on them.

    You need TivoServer, which works pretty good with DTiVo's running v6 software.
     
  13. Jan 4, 2008 #1693 of 6046
    PaulS

    PaulS Active Member

    874
    84
    Sep 16, 2002
    Southern NH
    I like it.

    Additionally, at some point (already reached?) this thread will become too unwieldy, which will result in the creation of a new thread to continue this discussion. We should seize on that opportunity to make things a bit easier on the newcomers as well. Perhaps the first post (or posts) could contain links to the latest stable snapshot and configuration tips ?

    Perhaps adding in a few sample config files (SD only, HD only, mixed environment) with a README instructing users how/when/why to use particular server/share options would be useful as well ? I know that's the intent of the wiki, but it would be nice to have everything in one place.
     
  14. Jan 4, 2008 #1694 of 6046
    wmcbrine

    wmcbrine Well-Known Mumbler

    11,861
    900
    Aug 2, 2003
    Since I don't understand your problem, I can't say.

    Like you said, it seems to be trying to use the video plugin for a share you designated as music. I saw something vaguely similar once when I had music and photo shares pointed to the same directory; but from your config, that doesn't seem to be your problem.

    Edit: Oh, it just hit me -- try changing your share names. I haven't had a close look at the plugin dispatcher, but I notice that your music and photo share names ('MySvr-Photos' and 'MySvr-Music') start with the complete share name of your videos ('MySvr'). I bet if you make the video share name 'MySvr-Videos', your problem will go away.

    Edit 2: Yep -- check this:

    Code:
    if query['Container'][0].[b]startswith[/b](name):
    So, there ya go.
     
  15. Jan 4, 2008 #1695 of 6046
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    Yeah I just started looking at your mod. I thought the HDtivosonly section was unnecessary.

    I have not finished looking at the rest of your mods, from your description they sound good though.
     
  16. Jan 4, 2008 #1696 of 6046
    philhu

    philhu User Since Day ONE!

    972
    49
    Apr 11, 2001
    Funcity, AZ
    Genius! I'll try that tonight.

    Thanks!

    -edit- This is the exact problem. Renaming the section fixed the problem as was mentioned
     
  17. Jan 4, 2008 #1697 of 6046
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    Alright I think we all agree 1700 posts is too much to wade through to find anything. I wanted to wait for armooo to chime in but I think we are all pretty fed up with the mess that has become this thread. So here is a new discussion board all setup:

    http://pytivo.krkeegan.com/

    If armooo later decides to move the discussion I can give him a copy of the phpBB Database file.

    So unless there are any objections I vote we move the discussion and allow it to use more than one thread.
     
  18. Jan 4, 2008 #1698 of 6046
    gmd

    gmd New Member

    1
    0
    May 26, 2007
    It's not nearly as slick as the .NET version by MasterCephus, and is currently only for tv shows (using thetvdb.com) but this one will run under linux/mac/windows ... it was made to work in my environment, which is a linux fileserver with a bunch of directories, and shell scripts that run through those directories, adding metadata entries when a new file shows up.

    Get it here: http://www.kurai.org/~gdunn/pyTivoMetaThis/

    BSD License.

    Maybe armooo will consider a contrib directory in the pyTivo package ?
     
  19. Jan 4, 2008 #1699 of 6046
    philhu

    philhu User Since Day ONE!

    972
    49
    Apr 11, 2001
    Funcity, AZ
    Ok, I made the first post.

    Comeon guys, lets move!
     
  20. Jan 4, 2008 #1700 of 6046
    wmcbrine

    wmcbrine Well-Known Mumbler

    11,861
    900
    Aug 2, 2003

Share This Page

spam firewall

Advertisements