TiVo Community
TiVo Community
TiVo Community
Go Back   TiVo Community > Main TiVo Forums > TiVo Home Media Features & TiVoToGo
TiVo Community
Reply
Forum Jump
 
Thread Tools
Old 04-01-2007, 12:18 AM   #241
inthewoods
Registered User
 
Join Date: Feb 2005
Posts: 6
Updated patch

Quote:
Originally Posted by armooo
Take a look at est_size()....
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
File Type: txt patch-vs-181.txt (13.9 KB, 9 views)
inthewoods is offline   Reply With Quote
Old 04-01-2007, 10:01 AM   #242
dlfl
Cranky old novice
 
dlfl's Avatar
 
Join Date: Jul 2006
Location: Near Dayton, Ohio
Posts: 5,837
Wiki additions re: podcasts

Quote:
Originally Posted by dlfl
Interesting thread starter by Tobashadow on how to handle podcasts with pyTivo. Haven't tried it yet but if it works well we should ask his permission to paste his post into the Wiki.
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.)
__________________

"It must be swell to be so perfect and odor-free" -- Del Griffith


VideoReDo users: Try
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

pyTivo users: Try
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
dlfl is offline   Reply With Quote
Old 04-01-2007, 10:10 AM   #243
etsolow
Don't Try
 
etsolow's Avatar
 
Join Date: Feb 2001
Location: Wisconsin
Posts: 1,355
TC CLUB MEMBER
Quote:
Originally Posted by armooo
If you are outputting to a 4:3 tv some tivos are know to not be a be able to correctly play back 16:9 encoded files to 4:3 TVs. Right now tivos with TSNs starting with '540', '649' are known not to work. If you set aspect169=false for your tivo and it starts to work report the first 3 digits of your TSN and I will add it to the default blacklist.

If you are using a 16:9 tv make sure to have the tivo set to output 16:9.
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
etsolow is offline   Reply With Quote
Old 04-01-2007, 10:15 AM   #244
dlfl
Cranky old novice
 
dlfl's Avatar
 
Join Date: Jul 2006
Location: Near Dayton, Ohio
Posts: 5,837
Output width default ?

Quote:
Originally Posted by inthewoods
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)
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.
__________________

"It must be swell to be so perfect and odor-free" -- Del Griffith


VideoReDo users: Try
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

pyTivo users: Try
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by dlfl : 04-01-2007 at 10:57 AM.
dlfl is offline   Reply With Quote
Old 04-01-2007, 12:22 PM   #245
armooo
pyTivo Developer
 
Join Date: Feb 2003
Posts: 79
The width of 544 is working on my 240. And the patch has been applied to the trunk.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A python real time video transcoding server for TiVo.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
armooo is offline   Reply With Quote
Old 04-01-2007, 06:23 PM   #246
ocntscha
Registered User
 
Join Date: Oct 2003
Posts: 148
Quote:
Originally Posted by dlfl
For a while I thought it was too good to be true -- I started the pyTivo transfer before the complete file had downloaded (just to see what would happen). It played OK! But only for part of the program.
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.

Last edited by ocntscha : 04-01-2007 at 08:23 PM.
ocntscha is offline   Reply With Quote
Old 04-01-2007, 08:26 PM   #247
dlfl
Cranky old novice
 
dlfl's Avatar
 
Join Date: Jul 2006
Location: Near Dayton, Ohio
Posts: 5,837
Quote:
Originally Posted by ocntscha
Hmm, I run it on Linux and use bashpodder as my podcatcher and I can start watching a podcast on my Tivo via pyTivo as its being downloaded with bashpodder and it will view all the way until the end no problem.
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 !
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!
__________________

"It must be swell to be so perfect and odor-free" -- Del Griffith


VideoReDo users: Try
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

pyTivo users: Try
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by dlfl : 04-01-2007 at 09:53 PM.
dlfl is offline   Reply With Quote
Old 04-01-2007, 09:57 PM   #248
Tobashadow
Registered User
 
Tobashadow's Avatar
 
Join Date: Nov 2006
Posts: 1,686
Quote:
Originally Posted by dlfl
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 !
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 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!
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.
Tobashadow is offline   Reply With Quote
Old 04-02-2007, 08:36 AM   #249
windracer
joined the 10k club
 
windracer's Avatar
 
