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. dlfl

    dlfl Cranky old novice

    Jul 6, 2006
    (This is a program that generates pyTivo metadata files based on data it reads from .tivo files.)

    Added the "showingBits" item. Download ***here***.

    Remember to uninstall any previous version.
  2. ruttmeister

    ruttmeister New Member

    Dec 8, 2007

    Thanks a lot for the help. I could see an exponential pattern there, but I just didn't look closely enough. I got an email off the web form on my page that really explained what was happening pretty well also, and between the two of you, I've got it all figured out. I'm working on gettting this in my generator, but it might be a couple days before it's working the way I want.

    Anyways, thanks again!
  3. scrappydog65

    scrappydog65 Long Time TiVo User

    Dec 29, 2003

    I read on the pyTivo site that the beacon setting is useful when there VPN software installed or I suppose if the machine has multiple NIC's. Basically, I think it tells pyTivo where to look for the TiVo's. My Cisco VPN software always seems to give me trouble, but the Beacon setting fixed that.

    For example, if your TiVo IP address is, then you would set your Beacon setting to The 255 part is like a wildcard, so the software interprets it as 192.168.2.*. You can find out the IP address of your TiVo by looking under System Information (or maybe it's Phone & Network Settings) on the TiVo.

    As for ZoneAlarm and the LinkSys router, this may or may not resolve that problem. It would depend upon where the block is. If the Beacon value is set appropriate, then you could theoretically rule out pyTivo as the cause. Then, it's a matter of ruling out the other two. Try shutting down ZoneAlarm entirely and then restart pyTivo. If it works, then you know the cause (though maybe not the resolution).

    I hope this makes sense. Good luck.

  4. jcthorne

    jcthorne Active Member

    Jan 28, 2002
    Need some help with MKV files. Some work fine when converted for Tivo and some have BAD audio sync problems. I can reproduce the problem on the PC using ffmpeg and converting to an mpg file....it plays with the out of sync audio just like on the TIVO. The original file plays fine. The problem seems to be much worse with files containing DTS audio and being converted to ac3.

    Anyone else seeing this anomoly with ffmpeg and pytivo?
  5. briankasper

    briankasper New Member

    Dec 1, 2004
    I'm not seeing that problem, but I have been able to use tools other than ffmpeg to extract DTS audio streams from MPEG-2 sources, transcode them into AC3 and remultiplex them with the original video stream to create a new MPEG-2 that my S3 can play with no synch problems.

    I've only done this with MPEG-2 sources, but the tools I'm using might work with MKV as well -- or you may be able to find an MKV demultiplexer that can extract the tracks in the correct formats and an MKV multiplexer that can recombine them.

    I use BBDMux to extract the video and audio streams, Foobar2000 to convert the DTS stream to a 6-channel WAV file, the Aften AC3 encoder to convert the WAV file to AC3, and MuxMan to combine the original video with the new AC3 stream. The end result of this process is a video with 5.1-channel Dolby Digital sound that plays without any synch problems on my S3 using TTCB+TiVo Desktop.

  6. bcwaller

    bcwaller New Member

    Nov 5, 2007
    I have not had a chance to convert files for my TiVo, but I have had no failures converting MKV files to AVI files with ffmpeg. I do have to manually set the frame rate (for some reason it is automatically setting to 0.8 fps or something like that), but I convert files for viewing from my Mac this way.
  7. MasterCephus

    MasterCephus New Member

    Jan 2, 2005
    Well, I created a .NET application that aides in creating meta data information for video files.

    You can download it here

    Basically I am getting the information from two places:
    For movies, I am using Movie-XML. An example of the data that is retrieved from this site is located here.

    For TV Shows, I am using theTVDB.com. An example of the data retrieved from this site is located here. and here.

    To get the seriesID, I am using the list that PaulS created. It's about 90% complete, so if you find a series that isn't there, email me the series name and the ID and I will add it to the list and update everything.

    This is my first venture into writing an application and giving it out to people.

    I want to thank ruttmeister for his testing and giving advice on the metadata. He really helped me get everything together.

    Also I would like to thank Regeg for his testing and help as well.

    Let me know of some issues that you have with this...you MUST have an internet connection and you MUST also have .NET 3.5 as well on your machine.

  8. tedmundson

    tedmundson New Member

    Nov 28, 2003
  9. wrg

    wrg Wife jealous of TIVO

    Aug 1, 2001
    Wil pyTivo get iTunes purchased video into the Tivo?
  10. MasterCephus

    MasterCephus New Member

    Jan 2, 2005
    Nope...thanks DRM!
  11. dlfl

    dlfl Cranky old novice

    Jul 6, 2006
    Very nice! My first two such applications (C# .NET) are linked at the bottom of this post.

    It worked fine for me.

    You might consider www.mediafire.com for hosting your programs. It strikes me as a little less tedious than the one you're using, e.g., it doesn't make you type in security letters.

    I wonder if the option of just outputting the metadata text file without having to choose a video would be desirable?

    Was this done in VB or C#? Is there actually a .NET framework 3.5 out? Your program seemed to run fine on a computer with just 2.0 installed (?).
  12. MasterCephus

    MasterCephus New Member

    Jan 2, 2005
    I wrote it in Visual Studio 2008 and had 3.5 checked, so I assumed... maybe not :)

    I did it in C#

    I didn't know where to host it...just needed a place to host it...I might change it...does mediafire keep a count on the times a file is downloaded?

    I thought about that, but you can just select all files in the list and save it to any file and change the name later. If everyone would like the option to just save the text file as anything, I will make that change.

    One thing I have noticed is that it takes a little bit of time to get responses back from movie-xml. Their server must be slow.
  13. dlfl

    dlfl Cranky old novice

    Jul 6, 2006
    Mediafire.com does keep a count of downloads.

    I am interested in how you get the data from Movie-XML. Do you just do the right uri in a POST or GET and the XML comes as the response? (I have done this with the webRequest class to get the TiVo NPL xml.) I poked around their site and links but got pretty confused. If you're willing to share some knowledge you might save me a lot of time! You could PM me to spare the thread readers the gory details. Code snippets would really be great, if you're willing. This is just for learning. I was toying with writing an app similar to yours but there's no need now!
  14. wmcbrine

    wmcbrine Ziphead

    Aug 2, 2003
    If your software is open source, consider SourceForge.net.
  15. wombat94

    wombat94 Member

    Nov 18, 2007

    Thanks for posting this. I can't wait to try it out tonight when I get home from work.

    Are you thinking of open sourcing the .Net code for this?

    I have started looking into writing a Windows Home Server add-in that would provide a GUI to the configuration of pyTivo and have thought of adding a Metadata generator directly to that GUI.

    I haven't looked into the web crawling aspect of the project yet (and may not need to since there are other solutions like yours coming along), but I'd still like to be able to provide a WHS tab that can do the job.

    Thanks for your contributions to the community.

  16. Sicklybutsexy

    Sicklybutsexy New Member

    May 5, 2007
    Which version of pytivo do I have to have to use this metadatagenerator?
  17. dlfl

    dlfl Cranky old novice

    Jul 6, 2006
    I think the latest build (d4219....) would be the best. It needs a few code edits to correct minor problems as noted in Tickets 57,58 and 62 in the Wiki but probably would be usable without them.
  18. joe2748

    joe2748 New Member

    Dec 18, 2007
    Sorry to hijack this thread, but I didn't see any other place that fit to put this. It looks like the thread jumps around a lot anyway.

    So I got pytivo working, but I tried to transcode a corrupt file which naturally didn't work. Now when I go to transfer a show I get the message "This program has been added to the to do list and will be transferrred to ** aver previously requested programs have finished transferring". I cleared the to do list, reset, and waited a day, but I still have the same trouble.

    Any idea how to fix this? Is pytivo confused, or is it the tivo itself?
    Thanks for any help, and if there is a better place to post this please let me know.
  19. dlfl

    dlfl Cranky old novice

    Jul 6, 2006
    Very unlikely pyTivo is confused after you restart it. You could check Processes in Task Manager looking for python, pytivo and ffmpeg rogue processes (when pyTivo isn't supposed to be running).

    Have you rebooted your TiVo? (I guess that's what you mean by reset?)

    If you're running pyTivo as a service, try shutting it down and running the command line version.

    What version of pyTivo. What equipment?
  20. joe2748

    joe2748 New Member

    Dec 18, 2007
    I've totally rebooted the computer, so any rogue processes are now long gone, although I am running pytivo as a daemon.
    I have rebooted the tivo, I'm running pytivo 2.08, a series 2 tivo, and ubuntu gutsy.
    I don't know what other equipment information there is, but if you tell me where to look i can find it.

Share This Page