 |
pyTivo Discussion Forum Answers and the development of pyTivo a TiVo transcoding server
|
|
| Author |
Message |
jkasyan
Joined: 25 Nov 2010 Posts: 26
|
Posted: Sun May 27, 2012 7:15 am Post subject: |
|
|
| After doing some testing with the latest installer of native python vs java, i'm not going to recommend java anymore. I tried transferring some longer local media, and while i didn't have heather's problems (the transfers completed) they were almost unwatchable. Lots of stuttering and artifacts. Not sure where the issue is with that, IPC with ffmpeg, i'd suppose? The network stack? It's not an issue with the playon plugin, as that's completely handling the video aspects for us. For anything else python seems to be the way to go. Python is noticably snappier too. |
|
| Back to top |
|
 |
HeatherABC
Joined: 25 May 2012 Posts: 10
|
Posted: Sun May 27, 2012 1:34 pm Post subject: |
|
|
| jkasyan wrote: | | dlfl wrote: | Can I just edit this mod into the playon.py file in your installed version and run it? |
You could just mod it, but I've incorporated your changes into the latest install.
This install now will work with java OR python. If python.exe is in your path, then it will use it preferentially. I used 2.7.3 from http://www.python.org/ftp/python/2.7.3/python-2.7.3.amd64.msi
as my testbed. Seems to work. Heather, you might want to try installing python, adding it to your path, and trying the latest install.
|
Ok, I've gotten python installed and the new build installed. I'm not sure how to add python to my path. Can you help me with this?
Thanks!
P.S. The videos work flawlessly using Playon's MyMedia. Not the most convenient way to get to them but they work! Thanks for the suggestion. |
|
| Back to top |
|
 |
jkasyan
Joined: 25 Nov 2010 Posts: 26
|
|
| Back to top |
|
 |
dlfl
Joined: 05 Jan 2008 Posts: 337 Location: Near Dayton, Ohio
|
|
| Back to top |
|
 |
HeatherABC
Joined: 25 May 2012 Posts: 10
|
Posted: Tue May 29, 2012 8:48 pm Post subject: |
|
|
As a way to say thank you for all of your help I want to share something I've discovered with Playon on the TiVo. You can actually save all shows downloaded simply by going into the show as it's downloading and changing the save until date at least one day ahead. I've even gotten this to work with Amazon Prime streaming. I know earlier in the thread someone was having trouble with this so I thought I'd share.  |
|
| Back to top |
|
 |
jkasyan
Joined: 25 Nov 2010 Posts: 26
|
Posted: Fri Jun 01, 2012 4:39 am Post subject: |
|
|
I've uploaded a new installer with dlfl's suggested changes. I also didn't like the way my installer was creating the service, so i've tweaked that, and my template has a different SourceFormat tag... not sure if that will make any difference. I'm also not using django anymore, so my plugin could concieveably be added to someone else's branch.
At the very least it works better than when i started! Thanks all for the help! |
|
| Back to top |
|
 |
wmcbrine

Joined: 04 Jan 2008 Posts: 2010 Location: Maryland
|
Posted: Fri Jun 01, 2012 8:38 am Post subject: |
|
|
AFAICT SourceFormat does nothing. _________________ My pyTivo fork . My page |
|
| Back to top |
|
 |
tigger4046
Joined: 05 Mar 2011 Posts: 1
|
Posted: Sat Jun 02, 2012 6:54 pm Post subject: |
|
|
| jkasyan wrote: | I've uploaded a new installer with dlfl's suggested changes. I also didn't like the way my installer was creating the service, so i've tweaked that, and my template has a different SourceFormat tag... not sure if that will make any difference. I'm also not using django anymore, so my plugin could concieveably be added to someone else's branch.
At the very least it works better than when i started! Thanks all for the help! |
I look forward to streaming my programs to my Primere XL, thanks for all your hard work. |
|
| Back to top |
|
 |