Join Date: Jan 2003
Location: St. Pete, FL
Posts: 11,222
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?
__________________
840~Roamio Pro (TA, MoCA) + two A92~Minis, 758~Premiere XL4 (TA, MoCA)
S/old: 746~S4, 658~HDXL, 648~OLED S3, 565~TX20, 230~S2, 140~S2

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
windracer is offline   Reply With Quote
Old 04-02-2007, 09:09 AM   #250
etsolow
Don't Try
 
etsolow's Avatar
 
Join Date: Feb 2001
Location: Wisconsin
Posts: 1,355
TC CLUB MEMBER
Determine if it's the name of the folder causing problems by renaming it to something else?
etsolow is offline   Reply With Quote
Old 04-02-2007, 03:55 PM   #251
ocntscha
Registered User
 
Join Date: Oct 2003
Posts: 148
Quote:
Originally Posted by windracer
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?
Maybe the user pyTivo's running as doesn't have permission into that folder and/or to read the files?
ocntscha is offline   Reply With Quote
Old 04-02-2007, 07:27 PM   #252
windracer
joined the 10k club
 
windracer's Avatar
 
Join Date: Jan 2003
Location: St. Pete, FL
Posts: 11,222
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?
__________________
840~Roamio Pro (TA, MoCA) + two A92~Minis, 758~Premiere XL4 (TA, MoCA)
S/old: 746~S4, 658~HDXL, 648~OLED S3, 565~TX20, 230~S2, 140~S2

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
windracer is offline   Reply With Quote
Old 04-02-2007, 07:42 PM   #253
etsolow
Don't Try
 
etsolow's Avatar
 
Join Date: Feb 2001
Location: Wisconsin
Posts: 1,355
TC CLUB MEMBER
Quote:
Originally Posted by windracer
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.
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?
etsolow is offline   Reply With Quote
Old 04-02-2007, 08:05 PM   #254
armooo
pyTivo Developer
 
Join Date: Feb 2003
Posts: 79
windracer, this is very strange could get me the output from http://localhost:9032/TiVoConnect?Co...ainer=MyMovies (replace MyMovies with the name of your share.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A python real time video transcoding server for TiVo.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
armooo is offline   Reply With Quote
Old 04-02-2007, 08:25 PM   #255
Chew
Registered User
 
Chew's Avatar
 
Join Date: Jan 2003
Posts: 284
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?
Chew is offline   Reply With Quote
Old 04-02-2007, 08:41 PM   #256
windracer
joined the 10k club
 
windracer's Avatar
 
Join Date: Jan 2003
Location: St. Pete, FL
Posts: 11,222
Quote:
Originally Posted by armooo
windracer, this is very strange could get me the output from http://localhost:9032/TiVoConnect?Co...ainer=MyMovies (replace MyMovies with the name of your share.
PM sent.

The XML stopped after 10 items, even though there are more in my high-level folder. Is that normal?
__________________
840~Roamio Pro (TA, MoCA) + two A92~Minis, 758~Premiere XL4 (TA, MoCA)
S/old: 746~S4, 658~HDXL, 648~OLED S3, 565~TX20, 230~S2, 140~S2

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
windracer is offline   Reply With Quote
Old 04-02-2007, 08:42 PM   #257
armooo
pyTivo Developer
 
Join Date: Feb 2003
Posts: 79
Quote:
Originally Posted by Chew
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?
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.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A python real time video transcoding server for TiVo.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
armooo is offline   Reply With Quote
Old 04-02-2007, 08:47 PM   #258
armooo
pyTivo Developer
 
Join Date: Feb 2003
Posts: 79
Quote:
Originally Posted by windracer
PM sent.

The XML stopped after 10 items, even though there are more in my high-level folder. Is that normal?
Yes the default ItemCount is 10. You can add &ItemCount=26 and you will see a max of 26 items.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A python real time video transcoding server for TiVo.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
armooo is offline   Reply With Quote
Old 04-02-2007, 09:09 PM   #259
Chew
Registered User
 
Chew's Avatar
 
Join Date: Jan 2003
Posts: 284
Quote:
Originally Posted by armooo
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.
Thanks.
Chew is offline   Reply With Quote
Old 04-02-2007, 09:49 PM   #260
PeteTV
Registered User
 
Join Date: May 2006
Posts: 44
MyMusic shows up, but nothing plays

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'

PeteTV is offline   Reply With Quote
Old 04-02-2007, 10:08 PM   #261
armooo
pyTivo Developer
 
