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. Mar 21, 2007 #201 of 5683
    armooo

    armooo pyTivo Developer

    81
    0
    Feb 1, 2003
    I just committed version 179. It adds the 16:9 blacklist while defaulting to use 16:9. It also has per tivo settings for aspect ratio. The per tivo config block will look like

    ##Per tivo options
    # section named _tivo_TSN with the tsn in all caps
    [_tivo_2400000DEADBEEF]

    #If you want to use 16:9 or 4:3 on this tivo
    aspect169=true
     
  2. Mar 21, 2007 #202 of 5683
    inthewoods

    inthewoods New Member

    11
    1
    Feb 21, 2005
    Cool... thanks for the code review... Sorry for so many edits at once. I just got excited :eek:

    pyTivo is so much better than dealing with scripting VLC or fighting Tivo desktop or Galleon on Windows Vista!
     
  3. Mar 21, 2007 #203 of 5683
    ocntscha

    ocntscha New Member

    149
    0
    Oct 22, 2003
    pyTivo rules!! Its working fantastic for me, I just start it up, it runs for days with me using it frequently but never once having to go and restart it or touch it in anyway on my server! Yeah!

    All my videos are displaying nicely now too. They mostly where all ready but the last couple rounds of your guys improvements in the ffmpeg settings has got the only couple troublesome videos I have displaying nicely now too.

    I've been watching LOTs of video podcasts on my Tivo thanks to pyTivo. Here's a great source to find them, http://digg.com/podcasts. Here's the podcatcher I use.. http://linc.homeunix.org:8080/scripts/bashpodder/

    Something entirely unrelated, well just barely because its also written in Python. Unrelated even to Tivos but I suspect a lot of you folks might like this. I've been using a web based mp3 streamer for years which is entirely written it Python. Its called edna , its works fantastic. I can point and click listen to my entire music collection from anywhere. Its another program I've got configured to autostart when my system boots and then I just use it frequently but never ever have to mess with any glitches because like pyTivo, it just works.
     
  4. Mar 21, 2007 #204 of 5683
    CheezWiz

    CheezWiz ReplayTV->S3 Tivo

    211
    0
    Dec 29, 2006
    Middle...
    Awesome armoo!
    I look forward to trying it out.

    BTW, I have a very talented (computer graphics artist) student worker who has some free time in my office. I am going to have him draw up some logo's for everyones perusal. Perhaps one of them will be good enough to become the official pyTivo logo..
     
  5. Mar 22, 2007 #205 of 5683
    A@ron

    A@ron New Member

    113
    0
    Jul 18, 2003
    Ok the wiki page is edited and a compiled version of ffmpeg which works for me is also linked there as well. Just out of curiosity is pyTivo limited to 56 files in one directory? Tivo.Net sees all 60 of my mp4 files (using the same ffmpeg as pyTivo too) but pyTivo only shows 56.
     
  6. Mar 22, 2007 #206 of 5683
    armooo

    armooo pyTivo Developer

    81
    0
    Feb 1, 2003
    There should be no limit to the number of file in a directory. I would try turning on the debug option and see if the output says anything about them being incompatible.
     
  7. Mar 23, 2007 #207 of 5683
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    I've been poking around with pyTivo on Linux a bit more since pipakin has been MIA for a few weeks over on the TiVo.Net thread. Finally got it working and was able to successfully transfer a file. :)

    So what's the point of type=audio? Will this play music as well? I tried setting up an audio section:
    Code:
    [pyTiVo Audio]
    type=audio
    path=/home/nas/Music
    But when I start up pyTivo, I get this:
    Code:
    ----------------------------------------
    Exception happened during processing of request from ('192.168.1.77', 2187)
    Traceback (most recent call last):
      File "/usr/local/lib/python2.5/SocketServer.py", line 463, in process_request_thread
        self.finish_request(request, client_address)
      File "/usr/local/lib/python2.5/SocketServer.py", line 254, in finish_request
        self.RequestHandlerClass(request, client_address, self)
      File "/usr/local/lib/python2.5/SocketServer.py", line 521, in __init__
        self.handle()
      File "/usr/local/lib/python2.5/BaseHTTPServer.py", line 316, in handle
        self.handle_one_request()
      File "/usr/local/lib/python2.5/BaseHTTPServer.py", line 310, in handle_one_request
        method()
      File "/usr/share/TiVo/pyTivo/httpserver.py", line 54, in do_GET
        self.RootContiner()
      File "/usr/share/TiVo/pyTivo/httpserver.py", line 78, in RootContiner
        self.wfile.write(t)
      File "/usr/local/lib/python2.5/socket.py", line 254, in write
        data = str(data) # XXX Should really reject non-string non-buffers
      File "/usr/share/TiVo/pyTivo/Cheetah/Template.py", line 990, in __str__
        def __str__(self): return getattr(self, mainMethName)()
      File "_usr_share_TiVo_pyTivo_templates_root_container_tmpl.py", line 104, in respond
      File "/usr/share/TiVo/pyTivo/plugin.py", line 7, in GetPlugin
        module = __import__(module_name, globals(), locals(), name)
    ImportError: No module named audio.audio
    ----------------------------------------
    
    If I comment out that section (leaving just my video one) it starts up just fine. Am I missing something? I'm using the latest build (180).
     
  8. Mar 23, 2007 #208 of 5683
    Jabo4

    Jabo4 New Member

    21
    0
    Feb 17, 2007
    I had that too, I haven't tried it in this version but I'm guessing it's still looking for transcode.py in the root folder, not the plugins folder like it was.
     
  9. Mar 24, 2007 #209 of 5683
    armooo

    armooo pyTivo Developer

    81
    0
    Feb 1, 2003
    It looks like a documentation error. The "audio" plugin is called music not audio. I will go fix that now.

    The the music plugin it a very simple plugin for the Music and Photos section. It only supports mp3s, you can not fast forward / rewind in a song, but it takes very few resources. Unlike galleon I can run it while I am playing games without problems.
     
  10. Mar 24, 2007 #210 of 5683
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    I changed to 'music' and now get a zlib error (and I do have zlib installed ... this is on Linux):
    Code:
    ----------------------------------------
    Exception happened during processing of request from ('192.168.1.75', 2765)
    Traceback (most recent call last):
      File "/usr/local/lib/python2.5/SocketServer.py", line 463, in process_request_thread
        self.finish_request(request, client_address)
      File "/usr/local/lib/python2.5/SocketServer.py", line 254, in finish_request
        self.RequestHandlerClass(request, client_address, self)
      File "/usr/local/lib/python2.5/SocketServer.py", line 521, in __init__
        self.handle()
      File "/usr/local/lib/python2.5/BaseHTTPServer.py", line 316, in handle
        self.handle_one_request()
      File "/usr/local/lib/python2.5/BaseHTTPServer.py", line 310, in handle_one_request
        method()
      File "/usr/share/TiVo/pyTivo/httpserver.py", line 54, in do_GET
        self.RootContiner()
      File "/usr/share/TiVo/pyTivo/httpserver.py", line 78, in RootContiner
        self.wfile.write(t)
      File "/usr/local/lib/python2.5/socket.py", line 254, in write
        data = str(data) # XXX Should really reject non-string non-buffers
      File "/usr/share/TiVo/pyTivo/Cheetah/Template.py", line 990, in __str__
        def __str__(self): return getattr(self, mainMethName)()
      File "_usr_share_TiVo_pyTivo_templates_root_container_tmpl.py", line 104, in respond
      File "/usr/share/TiVo/pyTivo/plugin.py", line 7, in GetPlugin
        module = __import__(module_name, globals(), locals(), name)
      File "/usr/share/TiVo/pyTivo/plugins/music/music.py", line 7, in <module>
        import eyeD3
      File "/usr/share/TiVo/pyTivo/eyeD3/__init__.py", line 42, in <module>
        import eyeD3.frames;
      File "/usr/share/TiVo/pyTivo/eyeD3/frames.py", line 21, in <module>
        import sys, os, os.path, re, zlib, StringIO, time, mimetypes;
    ImportError: No module named zlib
    ----------------------------------------
    
     
  11. Mar 24, 2007 #211 of 5683
    ocntscha

    ocntscha New Member

    149
    0
    Oct 22, 2003
    Personally I'm pretty happy with Galleon which is always running on my box so I'd never bothered to try the music in pyTivo. Tried it just now though, works fine for me. I'm running Linux also Windracer. May as well say I know nothing about Python but hey this is the internet where lack of knowledge is no reason to refrain from spouting off an opinion :) -- to me it looks like even though you have zlib on your system your Python doesn't have support for zlib.
     
  12. Mar 24, 2007 #212 of 5683
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    Same here, just trying to give pyTivo a fair shake. :)

    Ah, a very distinct possibility. I'll check that out, thanks.
     
  13. Mar 25, 2007 #213 of 5683
    bcooper367

    bcooper367 New Member

    17
    0
    Jun 30, 2003
    I've recently played around with Tivo.Net and pyTivo. I love them both. I do like the simplicity of pyTivo, but I like the added configuration allowed with Tivo.Net.

    One example, I like being able to set the quality of the video. Although I'm no expert and it's hard for me to tell sometimes, I believe the quality of the video stream is higher with Tivo.Net (when using the higher quality video settings).

    Can anyone tell me what the bitrate is of the pyTivo stream?

    Thanks,
    Brian
     
  14. Mar 25, 2007 #214 of 5683
    dlfl

    dlfl Cranky old novice

    6,996
    16
    Jul 6, 2006
    Near...
    4096 kbps for video + 192 kbps for audio. And I believe it would be very easy to make this configurable via pyTivo.conf .
     
  15. Mar 26, 2007 #215 of 5683
    armooo

    armooo pyTivo Developer

    81
    0
    Feb 1, 2003
  16. Mar 26, 2007 #216 of 5683
    KRKeegan

    KRKeegan Im lost and confused

    215
    0
    Jul 20, 2004
    Los Angeles, CA
    Sorry everyone I have been swamped with work the past few days, and it doesn't look like it is going to get much better. I will be out of town from th 29th to the 9th so I will be absolutely no help.

    But in the mean time, I never got to it, but inthewoods made a bunch of mods that I never got to check out. But included in it was the ability to change bitrate settings and width settings. Everything looked pretty good to me but like I said I had little chance to tinker with it. Armooo check it out in his post here it should save you some time.

    In the mean time again I apologize for sneaking away for a few days, but hopefully when I get back I can kick in some more time for new features.

    Kevin
     
  17. Mar 26, 2007 #217 of 5683
    TreborPugly

    TreborPugly Unreal!

    4,542
    0
    May 2, 2002
    Eastern TN

    This is higher quality than most things I'd be transferring from my PC, so I just edited this number in the file "transcode.ty" (to 1024), and now I'm getting smaller (and faster) transfers. I particularly like the speed to be such that I can watch it as I transfer.

    I don't know if this is related however, but my Tivo warns me that it might have to delete a number of recordings early or not be able to record things if I transfer a video now. I only just started with pyTivo a week ago, so I don't know if this is because I changed the bitrate, or because of the video I happen to be transferring.

    The file isn't actually large once it's transferred. (I think 0.75 GB for a 43 minute video)
     
  18. Mar 26, 2007 #218 of 5683
    armooo

    armooo pyTivo Developer

    81
    0
    Feb 1, 2003
  19. Mar 26, 2007 #219 of 5683
    TreborPugly

    TreborPugly Unreal!

    4,542
    0
    May 2, 2002
    Eastern TN

    Excellent. Thanks.

    Next question: I have an external, Network attached hard drive. It is a bit slow, but I can use Videora to transcode a video that is sitting on that drive (and the transcoding takes less time than the length of the video), so it is fast enough for that. However, if I try to make my Video directory for pyTivo some directory on that hard drive, I get the message in the Now Playing list that it couldn't create the list due to an error. (Can't remember exact message, but it isn't descriptive)

    Note that I've never had success using this network drive for my "My Tivo Recordings" directory either.
     
  20. Mar 27, 2007 #220 of 5683
    etsolow

    etsolow Don't Try

    1,554
    0
    Feb 8, 2001
    Wisconsin
    What a great app! I've got 4:3 video working fine under version 181, but I can't get 16:9 to play correctly -- it's all a jumble. I've set the 'aspect169=true' flag for this Tivo... what am I missing?

    Oh, and TiVo? I'm ready for video transfers on the ol' S3, k? Thanks! :D
     

Share This Page