Socal Tom
Joined: 23 Aug 2012 Posts: 23
|
Posted: Sat Aug 25, 2012 3:56 am Post subject: |
|
|
I'm running the may 25 wmcbrine fork on an Pogoplug with Archlinux.
I've got pyTivo working fine, along with the dvdvideo plugin. I can't get the playon plugin working.
I pasted the googlecode from here into playon.py, put that in a playon directory under plugins.
The log file doesn't even acknowlege the share
| Code: | NFO:pyTivo:Last modified: Fri Aug 24 22:28:10 2012
INFO:pyTivo:Python: 2.7.2
INFO:pyTivo:System: Linux-2.6.31.6_SMP_820-armv6l-ARMv6-compatible_processor_re$
INFO:pyTivo.beacon:Announcing shares...
INFO:pyTivo.beacon:Registering: DVDs
INFO:pyTivo.beacon:Registering: Home Movies
INFO:pyTivo.beacon:Registering: Movies
INFO:pyTivo.beacon:Registering: Photos
INFO:pyTivo.beacon:Registering: TV Shows
INFO:pyTivo.beacon:Scanning for TiVos...
INFO:pyTivo.beacon:Max's room
INFO:pyTivo.beacon:Office
INFO:pyTivo.beacon:Living room
INFO:pyTivo:pyTivo is ready.
INFO:pyTivo:192.168.10.119 [24/Aug/2012 22:39:09] "GET /TiVoConnect?Command=Que$
INFO:pyTivo:192.168.10.141 [24/Aug/2012 22:39:09] "GET /TiVoConnect?Command=Que$
INFO:pyTivo:192.168.10.138 [24/Aug/2012 22:39:09] "GET /TiVoConnect?Command=Que$
INFO:pyTivo:192.168.10.110 [24/Aug/2012 22:39:13] "GET / HTTP/1.1" 200 -
INFO:pyTivo:192.168.10.110 [24/Aug/2012 22:39:13] "GET /main.css HTTP/1.1" 200 |
Here is the relavent section of my pytivo.conf created through the web configuration tool
| Code: |
[Photos]
type = photo
path = /media/hd-sda2/Video/pictures
[DVDs]
type = dvdvideo
path = /media/hd-sda2/DVD
[playon]
path = http://192.168.10.110:57331
type = playon
|
It doesn't recognize that playon is a plugin. Am I missing a steP
Thanks
Tom |
|
| Back to top |
|
 |
jkasyan
Joined: 25 Nov 2010 Posts: 26
|
|
| Back to top |
|
 |
Socal Tom
Joined: 23 Aug 2012 Posts: 23
|
Posted: Sat Aug 25, 2012 1:01 pm Post subject: |
|
|
It still reports no playon plugin exists
Here are the directory listings | Code: |
[root@videobox playon]# ls -l
total 20
drwxr-xr-x 2 root root 4096 Aug 25 07:46 content
-rw-r--r-- 1 root root 0 Aug 25 07:45 _init_.py
-rw-r--r-- 1 root root 11576 Aug 24 22:28 playon.py
drwxr-xr-x 2 root root 4096 Aug 25 07:48 templates
[root@videobox content]# ls -l
total 4
-rw-r--r-- 1 root root 3544 Aug 25 07:46 container.xsl
[root@videobox templates]# ls -l
total 12
-rw-r--r-- 1 root root 3313 Aug 25 07:47 container.tmpl
-rw-r--r-- 1 root root 3804 Aug 25 07:48 container.xsl
-rw-r--r-- 1 root root 3773 Aug 25 07:47 TvBus.tmpl
|
|
|
| Back to top |
|
 |
Socal Tom
Joined: 23 Aug 2012 Posts: 23
|
Posted: Sat Aug 25, 2012 1:41 pm Post subject: |
|
|
| I figured out that _init_.py needed to be __init__.py. With that change, I can see the share on my tivo, but it has not content. I've tried a couple of different ports. Could windows firewall have something do do with this? |
|
| Back to top |
|
 |
jkasyan
Joined: 25 Nov 2010 Posts: 26
|
Posted: Sat Aug 25, 2012 6:23 pm Post subject: |
|
|
Open a browser on a pc. Try http://<IP of the PC running playon>:54479/data/data.xml
Do you get an xml response? Then you're good. Use that port. No response? Possible firewall issue. You also need mobile access enabled in playon. Can't help out too much other than that. |
|
| Back to top |
|
 |
Socal Tom
Joined: 23 Aug 2012 Posts: 23
|
Posted: Sat Aug 25, 2012 8:48 pm Post subject: |
|
|
I got the xml response. I'll have to see if its something in the linux install thats keeping me from viewing it.
Thanks
Tom |
|
| Back to top |
|
 |
Socal Tom
Joined: 23 Aug 2012 Posts: 23
|
Posted: Sun Aug 26, 2012 1:45 pm Post subject: |
|
|
Does this offer any insight? | Code: |
ERROR:pyTivo:Exception during request from ('192.168.10.110', 52545)
Traceback (most recent call last):
File "/usr/lib/python2.7/SocketServer.py", line 582, in process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 323, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/opt/pyTivo/httpserver.py", line 85, in __init__
client_address, server)
File "/usr/lib/python2.7/SocketServer.py", line 638, in __init__
self.handle()
File "/usr/lib/python2.7/BaseHTTPServer.py", line 340, in handle
self.handle_one_request()
File "/usr/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
method()
File "/opt/pyTivo/httpserver.py", line 111, in do_GET
self.handle_query(query, tsn)
File "/opt/pyTivo/httpserver.py", line 164, in handle_query
if self.do_command(query, command, basepath, tsn):
File "/opt/pyTivo/httpserver.py", line 143, in do_command
method(self, query)
File "/opt/pyTivo/plugins/playon/playon.py", line 242, in QueryContainer
feed = parseString(xmlresult)
File "/usr/lib/python2.7/xml/dom/minidom.py", line 1930, in parseString
return expatbuilder.parseString(string)
File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 940, in parseString
return builder.parseString(string)
File "/usr/lib/python2.7/xml/dom/expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
ExpatError: mismatched tag: line 14, column 2
|
Thanks
Tom |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|