Join Date: Feb 2003
Posts: 79
Quote:
Originally Posted by PeteTV
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'
Looks like you are running on python 2.4. In 2.5 the return value of urlparse changed. I just committed a a version that will work in 2.4 and 2.5 it is 185.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

A python real time video transcoding server for TiVo.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
armooo is offline   Reply With Quote
Old 04-02-2007, 11:23 PM   #262
dlfl
Cranky old novice
 
dlfl's Avatar
 
Join Date: Jul 2006
Location: Near Dayton, Ohio
Posts: 5,837
Computing trivia quiz

OK, how many of you noticed this example video bitrate line in recent pyTivo.conf distributions:
Quote:
#video_br=3Mi
Now how many of you are honest enough to admit that, like me, you thought this must be a typo? (But you knew what was really needed was something like "4096K" so it didn't phase you.)

Well I've gotten into the habit of googling "wiki <xxxx>" for any <xxxx> that puzzles me so finally I ended up at this Wikipedia page and lo and behold, "Mi" is an abbreviation for the binary prefix "mebi" which means (unambiguously) 2^20. These IEC prefixes are intended to avoid the ambiguity where "M" and "k" and "K" can mean different mulipliers depending on context -- and on the eyes of the beholder sometimes.

OK, now 'fess up -- don't leave me thinking I was the only one......

BTW, I found you can use k, K, M, or Mi for the bitrate number in the .conf file. They are all accepted by ffmpeg . k and K have identical meanings. but M and Mi will give encoding rates that differ by a factor of 1.024. And 4Mi gives 4194kb encoding rate.
__________________

"It must be swell to be so perfect and odor-free" -- Del Griffith


VideoReDo users: Try
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

pyTivo users: Try
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
and
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
dlfl is offline   Reply With Quote
Old 04-02-2007, 11:27 PM   #263
PeteTV
Registered User
 
Join Date: May 2006
Posts: 44
Quote:
Originally Posted by armooo
Looks like you are running on python 2.4. In 2.5 the return value of urlparse changed. I just committed a a version that will work in 2.4 and 2.5 it is 185.
That works... well... that fixes the problem playing the music anyway.... now there's a different problem which also appears to be a 2.4 vs 2.5 problem.

This appears right when starting the server.

Code:
$ python pyTivo.py
Traceback (most recent call last):
  File "pyTivo.py", line 4, in ?
    import beacon, httpserver, os, sys
  File "/usr/local/pyTivo/beacon.py", line 3, in ?
    from Config import config
  File "/usr/local/pyTivo/Config.py", line 52
    return reduce(lambda a, b: a if abs(x-a) < abs(x-b) or (abs(x-a) == abs(x-b)and a>b) else b, list)
                                  ^
SyntaxError: invalid syntax
I compiled Python 2.5 and this error goes away and I can play music.

NOW if only TiVo would enable video on the S3 I'd be a happy camper.
PeteTV is offline   Reply With Quote
Old 04-03-2007, 01:08 AM   #264
cyclone
Registered User
 
Join Date: Nov 2004
Location: Silicon Valley
Posts: 18
I believe the blacklist is overly broad with regards to 16:9. My Tivo, TSN#540xxxxxxxxxxxx (Tivo-brand S2 80GB), works fine with 16:9, but "540" is in the blacklist in Config.py. Removing it allows the aspect ratio to work correctly.

Perhaps more digits need to be used to set this appropriately?

Last edited by cyclone : 05-04-2007 at 12:54 AM.
cyclone is offline   Reply With Quote
Old 04-03-2007, 07:47 AM   #265
windracer
joined the 10k club
 
windracer's Avatar
 
Join Date: Jan 2003
Location: St. Pete, FL
Posts: 11,222
Quote:
Originally Posted by cyclone
My Tivo, TSN#540000xxxxxxxxx (Tivo-brand S2 80GB)
You might want to edit your post and take out the entire TSN since that's unique to your box (and account).

Plus, IIRC, only the first three digits are needed to identify the actual hardware.
__________________
840~Roamio Pro (TA, MoCA) + two A92~Minis, 758~Premiere XL4 (TA, MoCA)
S/old: 746~S4, 658~HDXL, 648~OLED S3, 565~TX20, 230~S2, 140~S2

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
windracer is offline   Reply With Quote
Old 04-03-2007, 01:25 PM   #266
inthewoods
Registered User
 
Join Date: Feb 2005
Posts: 6
Quote:
Originally Posted by PeteTV
Code:
                       ^
SyntaxError: invalid syntax
I compiled Python 2.5 and this error goes away and I can play music.
Dang, that is my fault...

I'm a Python n00b and didn't realize that I was using a new language feature.

If you want to preserve the 2.4 compatibility of pyTivo, then apply this patch, the symantics are slightly different in that when given an invalid width, this version will choose the next higher resolution instead of the nearest resolution, but in practice it shouldn't matter and it definitely is simpler:

Code:
Index: Config.py
===================================================================
--- Config.py	(revision 185)
+++ Config.py	(working copy)
@@ -1,5 +1,4 @@
 import ConfigParser, os
-import re
 from ConfigParser import NoOptionError
 
 BLACKLIST_169 = ('540', '649')
@@ -46,13 +45,13 @@
 def getValidHeights():
     return [480] # Technically 240 is also supported
 
-# Return the number in list that is nearest to x
-# if two values are equidistant, return the larger
-def nearest(x, list):
-    return reduce(lambda a, b: a if abs(x-a) < abs(x-b) or (abs(x-a) == abs(x-b)and a>b) else b, list)
-
 def nearestTivoWidth(width):
-    return nearest(width, getValidWidths())
+    widths = getValidWidths()
+    widths.sort()
+    for w in widths:
+        if (width <= w):
+            return w
+    return max(widths)
 
 def getTivoWidth():
     try:

inthewoods is offline   Reply With Quote
Old 04-04-2007, 12:05 PM   #267
ScaryMike
Registered User
 
Join Date: Aug 2002
Location: Madison, WI
Posts: 200
I just wanted to say thanks to all of you who are working on this. I've got this running on my winxp machine and so far its great. I have one 260 connected to a 16x9 tv, and one 590 connected to a 4:3. Its all working great (had to aspect169=false the 590)

Anyhow, keep up the good work, and thanks!

-Mike
ScaryMike is offline   Reply With Quote
Old 04-04-2007, 02:18 PM   #268
slestak
Registered User
 
Join Date: Apr 2007
Posts: 11
Hi Guys,

I'm trying to get pyTivo running on my lan. I believe I have everything on my ubuntu server correct, but seem to be having a total MRV failure. None of my 3 series2's list each other on their NPL's, much less the new pyTivo on the lan.

Does MRV have anything to do with the "Manually Add Server" option on the tivo?
slestak is offline   Reply With Quote
Old 04-04-2007, 03:24 PM   #269
windracer
joined the 10k club
 
windracer's Avatar
 
Join Date: Jan 2003
Location: St. Pete, FL
Posts: 11,222
No, the "Manually Add Server" is for HME apps.

MRV should be working assuming a) all of your TiVos have the same MAK and b) they are all on the same subnet.

