July 2, 201016 yr Author LIST OF INSTRUCTIONS... Cheers John Thank you very much for the detailed write up on how to install this. It will make it much easier to make an unmenu install package when I get a chance. It was the least that I could do. The only credit that I deserve, I guess, is being one of the first to really try to get it done. There's no way that I could have gotten this done without BRiT & Joe L.'s help. I briefly looked around for info about how to write an unMenu package to see if I could do one, but I suspect that it is far out of my depth. I'd just end up back here begging for help. I did add a link to this post to the unRaid Wiki and posted it over at the pyTiVo forum. I hope that it will be helpful to others. However, an unMenu install package would be awesome. Just a few questions: If you were to write an unMenu install package, is it possible to have it automatically update to the latest versions of python, ffmpeg, and pytivo? If so, that would be the daddy of unMenu packages for pyTiVo users. Is there any tutorial that you could point me to for writing unMenu packages? Although there is a lot that I still don't know about Linux, unRaid, and unMenu, I'd be happy to put the work in on some packages for other applications that already have instructions, but no unMenu package. Thanks John
July 3, 201016 yr Just a few questions: If you were to write an unMenu install package, is it possible to have it automatically update to the latest versions of python, ffmpeg, and pytivo? If so, that would be the daddy of unMenu packages for pyTiVo users. There is no way to do an automatic update that I currently know of. There may be a way to do some checking but it is probably going to be more trouble than it is worth. Unless the program does it for you you are more than likely out of luck. Crashplan does this for you and you can create a new install for that simply by creating a tar ball of the new files. Is there any tutorial that you could point me to for writing unMenu packages? Although there is a lot that I still don't know about Linux, unRaid, and unMenu, I'd be happy to put the work in on some packages for other applications that already have instructions, but no unMenu package. There is not real guide, but I just disected the packages that are already available. Once you get the hang for it it gets pretty easy. Open the .conf files in Notepad++ or something and start looking through them. There are very simple ones that basically do and installpkg and that is it and there are more complex ones like the Air Video package. Star by looking at the simple ones and try to understand those; once you have them figured out look at some of the more complex ones. If you need any help JoeL is a fountain of knowledge when it comes to this kind of thing and I have learned a lot from him. You can always send me a PM also and I will get back to you as soon as I can.
July 5, 201016 yr Author Since my last post, pyTiVo has been running continuously on my unRaid box and has streamed several videos to my TiVoHD successfully. I did have a problem with transferred videos not starting at the beginning. It would either start (and pause) at the last transferred part (if the video was still transferring) or it would go straight to the end and ask me if I wanted to delete it if the transfer had completed. If I worked quickly with the remote, I could rewind before the delete option appeared. But, it was clearly sub-optimal. It turns out that others have had this problem: http://pytivo.sourceforge.net/forum/transferred-recordings-don-t-start-at-the-beginning-t1380.html?highlight=start%20beginning. The clock on your computer and TiVo have to be closely synchronized. My clock on unRaid was set manually & correctly, but I think that Daylight Savings Time seemed to be mucking it up. In the end I was able to fix it by going to http://tower/settings.htm, enabling NTP in the "Date & Time" section. However, I had to set my time zone to GMT -4, even though I am GMT-5. I assume that this is due to Daylight Savings Time. At present, everything seems to be working as it should. I'm not sure what will happen when DST changes back, but, if I have problems around that time, I'll just go back to GMT-5. Changing the time zone twice a year is not difficult.
August 31, 201015 yr Just out of curiosity, can anyone tell me how much space this additional software will use? I registered unRAID on an old 256 meg thumb drive partly because it's too small for anything else but mostly because it's way faster than modern thumb drives with random access. That and it was sitting right there. Also, approximately how much RAM will it consume? I'll probably pop a couple of gigabyte sticks in there eventually, but it's currently running on a single 512 meg stick (because my motherboard doesn't like the Samsung memory in my parts pile). I decided to make this tonight's project but it just occurred to me that I may need to beef things up a bit first. BTW, if anyone wants to trade a single non-Samsung 512 meg PC2-5300 sodimm for a pair of perfectly good Samsung 512 meg sodimms, let me know. They're too small to be useful anywhere else.
September 1, 201015 yr Author Sorry, I don't know how to give an estimate of RAM usage when this is running. If you let me know how, I'll be glad to check... I have a 2GB flash, but with the above installation, unMenu, and several other packages installed, I've only used 194.09M of space.
September 1, 201015 yr Microcenter had 1 gig sticks on sale so I grabbed a couple on the way home. Now I've got 3 512 meg sticks of RAM I can't give away. I have unmenu and several packages installed with 197 megs free so hopefully I'll be able to squeeze everything I want on there. If I'm not back with a "Great Success!" post later tonight, I messed up somewhere along the line.
September 1, 201015 yr Great success! According to top, ffmpeg and python are using 1.2 and 0.7% of my memory (which is now 2 gigs) during a transfer with transcoding so I'm guessing it'd run okay in 512 megs. Fluctuating between 20 and 25% CPU load on my Atom D510. I'm running an S3 Tivo which is the bottleneck due to limitations in its network speed. I expect the new generation of Tivos will be able to move data faster and push the array's CPU a bit harder. So far, so good. My test video is transferring fine, everything starts up good. I have a few notes on the installation: Most important, libogg is now at version 1.2.0 so that filename needs to be updated in all of the commands. Also, pay close attention to capitalization. PyTivo is "pyTivo" and thebayer is "TheBayer" (unless you change them during the process). This is a case-sensitive filesystem so that all needs to match perfectly in scripts, commands, and paths. The CR/LF setup in the pyTivo.conf file doesn't work with notepad so I used vi to avoid potentially creating a configuration file that wouldn't work. Maybe notepad++ or some other geekier editor will read and save the file properly in Windows. This isn't an issue if the web configuration system works but, since the instructions said it didn't work, I haven't tried yet. All in all, awesome instructions! I don't know if I would have had the patience to track down all the packages. Thanks so much!
September 1, 201015 yr Author I'm glad that it worked for you. Thanks for letting me know about the update to liboog. I have updated the instructions on the previous page. I used notepad++ to edit my config file, worked fine. To be honest, I haven't needed to make any changes so far, so I have not revisited the web configuration. Let me know if you give it a shot and get it to work.
September 29, 201015 yr Just a couple of quick questions. Below is the setup for pytivo. What if you have more that one share file that you want to use? Is is possible to have TiVo see more than one Share? [Tower videos] type=video path=/mnt/user/Video The text inside the brackets is the name of the share that your TiVo will show The text behind the "=" is the type of share (viedo, photo, or music) The last line is a path to your user share. In my case I have an unRaid user share setup called "Video" that holds my video files. So, change the last portion of this line to suit your needs. Letter case is important here. "video" is not the same as "Video" Also, has there been any further work on an UnMenu install?
October 4, 201015 yr Just make another entry with a different name and the path of the other directory. [NotPorn] type=video path=/mnt/user/Porn
November 7, 201015 yr Thanks Juano I am a complete unraid and linux newb. Just completed my server yesterday evening and started the pytivo project this morning following your instructions and success! Thanks for your guide - saved me tons of time. -Muck
November 28, 201015 yr Thanks for sharing your great instructions. I took a little time to get photo sharing working and I thought I would share. Assuming you have pyTiVo for your videos up and running, you just need a couple of things to get the photo sharing to work. This should allow you to view your shared images in the Music, Photos, & Showcases menu on your TiVo. First you need to download 2 more libraries -- the jpeg library and the python imaging library. [pre]wget http://slackware.osuosl.org/slackware-current/slackware/l/libjpeg-v8a-i486-1.txz wget http://slackware.osuosl.org/slackware-current/slackware/l/pil-1.1.7-i486-1.txz[/pre] Once downloaded, move those to /boot/packages. [pre]mv libjpeg-v8a-i486-1.txz pil-1.1.7-i486-1.txz /boot/packages[/pre] Install the libraries by running the installpkg command or automate it by adding the following to the /boot/config/go script. [pre]installpkg /boot/packages/libjpeg-v8a-i486-1.txz installpkg /boot/packages/pil-1.1.7-i486-1.txz[/pre] Edit your pyTivo.conf file to add a photos section. The name between the brackets will be the name that appears on the TiVo menu. The path can be any directory of images. I have a user share with all of my photos so I used /mnt/user/Images as the path. [pre][images] type=photo path=/mnt/user/Images[/pre] Reboot the unRAID box and you should be able to browse your images from your TiVo. Also, the music streaming functions work by adding a music section to your pyTivo.conf file. [pre][Music] type=music path=/mnt/user/Music[/pre] If you make both of those changes before you reboot, you should have a Music entry and an Images entry under the Music, Photos, & Showcases menu on your TiVo. Hope this helps.
November 29, 201015 yr Several of the libraries have been updated since this was originally written. Here is the list of libraries from my go script including the two needed for photo streaming support. [pre]installpkg /boot/packages/python-2.6.4-i486-1.txz installpkg /boot/packages/ffmpeg-0.6-i486-1alien.tgz installpkg /boot/packages/openssl-solibs-0.9.8p-i486-1.txz installpkg /boot/packages/libusb-1.0.8-i486-1.txz installpkg /boot/packages/libtheora-1.1.1-i486-1.txz installpkg /boot/packages/libogg-1.2.0-i486-1.txz installpkg /boot/packages/alsa-lib-1.0.23-i486-1.txz installpkg /boot/packages/libX11-1.3.6-i486-1.txz installpkg /boot/packages/libXext-1.2.0-i486-1.txz installpkg /boot/packages/libXfixes-4.0.5-i486-1.txz installpkg /boot/packages/libxcb-1.7-i486-1.txz installpkg /boot/packages/libXau-1.0.6-i486-1.txz installpkg /boot/packages/libXdmcp-1.1.0-i486-1.txz installpkg /boot/packages/glibc-solibs-2.12.1-i486-3.txz installpkg /boot/packages/libjpeg-v8a-i486-1.txz installpkg /boot/packages/pil-1.1.7-i486-1.txz[/pre]
December 1, 201015 yr Author Thanks Pogopogo for the updates! I've applied them to my unRaid box and all seems to be working fine. I've added your updated files and the picture viewing files to the original instructions here: http://lime-technology.com/forum/index.php?topic=6571.msg66634#msg66634 Thanks! John
December 1, 201015 yr Author Sorry for the strange "Nevermind" post. I updated the libs posted above by pogopogo a couple of days ago and started having problems with my streaming. I had posted a description of my problems here, but then realized that I had probably just messed up my pytivo.conf file with a couple of changes. Once I re-edited it to make it more simple, things started working again.
December 4, 201015 yr Author Thanks pogopogo for the updates. I went back and edited the original instructions to reflect the updates and added the libs for photo & music sharing.
December 27, 201015 yr New version of: http://slackware.osuosl.org/slackware-current/slackware/a/openssl-solibs-0.9.8p-i486-1.txz is now: http://slackware.osuosl.org/slackware-current/slackware/a/openssl-solibs-0.9.8q-i486-1.txz
March 27, 201115 yr Author Many thanks PCRx. There are several other updates at this point. I've updated the original summary: http://lime-technology.com/forum/index.php?topic=6571.msg66634#msg66634 For those updated as of early December, the updates are as follows: wget http://slackware.osuosl.org/slackware-current/slackware/a/openssl-solibs-0.9.8r-i486-2.txz wget http://slackware.osuosl.org/slackware-current/slackware/l/libogg-1.2.2-i486-1.txz wget http://slackware.osuosl.org/slackware-current/slackware/l/alsa-lib-1.0.24.1-i486-1.txz wget http://slackware.osuosl.org/slackware-current/slackware/x/libX11-1.4.2-i486-1.txz wget http://slackware.osuosl.org/slackware-current/slackware/x/libXfixes-5.0-i486-1.txz wget http://slackware.osuosl.org/slackware-current/slackware/a/glibc-solibs-2.13-i486-3.txz
April 30, 201115 yr Author Updated the original summary post with latest versions. http://lime-technology.com/forum/index.php?topic=6571.msg66634#msg66634
April 30, 201115 yr Excellent update. Also Slackware 13.37 was just released, so it might be of benefit to link the packages to there. What that would mean is using http://slackware.osuosl.org/slackware-13.37/slackware instead of http://slackware.osuosl.org/slackware-current/slackware/ The way Slackware operates is the packages of a release should remain constant while the updates are placed in 'patches'. The upside is the links should work a few months from now, but then the downside is the packages won't be the most latest and greatest. Considering the release just occurred, it might not be too bad at least for a couple of months. I'd consider keeping an eye on vital updates and switching the links over to current should any security or feature fixes take place.
June 16, 201115 yr A huge thank-you for this - it helped me get pyTivo going on my unRaid server, and also got StreamBaby going. There were a couple of changes - one of the scripts earlier didn't wget Python; I had to do: wget http://slackware.osuosl.org/slackware-current/slackware/d/python-2.6.6-i486-1.txz also, the glib file has bumped to -5: wget http://slackware.osuosl.org/slackware-current/slackware/a/glibc-solibs-2.13-i486-5.txz that also changed the mv command: mv glibc-solibs-2.13-i486-5.txz /boot/packages and the installpkg command in the go file: installpkg /boot/packages/glibc-solibs-2.13-i486-5.txz After that, pyTivo installed fine. Alas, it wasn't what I wanted - I have all my ripped DVDs in .iso files; the DVD plugin for pyTivo doesn't handle iso files. I had been running StreamBaby as a test on my Windows box; I easily moved it to unRaid: copy all the files from my Windows installation to <flash drive>/packages/StreamBaby-0.29 edited the streambaby.ini file to change my media directories from "T:/movies" to "/mnt/user/movies" I had already installed Java using unMenu's package installer. ffmpeg was installed with the above instructions along with pyTivo I found that StreamBaby would start if I started it from a telnet session, but not from the go file. I had to put the full path to Java in the streambaby startup script: /usr/lib/java/bin/java -Djava.net.preferIPv4Stack=true -Xmx256m -jar "$DIRNAME/jbin/streambaby.jar" $@ in the go file, I have: /boot/packages/streambaby-0.29/streambaby StreamBaby doesn't do .iso files either, but it streams the files instead of copying them to the Tivo. It does display information about the file; that's the <filename>.mpg.txt file that pyTivo also uses. e.g.: title : Scrubs seriesTitle : Scrubs description : Medical intern John "J.D." Dorian (Zach Braff) embarks on a career at a hospital abundant with unpredictable staffers and patients. time : 2011-06-05T21:00:00Z isEpisode : true originalAirDate : 2001-10-02T00:00:00Z episodeTitle : S1 E01 - My First Day isEpisodic : true showingBits : 524803 tvRating : x5 episodeNumber : 000 displayMajorNumber : 627 callsign : WGNHD seriesId : SH446160 vActor : etc, etc StreamBaby also supports subtitles using .srt files. Unfortunately, it uses a different key on the remote to turn them on and off, rather than the 'info' key. I'm using kmttg to download files from the Tivo and move them to the server. That's still running on Windows - next project is to move it to the unRaid server. kmttg downloads, creates the xxx.mpg.txt file, and creates the .srt file, all by itself. very nice!
November 29, 201114 yr Help, please: These two packages are not available at the links supplied: wget http://slackware.osuosl.org/slackware-current/slackware/l/pil-1.1.7-i486-1.txz wget http://connie.slackware.com/~alien/slackbuilds/ffmpeg/pkg/13.1/ffmpeg-0.6-i486-1alien.tgz What should I do? Thanks Updated as of 04/30/11...multiple lib updates.... Updated as of 12/01/10, added additional libs and modified the go script for picture viewing...thx to pogopogo. And Thx again to BRiT, Joe L, and the others that helped me get this working Despite a few hiccups on the first day or so, it's been working transparently for several months now. Well, pyTivo is up and running on my unRaid box! Thanks once again to everyone here for the extraordinary amount of assistance they gave me. Anyway, I want to summarize here the steps that it took to get to this point, in case someone else wants to do this... 1. Download Python, FFmpeg, and associated libraries: wget http://connie.slackware.com/~alien/slackbuilds/ffmpeg/pkg/13.1/ffmpeg-0.6.1-i486-1alien.tgz wget http://connie.slackware.com/~alien/slackbuilds/ffmpeg/pkg/13.1/ffmpeg-0.6-i486-1alien.tgz wget http://slackware.osuosl.org/slackware-current/slackware/a/openssl-solibs-0.9.8r-i486-3.txz wget http://slackware.osuosl.org/slackware-current/slackware/l/libusb-1.0.8-i486-2.txz wget http://slackware.osuosl.org/slackware-current/slackware/l/libtheora-1.1.1-i486-1.txz wget http://slackware.osuosl.org/slackware-current/slackware/l/libogg-1.2.2-i486-1.txz wget http://slackware.osuosl.org/slackware-current/slackware/l/alsa-lib-1.0.24.1-i486-1.txz wget http://slackware.osuosl.org/slackware-current/slackware/x/libX11-1.4.3-i486-2.txz wget http://slackware.osuosl.org/slackware-current/slackware/x/libXext-1.2.0-i486-1.txz wget http://slackware.osuosl.org/slackware-current/slackware/x/libXfixes-5.0-i486-1.txz wget http://slackware.osuosl.org/slackware-current/slackware/x/libxcb-1.7-i486-1.txz wget http://slackware.osuosl.org/slackware-current/slackware/x/libXau-1.0.6-i486-1.txz wget http://slackware.osuosl.org/slackware-current/slackware/x/libXdmcp-1.1.0-i486-1.txz wget http://slackware.osuosl.org/slackware-current/slackware/a/glibc-solibs-2.13-i486-4.txz wget http://slackware.osuosl.org/slackware-current/slackware/l/libjpeg-v8a-i486-1.txz wget http://slackware.osuosl.org/slackware-current/slackware/l/pil-1.1.7-i486-1.txz 2. Move all to /boot/packages: mv libjpeg-v8a-i486-1.txz pil-1.1.7-i486-1.txz python-2.6.6-i486-1.txz ffmpeg-0.6.1-i486-1alien.tgz openssl-solibs-0.9.8r-i486-3.txz libusb-1.0.8-i486-2.txz libtheora-1.1.1-i486-1.txz libogg-1.2.2-i486-1.txz alsa-lib-1.0.24.1-i486-1.txz libX11-1.4.3-i486-2.txz libXext-1.2.0-i486-1.txz libXfixes-5.0-i486-1.txz libxcb-1.7-i486-1.txz libXau-1.0.6-i486-1.txz libXdmcp-1.1.0-i486-1.txz glibc-solibs-2.13-i486-4.txz libjpeg-v8a-i486-1.txz pil-1.1.7-i486-1.txz /boot/packages 3. Install and/or add the following to your go script: installpkg /boot/packages/python-2.6.6-i486-1.txz installpkg /boot/packages/ffmpeg-0.6.1-i486-1alien.tgz installpkg /boot/packages/openssl-solibs-0.9.8r-i486-3.txz installpkg /boot/packages/libusb-1.0.8-i486-2.txz installpkg /boot/packages/libtheora-1.1.1-i486-1.txz installpkg /boot/packages/libogg-1.2.2-i486-1.txz installpkg /boot/packages/alsa-lib-1.0.24.1-i486-1.txz installpkg /boot/packages/libX11-1.4.3-i486-2.txz installpkg /boot/packages/libXext-1.2.0-i486-1.txz installpkg /boot/packages/libXfixes-5.0-i486-1.txz installpkg /boot/packages/libxcb-1.7-i486-1.txz installpkg /boot/packages/libXau-1.0.6-i486-1.txz installpkg /boot/packages/libXdmcp-1.1.0-i486-1.txz installpkg /boot/packages/glibc-solibs-2.13-i486-4.txz installpkg /boot/packages/libjpeg-v8a-i486-1.txz installpkg /boot/packages/pil-1.1.7-i486-1.txz 4. Reboot 5. Check to see that both Python & ffmpeg are installed python --version ffmpeg - version yes --version for one -version for the other You should get output like: python-2.6.6 and ffmpeg-0.6... (followed by several more lines of text) 6. Download a version of pyTivo here: http://pytivo.sourceforge.net/wiki/index.php/Current_Releases. In my case, I chose the latest version of TheBayer Fork. I then moved the .zip file to /boot/packages and renamed the zip file to an easy to remember name. In my case thebayerpytivo.zip. I renamed it by just browsing to the folder on my unRaid flash drive on a windows machine and renaming it that way. I suppose that you could download and unzip on your windows machine and copy and paste to your flash drive as well. wget http://repo.or.cz/w/pyTivo/TheBayer.git/snapshot/79fd85b2b5af79da8923cbb833f37fb08d11316a.zip then mv 79fd85b2b5af79da8923cbb833f37fb08d11316a.zip /boot/packages then renamed 79fd85b2b5af79da8923cbb833f37fb08d11316a.zip to thebayerpytivo.zip using windows 7. Unzip your pyTiVo package in your /boot/packages folder cd boot/packages unzip thebayerpytivo.zip If you don't have a unzip program on your unRaid box, then the download to windows, unzip, and copy & paste to your /boot/packages folder method is probably just as easy. 8. Create a pytivo configuration file (pytivo.conf) In this case I browsed to my /boot/packages/thebayer folder from my windows machine and copied the pytivo.conf.dist to a new file pytivo.conf. I'm sure that you can do this through Linux, but I don't know how and this method was very easy This, essentially, creates a basic pytivo configuration file for you to use. It creates a pytivo share My Movies, but the settings will not be correct for your needs. You'll need to edit the pytivo.conf file later to point to your specific shares. 9. Regardless, your ready to run pyTiVo and check to see if your TiVo can see your unRaid box /usr/bin/python /boot/packages/thebayer/pyTivo.py You'll want to change thebayer portion of the above command to the name of whatever folder was created when you unzipped your pytivo zip file. 10. You should see: INFO:pyTivo.beacon:Announcing shares... INFO:pyTivo.beacon:Registering: My Movies INFO:pyTivo.beacon:scanning forTiVos... INFO:pyTivo:pyTivo is ready. 11. Now go to your TiVo, scroll to the bottom of your Now Playing list. There should be a new item there My Movies. If so, it's working...if not...hell I don't know.... 12. Open your pytivo.conf file in a text editor and add some lines similar to the following:: [Tower videos] type=video path=/mnt/user/Video The text inside the brackets is the name of the share that your TiVo will show The text behind the "=" is the type of share (viedo, photo, or music) The last line is a path to your user share. In my case I have an unRaid user share setup called "Video" that holds my video files. So, change the last portion of this line to suit your needs. Letter case is important here. "video" is not the same as "Video" 13. You can also delete the three lines in the in the pytivo.conf file associated with the My Movies share, or just edit the last line to point to your user share. 14. Set pyTivo to run automatically on reboot. Add the following line near the bottom of your 'go' script. Again, change thebayer portion of this line to a folder appropriate for you /usr/bin/python /boot/packages/thebayer/pyTivo.py 15. Reboot your unRaid box. Python, ffmpeg, and pyTivo should be running on your unRaid box. Your video shares should now be visible on your TiVo. I've only had this going for about 24 hours, and, as I mentioned, at the moment it is working, but not quite 100%. I'll also note that you should be able to edit you pytivo.conf file from a web browser by pointing it to http://tower:9032/, however, this is not working for me. I can view the web configuration utility, but I am unable to make any changes. So, I/you will have to become familiar with editing the pytivo.conf file manually http://pytivo.sourceforge.net/wiki/index.php/Configure_pyTivo. Perhaps this behavior is specific to the "Fork" that I chose (wmcbrine's fork vs thebayer fork), or perhaps it has something to do with running it on an unRaid box. I don't know. Thanks once again to everyone for their invaluable help in getting this running. I am as novice a Linux user as you will come across. There is no way that I could have gotten this done by myself. It was a very educational experience for me. Hopefully I won't need quite as much help the next time I want to add something to my unRaid server. Cheers John
November 30, 201114 yr Help, please: These two packages are not available at the links supplied: wget http://slackware.osuosl.org/slackware-current/slackware/l/pil-1.1.7-i486-1.txz wget http://connie.slackware.com/~alien/slackbuilds/ffmpeg/pkg/13.1/ffmpeg-0.6-i486-1alien.tgz What should I do? The first link works for me. Try this for the second link: wget http://connie.slackware.com/~alien/slackbuilds/ffmpeg/pkg/13.1/ffmpeg-0.6.1-i486-1alien.tgz
Archived
This topic is now archived and is closed to further replies.