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

    TreborPugly Unreal!

    4,542
    0
    May 2, 2002
    Eastern TN
    For the Kid zone use, there is a tag named "KidZone Status" in the Program details for every show. I don't think just changing the "Rating" detail will do it, because the "KidZone Status" tag just doesn't exist on the stuff transfered via pyTivo. So it won't be checking the ratings, if it doesn't exist at all.
     
  2. scrappydog65

    scrappydog65 Long Time TiVo User

    29
    0
    Dec 29, 2003
    Pennington, NJ
    I recommend this as an enhancement as well.

    In the mean time, I wrote something like this for my folders as well. It's a simple change to video.py at line 63 in the __getMetadateFromTxt() function. Just add the following 3 lines into the function after the description_file = line.

    if not os.path.exists(description_file):​
    base_path, title = os.path.split(full_path)
    description_file = base_path + '\defaultMetadata.txt'​



    Mike
     
  3. MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    Sorry for posting this (there really needs to be a feature page with details about each page), but I have been using version 201 and I have been out of time for a bit. I just noticed that there is a newer version...

    I have also noticed in some posts that it now recognizes txt files that contains descriptions of the video.

    can someone please give a description of the new features, how to create this text file (do you make it manually, or is there an automatic way?), and anything else I might have missed :)

    This is great that this is so active, but there needs to be some place that keeps up with the features so new people can understand everything and they won't get over there heads so fast...

    Thanks!
     
  4. wgw

    wgw New Member

    217
    0
    May 16, 2007
    Thanks scrappy,:up: I will be populating all my subfolders with defaultMetadata files forthwith.
     
  5. scrappydog65

    scrappydog65 Long Time TiVo User

    29
    0
    Dec 29, 2003
    Pennington, NJ
    MasterCephus,

    For now the files have to be created manually, though it wouldn't surprise me if someone came up with a way to automatically build them by parsing the filename.

    Anyway , just create a text file with the same name as the video file in the same folder. The text file can have any of the attributes as described in the link below. Note that the attribute names are case sensitive (Description is not the same as description). Also, dates are in the UTC format of yyyy-mm-ddThh:nn:ssZ.
    http://www.tivocommunity.com/tivo-vb/showthread.php?p=5722528&#post5722528

    Here is an example file I have (filename=Fantastic Planet.avi.txt):
    title : Fantastic Planet
    description : La Planete Sauvage (1973) This film takes place on a faraway planet where giants rule, and tiny humanoids must fight for their lives and their equality. A metaphor of class struggles. Overdubbed in English.
    episode_title : Fantastic Planet
    time : 2007-11-21T02:00:00Z
    originalAirDate : 1973-12-01T00:00:00Z
    vProgramGenre : Animated
    vProgramGenre : Sci-Fi
    zDirector : René Laloux
    zWriter : René Laloux
    zWriter : Roland Topor ​
     
  6. BillB

    BillB New Member

    23
    0
    May 19, 2002
    I just got pytivo up and running. I am using XP Pro SP2 and Tivo Desktop 2.41a. Everything is working except when I go into the subfolder under My Movies on the Tivo S2, I get nothing. I just transferred two .mpg files for testing.

    I then put the files into the base folder on my PC and they transferred just fine and I can see them under My Movies with the same name as in the base folder. However, when I go to play them back from the Now Playing List, they both have the same name as the folder they were in on my PC. Is this the normal behavior for pytivo or am I doing something wrong? I used to use Tivo.net and even though I could not get subfolders, at least I could read the name of the episode of the TV show, ie. 24x01, 24x02, etc. I am amazed at the speed of the transfers, and I can live without the subfolders, but the name thing may not be worth the trouble.

    I am running Python 2.51 and I copied the "pyTivo-2007-11-22-master-143ca8f0247571c5bba427e9b1c652dfa1a2a891.zip" files to Program Files Pytivo folder, fixed the conf file as instructed on the Wiki site and ran pytivo.py. I get a blank DOS screen with nothing on it until I go to the Tivo and start My Movies from the Now Playing List. Then the DOS screen gets some verbage on it and I am able to transfer.

    By the way, I am not using the Plus version of Tivo Desktop and I spent 6 hours today going thru the 23 pages of this thread.

    I am a little confused as to what is meant by "share" in the way many are using it. Can anyone give me a definition as to how it is meant in the conf file?

    Very strange behavior.

    Can anyone give me a hand?

    Many thanks,

    Bill
     
  7. wgw

    wgw New Member

    217
    0
    May 16, 2007
    BillB,

    Sounds like everything is working as it should. However, due to the addition of metadata, ver.143ca has been designed to use the folder name as the title and the filename as the episode title. With this version, it works best to turn on auto_subshares, and place your recordings into subfolders having the name of the series. Turn on auto_subshares by removing the # in front of that line in your conf file.
     
  8. cedarrapidsboy

    cedarrapidsboy New Member

    5
    0
    Jan 8, 2006
    Does anyone have a valid multi-tivo configuration supporting both HD and SD content? I can't seem to get the per-tivo section to send HD-resolution to my TivoHD. If I change the global settings, it seems to work, but then the SD Tivos choke on it.

    Code:
    ##Per tivo options
    # section named _tivo_TSN with the tsn in all caps
    [_tivo_xxx]
    #If you want to use 16:9 or 4:3 on this tivo
    aspect169=true
    width=1440
    height=720
    audio_br=320K
    video_br=12Mi
    ffmpeg_prams=-vcodec mpeg2video -r 29.97 -b %(video_br)s -maxrate %(max_video_br)s -bufsize %(buff_size)s %(aspect_ratio)s -comment pyTivo.py -ac 2 -ab %(audio_br)s -ar 44100 -f vob -
    The above settings cause:

    TypeError: can't multiply sequence by non-int of type 'float'​

    Any experience from a mixed SD/HD TiVo home? I want to send 3K video_br to my SD tivos (they can't seem to keep up with anything more), and a 12M stream to my TiVoHD.
     
  9. grahamkent

    grahamkent New Member

    16
    0
    Feb 15, 2003
    Seattle, WA
    I haven't gotten it to work 100% yet, the HD videos seem to end prematurely in any builds post-201 while the SD videos work perfectly. However, I did have the same problem you are experiencing and found this solved it for me. Your experience might differ but the error sounds like the same one I was receiving.

    In \plugins\video\transcode.py, change the 'select_aspect' function from this:

    def select_aspect(inFile, tsn = ''):
    TIVO_WIDTH = config.getTivoWidth(tsn)
    TIVO_HEIGHT = config.getTivoHeight(tsn)


    To this:

    def select_aspect(inFile, tsn = ''):
    TIVO_WIDTH = config.getTivoWidth(tsn)
    TIVO_HEIGHT = config.getTivoHeight(tsn)
    TIVO_WIDTH = float(TIVO_WIDTH)
    TIVO_HEIGHT = float(TIVO_HEIGHT)


    Without the two additional lines the two TIVO_XXXX variables are of the wrong type for the arithmetic required later by pyTivo.

    Good luck.
     
  10. MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    thank you so much scrappydog65!

    I wonder how difficult it would be to manually auto create those text files (can we say oxymoron? :)). What I mean is somehow if we know the name of a show and the episode we have, I wonder if we could hit tv.com and parse through to get the information to create the text file.....

    Maybe some type of GUI that let's you choose the file you want to get the info about, specify if it's a movie or tv show, then go to the proper place and get the information. It would either succeed or not and give information on why didn't succeed (page not founds probably)...

    What do you guys think?
     
  11. BillB

    BillB New Member

    23
    0
    May 19, 2002
    wgw:
    Thank you very much. I either did not run across anything mentioning auto_subshares or overlooked it yesterday in my 6 hours of reading this thread. The thread is so techinical that my head was spinning after the read, and I am not a novice with computers. I have been testing software for about 25 years since DOS came out in 1982. However, I have limited programming experience and I am not familiar with Python.

    Again, your help is much appreciated. I am transferring the files now and it appears that they are going into a subfolder under My Movies in the NPL.

    Bill

    P.S. I just looked at the NPL after downloading the two files (24x01.mpg and 24x02.mpg) into a subfolder called 24. The same problem still occurs except I now have 2 24 listings in the NPL. It appears from this behavior that you have to create a subfolder with the name of each episode that you transfer. Is this true?
     
  12. GunnerMcGrath

    GunnerMcGrath New Member

    7
    0
    Nov 16, 2007
    Hi, I was wondering why 1920x1080 resolution is not supported? Is it expected to be added in a new version?
     
  13. scrappydog65

    scrappydog65 Long Time TiVo User

    29
    0
    Dec 29, 2003
    Pennington, NJ
    I also had to change a line in CONFIG.PY (getTivoHeight function) from
    height = int(config.get('_tivo_' + tsn, 'height_br'))
    to
    height = int(config.get('_tivo_' + tsn, 'height'))

    Miie
     
  14. dlfl

    dlfl Cranky old novice

    6,997
    18
    Jul 6, 2006
    Near...
    pyTivo Metadata Generator program. Generates metatdata files for pyTivo by using a TivoDecode com object to read the metadata from .tivo files -- thanks to FrooBrar, TiVo Decode author. Processes one or multiple files selected in a file browser.
    Just download from here and run the installer. A desktop icon is created (which you can delete if you want). Operation is self-explanatory.

    This initial version has no options. Enhanced versions with more operator options, and more metadata items, may come later. The installer is needed because the tivoDecode COM dll must be installed and registered, which is done automatically. Don't worry, it's painless and harmless!

    If you don't like the mediafire free file sharing site, please suggest a better one.

    Note: this is a Windows program and requires .NET framework 2.0 (or 3.0) installed. Most windows computers already have this but it is easily downloaded and installed from Microsoft. Just google .NET framework to find the download site.

    Enjoy!
    Edit: 16 Dec 07 -- download link changed to new version 0.32
     
  15. jcthorne

    jcthorne Active Member

    2,721
    3
    Jan 28, 2002
    Houston
    Is there some reason the ffmpeg that is included with the pytivo install has difficulty with h264 encoded mkv files where the current version from the mplayer site does not? Pytivo is giving a long string of decode errors 'Error while decoding stream #0.0, [h264 @ 009C3820]AVC: nal size xxxxxxxxxxxx"

    Feeding the same mkv file to the newer version results in no errors and recodes fine.

    Can pytivo use the latest version instead of the one distributed or is there something custom about that one?
     
  16. dionysian

    dionysian New Member

    5
    0
    Oct 31, 2007
    It seems as though the install went ok on my pc, but now the video just seems to be stuck in my todo list on the tivo and is not transfering. It simply says "This program will be transferred after previously requested programs have finished transferring"...... What previosly requested programs is the tivo talking about.... ? Is it going to wait untill my season pass of southpark and the daily show going to expire due to the cancelation of the show? Or is it going to transfer just randomly when it feels like it to supprise me?


    Sorry if this issue has been address before but i dont have to patiants to parse through every post on the pytivo form.

    Thank you in advance.
     
  17. dlfl

    dlfl Cranky old novice

    6,997
    18
    Jul 6, 2006
    Near...
    This format and container are kind of leading edge so it wouldn't be surprising if support for it in ffmpeg is variable with versions. The easiest way to find out whether a given version will work with pyTivo is just to download it, rename to ffmpeg_mp2.exe and replace the distributed version. Which version is in your mplayer install? (Open a command window, log to the folder containing ffmpeg and enter ffmpeg -i dud.)

    Here is a site where you can download many of the recent versions compiled for Windows. The one distributed with pyTivo is r8047. These are distributed in 7zip format so you need 7zip installed on your computer. It's a solid harmless utility so just download it here and install it.

    Also for the "official" documentation go to the ffmpeg web site. In the general documentation section it lists file formats and codecs that are supported. According to that, MKV is supported for both encoding and decoding while H264 is supported for decoding only. Thus if you get a recent version it should handle your files. However, pyTivo processes some of the text information that ffmpeg spits out and some versions of ffmpeg have changed the formatting of that enough to break pyTivo.

    Bottom line: just try it.
     
  18. dlfl

    dlfl Cranky old novice

    6,997
    18
    Jul 6, 2006
    Near...
    This shouldn't be happening but OP have experienced it. You need to clear it by removing the ToDo item corresponding to the hung transfer. Then go back to live video and then re-enter the TiVo menu (e.g. NPL or ToDo). I don't know exactly what causes this -- maybe someone else can help.

    If you continue to have problems, post your entire pyTivo.conf file contents. Also post the version # of pyTivo and your TiVo model and computer type.
     
  19. reneg

    reneg Member

    699
    0
    Jun 19, 2002
    With such dynamically changing programs, hopefully when the metadata features have stabilized, will there be a release that is somewhat synced and current for the non-technical crowd.
     
  20. mulscully

    mulscully Member

    321
    0
    May 31, 2003
    Malvern, Pa
    Not too familiar with python, but I get that the : is the start of a block for the if, but is description_file = base_path + '\defaultMetadata.txt' supposed to be part of that block also?

    maybe you can post your lines from your video.py file with a few of the original line above and below your modification.. to help us see exacly how it is inserted...

    Thanks
     

Share This Page