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. Apr 1, 2007 #241 of 5687
    inthewoods

    inthewoods New Member

    12
    1
    Feb 21, 2005
    I've added my updated patch to your change ticket #8. The patch is attached to the Wiki ticket and this post (I can't post a URL yet).

    It supports configuration for the following:
    • Audio and Video bitrates, including size est
    • Output width (defaulting to 544)
    • Beacon IP list instead of single 255.255.255.255 (for multihome machines, python appears to only broadcast to one interface using the default)
     

    Attached Files:

  2. Apr 1, 2007 #242 of 5687
    dlfl

    dlfl Cranky old novice

    7,004
    19
    Jul 6, 2006
    Near...
    With Tobashadow's permission, and after testing the podcast feature, I added this to the Wiki. In connection with this I made the following changes:

    1. Added a "Special Features" heading to the main Wiki page and made the podcast item/link the first subheading under it.

    2. Created a linked podcast page that currently just contains a link to Tobashadow's post giving instructions for podcasts. We have Tobashadow's permission to paste the content of his post here if desired -- perhaps that would be preferable ?

    3. Since the main page is getting rather long, inserted a topic outline macro near the top which links to the headings on the page. I used the "inline" version of this macro but the other version, "pullout", is kind of nice too. See what you think. (Edit the page, change "inline" to "pullout", and preview.)
     
  3. Apr 1, 2007 #243 of 5687
    etsolow

    etsolow Don't Try

    1,554
    0
    Feb 8, 2001
    Wisconsin
    I set aspect169=false and widescreen videos are working fine now. Since it's a 16:9 TV they play with black bars on all 4 sides, but I can just use the TV's zoom and it looks fine.

    E
     
  4. Apr 1, 2007 #244 of 5687
    dlfl

    dlfl Cranky old novice

    7,004
    19
    Jul 6, 2006
    Near...
    I think the default width you chose is good for your 540. Do we know if it will be good for other models? (e.g., 649 and 240).

    544x480 (3/4 D1) is listed as an acceptable size in the Tivo-go-back specs but I haven't tried it on my 649. (It does not record to that size for any quality setting.)

    I believe pyTivo is already reading the model number from info sent by the Tivo, so it should be possible to set the output width differently for different models -- if necessary.

    Edit:
    I just edited my transcode.py file to force it to encode to 544 width and transfered a 320x240 WMV to my TiVo. Seemed to work fine.
     
  5. Apr 1, 2007 #245 of 5687
    armooo

    armooo pyTivo Developer

    81
    0
    Feb 1, 2003
    The width of 544 is working on my 240. And the patch has been applied to the trunk.
     
  6. Apr 1, 2007 #246 of 5687
    ocntscha

    ocntscha New Member

    149
    0
    Oct 22, 2003
    I run it on Linux and use bashpodder as my podcatcher. I can start watching a podcast on my Tivo via pyTivo as its being downloaded with bashpodder and it will view all the way through until the end no problem.

    I wonder dlfl if maybe your podcatcher was downloading kind of slow and pyTivo "caught up" with it.
     
  7. Apr 1, 2007 #247 of 5687
    dlfl

    dlfl Cranky old novice

    7,004
    19
    Jul 6, 2006
    Near...
    Hmm.... and hmm again! I tried to repeat this today and Doppler now is appending ".incomplete" to every file name it is downloading -- which means it isn't recognized at all in the NPL list. (Presumably it will be after the download completes and [presumably] Doppler removes the incomplete extension). I uninstalled Doppler and installed a different version and it did the same thing.

    So now I'm wondering how I ever started transfering a file via pyTivo while Doppler was still downloading it ! :confused:
    Any recommendations for solid Windows XP podcatcher software will be appreciated! Although I can't fault Doppler for this behavior since it probably prevents some bad effects resulting from trying to use the downloaded file before it is complete. Just seems strange that its behavior has changed overnight!

    @Tobashadow: Does your Doppler act like this?

    I looked up bashpodder but it seems to be unix/linux only so I can't use it.

    EDIT: Never mind! Must have been a brain fart!
    What must have happened:
    1. While I was getting familiar with Doppler it downloaded at least one complete episode of DL.TV and was working on another.
    2. I started playing the complete already downloaded episode via pyTivo but thinking I was transfering the one that was currently downloading.
    3. All this downloading and transfering was funneling through my wireless laptop connection into my router and it got behind on the pyTivo transfer.

    I suspect that (bandwidth permitting) I could pyTivo transfer a file while it was still downloading -- but it would require a different podcatcher that didn't assign a temporary name (with a non-video extension) to the file being downloaded. For this to work requires the duration to be available from the file header, which it must be or ocntscha wouldn't be able to do it! (I think.)

    Well I hope this has been a valuable learning experience for someone besides me! :eek:
     
  8. Apr 1, 2007 #248 of 5687
    Tobashadow

    Tobashadow Read over there --->

    2,340
    0
    Nov 11, 2006
    No bad effect's on my end, i choose Doppler for the low memory usage and that it allows you to pick the download folder on a per podcast feed ability, and for the automatic cleanup feature.

    My net connection download's a average 200mb video file fast enough that i wouldnt have a problem with incomplete file's. I also tend to not watch stuff while it is being transcoded on the fly to the tivo right after it start's. I give it 5-15 min's or so of a headstart incase of bottleneck's in the network or glitch's on the computer or for large area's in the video i wish to skip.
     
  9. Apr 2, 2007 #249 of 5687
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    Here's a weird problem ...

    I have a bunch of subfolders (like I'm sure most of you do) under /home/nas/Videos (which pyTivo is pointed to). They all show up properly via the NPL and I can browse them and see the recordings inside them ...

    ... except for the folder called Movies. If I go into that folder, it comes up empty. It's got a bunch of files in it: .mp4, .mpg., .TiVo, .avi, etc. None of them show up. I have the same variety in the other folders and they work ... it's just the Movies folder.

    Any ideas?
     
  10. Apr 2, 2007 #250 of 5687
    etsolow

    etsolow Don't Try

    1,554
    0
    Feb 8, 2001
    Wisconsin
    Determine if it's the name of the folder causing problems by renaming it to something else?
     
  11. Apr 2, 2007 #251 of 5687
    ocntscha

    ocntscha New Member

    149
    0
    Oct 22, 2003
    Maybe the user pyTivo's running as doesn't have permission into that folder and/or to read the files?
     
  12. Apr 2, 2007 #252 of 5687
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    It's not permissions ... every subdirectory under /home/nas/Videos has the same owner and rights.

    I tried shutting down pyTiVo then renamed 'Movies' to 'Films' and started pyTiVo again. Now, no matter what folder I pick, I'm presented with two subfolders: Season 1 and Season 2. If I pick one of those folders I'm just shown Season 1 and Season 2 again. This is the structure under my "Dead Like Me" folder under /home/nas/Videos and I'm not sure why pyTiVo is stuck in it. I've tried restarting multiple times and now can't get it to show anything but those two folders when I pick a subfolder.

    For illustration:

    Code:
    Videos
      Da Ali G Show (folder)
        <files>
      Day Break (folder)
        <files>
      Dead Like Me (folder)
        Season 1
          <files>
        Season 2
          <files>
      Doctor Who Season 2 (2006)
        <files>
      Films
        <files>
      Heroes
        <files>
      Lost
        Season 1
          <files>
        Season 2
          <files>
        <files>
      Robot Chicken
        <files>
      <files>
    So where I'm stuck now ... when I go into pyTiVo, I can see all the subfolders under "Videos" and the <files> in that same folder. As soon as I pick a subfolder (say, "Heroes") I see two folders (Season 1 and Season 2). I can pick either of those and see the same two folders again and again and again and never get to any files.

    WTF? Is there a cache or something I should be clearing?
     
  13. Apr 2, 2007 #253 of 5687
    etsolow

    etsolow Don't Try

    1,554
    0
    Feb 8, 2001
    Wisconsin
    Well, that at least seems to indicate that the behavior is changing based on the name of this folder. Rename it to something arbitrary... maybe the code looks for folders with common names and behaves differently (and buggily) when it finds them?
     
  14. Apr 2, 2007 #254 of 5687
    armooo

    armooo pyTivo Developer

    81
    0
    Feb 1, 2003
  15. Apr 2, 2007 #255 of 5687
    Chew

    Chew New Member

    284
    0
    Jan 22, 2003
    I just installed this over the weekend and it's been working great except for one weird problem.

    My podcast folder includes subfolders for each podcast. When I go into that subfolder and come back out of it through the now playing list, my now playing list continues to show those subfolders now plus the MyMovies icon. Sorta like that's the actual now playing list. When I back out again, I'm at the main menu. Going back into now playing will show that again, my actual now playing list "disappears".

    I usually have to do a few things to get it to come back properly, like go to live TV or play a video in the Showcase area or something like that.

    Example of what it should look like:
    "24"
    "Prison Break"
    MyMovies icon
    Podcasts icon

    What is does look like when this happens:
    The Ask a Ninja folder
    The DL.TV folder
    MyMovies icon
    Podcasts icon

    I'm using iTunes for podcasts and I couldn't find an option to not create subfolders. I believe Doppler doesn't have that option either?
     
  16. Apr 2, 2007 #256 of 5687
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
  17. Apr 2, 2007 #257 of 5687
    armooo

    armooo pyTivo Developer

    81
    0
    Feb 1, 2003
    This is a Know Issue the same problem has been seen with galleon's goback, so I think it is a TiVo problem seeing how there goback has no subfolders.
     
  18. Apr 2, 2007 #258 of 5687
    armooo

    armooo pyTivo Developer

    81
    0
    Feb 1, 2003
    Yes the default ItemCount is 10. You can add &ItemCount=26 and you will see a max of 26 items.
     
  19. Apr 2, 2007 #259 of 5687
    Chew

    Chew New Member

    284
    0
    Jan 22, 2003
    Thanks.
     
  20. Apr 2, 2007 #260 of 5687
    PeteTV

    PeteTV New Member

    44
    0
    May 6, 2006
    First... I have a Series 3, but as I understand from a previous post Music should work, just not Video. I'm running pyTivo-181 from a Linux box. When I go into "Music, Photos, & More", I can see the "MyMusic" entry and if I select it I can see all the music files (mp3s), but if I try to play any the TiVo says unsupported format and on my Linux terminal where pyTivo is running I see:

    Code:
    Exception happened during processing of request from ('192.168.0.10', 2032)
    Traceback (most recent call last):
      File "/usr/local/lib/python2.4/SocketServer.py", line 463, in process_request_thread
        self.finish_request(request, client_address)
      File "/usr/local/lib/python2.4/SocketServer.py", line 254, in finish_request
        self.RequestHandlerClass(request, client_address, self)
      File "/usr/local/lib/python2.4/SocketServer.py", line 521, in __init__
        self.handle()
      File "/usr/local/lib/python2.4/BaseHTTPServer.py", line 316, in handle
        self.handle_one_request()
      File "/usr/local/lib/python2.4/BaseHTTPServer.py", line 310, in handle_one_request
        method()
      File "/usr/local/pyTivo/httpserver.py", line 36, in do_GET
        plugin.SendFile(self, container, name)
      File "/usr/local/pyTivo/plugin.py", line 28, in SendFile
        path = unquote_plus(o.path)
    AttributeError: 'tuple' object has no attribute 'path'
     

Share This Page