Try the Advanced Troubleshooting screen. It's under Messages & Settings, Troubleshooting, Transfers, then press Enter.
__________________
840~Roamio Pro (TA, MoCA) + two A92~Minis, 758~Premiere XL4 (TA, MoCA)
S/old: 746~S4, 658~HDXL, 648~OLED S3, 565~TX20, 230~S2, 140~S2

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
windracer is offline   Reply With Quote
Old 04-04-2007, 04:19 PM   #270
Expunged
Registered User
 
Join Date: Dec 2003
Posts: 5
Quote:
Originally Posted by windracer
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?
I am having the same problem. Full reinstall of pytivo and restarting the tivo didnt take care of the issue. Running build 185. Reverting back to the older build (181) which was working fine still does not fix the issue.

Quote:
Originally Posted by armooo
windracer, this is very strange could get me the output from http://localhost:9032/TiVoConnect?Co...ainer=MyMovies (replace MyMovies with the name of your share.
armooo: I'll produce the output tonight and send you the results.
Expunged is offline   Reply With Quote
Reply
Forum Jump




Thread Tools


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Advertisements

TiVo Community
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
vBulletin Skins by: Relivo Media

(C) 2013 Magenium Solutions - All Rights Reserved. No information may be posted elsewhere without written permission.
TiVoŽ is a registered trademark of TiVo Inc. This site is not owned or operated by TiVo Inc.
All times are GMT -5. The time now is 12:44 PM.
OUR NETWORK: MyOpenRouter | TechLore | SansaCommunity | RoboCommunity | MediaSmart Home | Explore3DTV | Dijit Community | DVR Playground |