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

    reneg Member

    699
    0
    Jun 19, 2002
    Yes, it is part of the block. Indentation matters. From python.org on indentation, "Leading whitespace (spaces and tabs) at the beginning of a logical line is used to compute the indentation level of the line, which in turn is used to determine the grouping of statements."
     
  2. dionysian

    dionysian New Member

    5
    0
    Oct 31, 2007
    Thank you for your reply dlfl

    I did what you have instructed and i am still recieving the same problem. Here is my config file:

    [test]

    type = video
    path = C:\Program Files\Pipkin Technologies\TiVo.Net\Videos

    [MyMovies]
    type = video
    path = C:\Program Files\Pipkin Technologies\TiVo.Net\Videos

    [Server]
    port = 9032
    guid = {6113BCE6-0E38-4E4C-AD9D-1BAE4C06CA2A}
    ffmpeg = C:\Program Files\pyTivo\plugins\video\ffmpeg_mp2.exe
    width = 544

    I am running xp service pack 2. Tivo version 7.2.5-01-2-649. I have version 1.82 of pytivo. I also noticed in the log file of pytivo i have this:

    C:\Program Files\pyTivo\Cheetah\Compiler.py:1508: UserWarning:
    You don't have the C version of NameMapper installed! I'm disabling Cheetah's useStackFrames option as it is painfully slow with the Python version of NameMapper. You should get a copy of Cheetah with the compiled C version of NameMapper.
    "\nYou don't have the C version of NameMapper installed! "
     
  3. dlfl

    dlfl Cranky old novice

    6,997
    18
    Jul 6, 2006
    Near...
    This warning is normal and means nothing. I see no obvious problems with your config file but just to be safe add:

    beacon=255.255.255.255

    in the [Server] section.

    Your versions of TiVo software and pyTivo both seem very old. My Tivo is at version 9.2. If this is a model 649 (Series 2, Dual Tuner) and that is really your correct version then there is something inconsistent. I suspect that version may be the problem.
     
  4. greg_burns

    greg_burns Now in HD

    6,384
    0
    May 21, 2004
    Slower...
    Good catch. Perhaps this is a new setup and it hasn't updated yet. But that is really odd.

    Edit:

    Looking at his othe posts it is apparent he just got the Tivo recently. Force some connections and get this Tivo updated first!
     
  5. jcthorne

    jcthorne Active Member

    2,721
    3
    Jan 28, 2002
    Houston
    Thanks for the info. The version of ffmpeg I am currently using directly is r10464. I tried it with pyTivo and it does not work. PyTivo will not even communicate with the tivo using that version.

    Any suggestions on a version that might work in pyTivo and properly decode recent mkv files? is the version in pyTivo updated to the current one on a regular basis? Looking at the version number difference, looks like its been 9 months or more since its been updated.
     
  6. lraesly

    lraesly New Member

    11
    0
    Mar 26, 2005
    pyTivo is great. And the new metadata feature really makes this a complete video server solution for Tivo. My video files now have a complete set of content (description, title, actors and more) that display when paging through the movies on my Tivo (using pyTivo,, of course).

    I did this with a terrific program for the Mac called DVDPedia that can automate (well, with a couple of extra keystrokes) the process of creating and transferring the metadata to pyTivo for all of your DVD collection. And it is a terrific movie/dvd/tv series management program too with automatic downloads of metadata (descriptions, ratings, titles, cover art, actors, reviews, awards and more) from IMDB, Amazon and a bunch of overseas sites I've never heard of. It can export html, auto upload to .mac, even play your movie on your Mac. Check it out at here.


    A couple of notes:

    1) I am using mpg files only. If you use other file types, you will either need to change the export script or change the file extensions of the metadata files by hand.

    2) As an aside, even though I use a Mac, my server is a windows xp system.

    3) You can see the original thread here on DVDpedia's support forum. And it's great support, just check it out. But don't use the attached files unless they have been updated- they have been modified and listed below.

    4) I am using pyTivo dated around 11/22/2007. I expect that the version will change in the future which could alter it's handling of the metadata templates listed here.

    5) The scripts could be modified to be used with the Tivo Desktop Server (TDS) on the Mac (instead of pyTivo). However, TDS currently supports on title and description metadata.

    My process (with a great assist from Conor at DVDpedia):

    1) I renamed all of my movie file names on the server to equal the movie titles in DVDPedia. And the movies are in mpg format. Obviously any slashes or other special characters must be removed :),/,\,?,* and more) from the titles. Dashes are your friend...

    2) I entered all of movies into DVDPedia, using the automatic search (which worked great). Entering 150 movies took less than 30 minutes.

    3) I installed the templates (listed below) in my Users/(your user name)/Library/Application Support/DVDpedia/Templates directory.

    4) Now, open DVDpedia select the Tivo collection (create a new collection named Tivo if necessary and drag the movies to it you want to export); export using the template TivoMetaData.txt under the text section, create a folder named Export (case is important- note capital E) on your desktop to hold the files and select that as the destination for the export.

    5) Look at the name of the first movie in the collection and by hand change the name of ~/Desktop/Export/Tivo.txt file to ~/Desktop/Export/the Movie Titlempg.txt (Because the first entry is different it can't be automated).

    6) Delete the first movie from the Tivo collection (the one you just changed the file name for) and do a second export using the ChangeFileNameCommand text template.

    7)Run terminal and change directory to the Export directory on your desktop (cd ~/Desktop/Export should get you there) in terminal. Then, change the text file to an executable (sudo chown +x Tivo.txt ). Then type ./Tivo.txt to execute.

    8) Finally, copy the metadata files to the server directory where the movies are stored.

    9) Go to your Tivo, browse your pyTIvo videos directory, smile smugly at your coolness while enjoying detailed movie descriptions... or just get a beer. ;-)

    The export scripts are listed below. Note the file names in the post title. Copy and paste using your favorite text editor. Beware of TextEdit! If you do use it make certain that it is set to plain text. And the linefeeds (at the end of each line) must be linefeeds (vs. chr(13) or something else). Tivo is unix and wants a unix linefeed.

    And although this may sound a little complicated, it's not. You get the full power of DVDPedia to manage your collection and all of the metadata (well most) displayed on your Tivo. It only takes me a minute or two to completely add the metadata using this procedure.

    Best,

    Lee
     
  7. lraesly

    lraesly New Member

    11
    0
    Mar 26, 2005
    #<meta name="PageSplit" content="1" />
    <!--BeginRepeat-->title : [key:title]
    description : ([key:theatrical]) [key:rating]. [key:summary] Rated [key:rated].
    episode_title : [key:title]
    time : [key:theatrical]-01-02T01:00:00Z
    originalAirDate : [key:theatrical]-01-02T01:00:00Z
    vProgramGenre : [key:genre]
    vSeriesGenre : [key:genre]
    vExecProducer : [key:studio]
    seriesTitle : [key:title][creditsBegin]
    vActor : [credit:name][creditsEnd]
    isEpisode : false
    vDirector : [key:director]
    vWriter : [key:writer]
    vGuestStar :
    vChoreographer :
    vHost :
    sourceStation : DVD
    vProducer :
    <!--EndRepeat-->
     
  8. lraesly

    lraesly New Member

    11
    0
    Mar 26, 2005
    cd ~/Desktop/Export
    <!--BeginRepeat-->mv "Tivo[key:incrementalNumber].txt" "[key:title].mpg.txt"
    <!--EndRepeat-->
     
  9. lraesly

    lraesly New Member

    11
    0
    Mar 26, 2005
    #<meta name="PageSplit" content="1" />
    title : The Da Vinci Code
    description : (2006) 6.5/10. Symbologist Robert Langdon (Hanks) is thrown into a mysterious and bizarre murder. Alongside Langon is the victims granddaughter and cryptologist Sophie Neveu (Tautou), who with Robert discovers clues within Da Vinci's paintings. To further find the truth, Robert and Sophie travel from Paris to London, whilst crossing paths with allies and villains such as Sir Leigh Teabing (McKellen) and Silas (Bettany). Wherever their path takes them, there discovery which is about to be revealed could shake the foundations of mankind. Rated PG-13.
    episode_title : The Da Vinci Code
    time : 2006-01-02T01:00:00Z
    originalAirDate : 2006-01-02T01:00:00Z
    vProgramGenre : Drama
    vSeriesGenre : Drama
    vExecProducer : Sony Pictures
    seriesTitle : The Da Vinci Code
    vActor : Tom Hanks
    vActor : Audrey Tautou
    vActor : Ian McKellen
    vActor : Jean Reno
    vActor : Paul Bettany
    vActor : Alfred Molina
    vActor : Jürgen Prochnow
    vActor : Jean-Yves Berteloot
    vActor : Etienne Chicot
    vActor : Jean-Pierre Marielle
    vActor : Marie-Françoise Audollent
    vActor : Rita Davies
    vActor : Francesco Carnelutti
    vActor : Seth Gabel
    vActor : Shane Zaza
    isEpisode : false
    vDirector : Ron Howard
    vWriter : Akiva Goldsman, Dan Brown
    vGuestStar :
    vChoreographer :
    vHost :
    sourceStation : DVD
    vProducer :
     
  10. dionysian

    dionysian New Member

    5
    0
    Oct 31, 2007
    Thank you both for your reply i just hooked up my tivo about 3 days ago so it probably hasn't updated yet. I will do this tonight and make sure that i have the correct version of pytivo. I was a little confused as to witch version of pytivo i should get ... at the download page http://armooo.net/~armooo/pyTivo/downloads/

    There seems to be many diffrent files and i just grabbed the latest .exe set up file. Should i have done somthing else?

    Once agian thanks for the help.
     
  11. wgw

    wgw New Member

    217
    0
    May 16, 2007
    I have been using version r10464 with no problems. Also works with mkv's. You may have forgotten to replace file pthreadGC2.dll when you replaced ffmpeg_mp2.exe.

    Edit: However, r10908 does not seem to work. It says the folders are empty.

    (I had thought that pthreadGC2.dll was updated with each version but a crc check shows they are the same. no need to replace it. But be sure to restart pyTivo after upgrading ffmpeg.)
     
  12. dlfl

    dlfl Cranky old novice

    6,997
    18
    Jul 6, 2006
    Near...
    pthreadGC2.dll is available at the ffmpeg download link I gave earlier -- look in the "Parent" folder. However r8047 currently used by pyTivo already uses this so it should already be in the folder.
     
  13. dlfl

    dlfl Cranky old novice

    6,997
    18
    Jul 6, 2006
    Near...
    I would suggest one of the .zip versions, either pyTivo-208.zip or
    pyTivo-2007-11-25-master-d49819f39a81972d744a39a9eea42c63b5b455f4.zip
    The second one has the latest metadata support if that interests you.

    pyTivo doesn't need an installer other than for convenience.
    You can easily have more than one version on your PC. Just give them different folders in the C:\Program Files folder, e.g
    C:\Program folders\pyTivo208\ (and don't try to run more than one at a time, of course).
    Unzip the zip contents to that folder. Create/modify your pyTivo.conf file, create a shortcut to pyTivo.py on your desktop and you're ready to go. (I don't run it as a service so these suggestions apply to usage as a program.)
     
  14. grahamg

    grahamg New Member

    67
    0
    Aug 18, 2006
    Pasadena CA
    This has happened to me 3 times in 2 days. I have found that the hung ToDo items can't be deleted directly. The only solution that I have found is to restart the Tivo. This corrects the Todo list.
    In my case I think it's caused by my Tivo wifi glitching during download, because sometimes I get the hung ToDo filename appearing as an incomplete file in the play list. For some reason I cannot delete these incomplete's from the play list. It seems the only solution is to play the incomplete file, skip to the end and then delete it when its finished playing.

    I am using PyTivo V208, (ffmpeg r10464) - running as a service (excellent so far, except for some minor niggles)
     
  15. dlfl

    dlfl Cranky old novice

    6,997
    18
    Jul 6, 2006
    Near...
    Finally decided to try running it as a service. It (the service) will install and remove OK and shows up in the services list in my computer-->manage. But it doesn't auto start and if I try to start it manually (either in a cmd window or in the computer-->manage-->services) I get the "the service did not respond in a timely fashion" message.

    I don't use the windows installers in case that makes a difference. I've tried this with V187, V208 and V143ca........ Always the same behavior.

    Any ideas?
    Thanks
     
  16. refried

    refried New Member

    145
    0
    Dec 21, 2005
    Brunswick, ME
    I was trying to run the latest ffmpeg (r11096) because I was trying to get an m4v file on my TiVo. ffmpeg doesn't seem to be able to understand the mp4a audio stream. I also found that ffmpeg now complains if there isn't an output specified and will return non-zero. I think that will prevent pyTivo from getting any info from video_info(). Someone of the output format has changed too so the output scraping broke.
     
  17. MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    If there was only a Windows version of this...it would be awsome!

    I think this is exactly what I was talking about yesterday.
     
  18. PaulS

    PaulS Member

    674
    1
    Sep 16, 2002
    Southern NH
    Curious. I had a similar outcome trying to fire up d4981. The service would not come up, and there was no logging, despite debug being enabled in the config file. I back-revved to 143ca, used the same config file as my first attempt, and it came up with no problems at all. So, there's something funky going on in there, but I wasn't able to determine exactly what was wrong.

    Which version of pywin32 are you using, what's your installed version of Python, and how did you install them ?
     
  19. dlfl

    dlfl Cranky old novice

    6,997
    18
    Jul 6, 2006
    Near...
    Using python 2.5 and pyWin32 210. Both were installed with windows installers. The pyWin32 installer said it "found" my python 2.5 installation.

    The failure to start occurs instantly and specifying a --wait option does not have any effect. I don't have Windows or any other software firewall running. I disabled my anti-virus.

    Searching help and internet the most likely idea seems to be a service permissions problem. But I can't figure out any specific thing to try even if it is such a problem. I am the only user and have administrative privileges.

    I've had experience with other services and never had this problem.

    I've tried restarting after the service install. BTW do you know if that is usually necessary?
     
  20. PaulS

    PaulS Member

    674
    1
    Sep 16, 2002
    Southern NH
    Definitely a possibility, although probably not in your case since you've got admin priviledges.


    I haven't had to. I've always been able to install the service via cmd window, and immediately go to the services window and fire it up.
     

Share This Page