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

    Jun 19, 2002
    I'm sure I'm in the minority, but perhaps a pytivo sub-forum? Personally, I hate these type of mega-threads.
  2. dlfl

    dlfl Cranky old novice

    Jul 6, 2006
    I'm testing a development version of TVAP that automatically generates this metadata file using TivoDecode software and places it in the same folder as the video file produced by TVAP processing. It puts the correct series ID in and the pyTivo-served files do group properly in the tivo NPL. I hope an "official" versioned release of pyTivo (e.g., 209) with this feature appears soon.
  3. MT-Hand

    MT-Hand New Member

    Mar 5, 2005
    Can anyone tell me what I might be doing wrong? I'd really like to change from Tivo.NET to pyTivo, but just can't get it to work.

    Anybody? Please? :D

  4. gilbreen

    gilbreen Member

    Sep 5, 2007

    I have 3 TivoHDs and 1 S2 DT. When I play back a video on the S2 via pyTivo (the files are mpeg2 files created by a ReplayTV - 720x480 @ 29.97fps, encoded to 4,000 kbps), the files transfer fine and play back as expected.

    However, on the TivoHDs, when I select a file to transfer, the green progress bar never moves even thought the blue transfer light comes on. In addition, I can't skip around in file (meaning FF or RW). The file has to be watched straight through.

    I would like to try the above patch to see if it would fix the issue I am seeing but I am not sure where to place it. In addition, would the above file allow for my S2 to continue functioning as is. In other words, does the file above explicitly affect only S3 Tivos (hopefully, TivoHDs) and make no change to how S2s process files?

  5. Kipperman

    Kipperman New Member

    Nov 10, 2007
    Hi i am installing pytivo referencing the OS X wiki and am encountering this error:

    --->  Configuring faac
    Error: Target org.macports.configure returned: shell command "cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_faac/work/faac && aclocal -I . && autoheader && glibtoolize --automake" returned error 1
    Command output: /usr/bin/glibtoolize: line 1: cd: /usr/share/libtool: No such file or directory
    glibtoolize: cannot list files in `/usr/share/libtool'
    Error: The following dependencies failed to build: faac faad2 autoconf help2man p5-locale-gettext perl5.8 libtool m4 automake libogg libtheora libvorbis pkgconfig x264
    Error: Status 1 encountered during processing.

    Please let me know if you have any ideas on how to resolve this problem. Thanks!
  6. wmcbrine

    wmcbrine Ziphead

    Aug 2, 2003
    What does your pyTivo.conf say? I'm guessing that your ffmpeg line is wrong.
  7. schwingle

    schwingle New Member

    Nov 7, 2007
    I'm successfully running pyTivo 2.08 but with the already documented folder issues. I've moved most of my shows up to the 1 folder down position and that is survivable.

    But I noticed Armoo had several newer versions for download some with an attempted fix for folders and some for tagging. I tried the folder fix ones and none of them would run. Not sure what was happening, but the if I uninstalled the 2.08 and installed the folder fix ones, the pyTivo would look like it had run but nothing would show from my tivo, not even the share name. If I tried to run the pytivo.py from the python compiler the compiler would just go 'not responding'.

    Any ideas at all?
  8. Iluvatar

    Iluvatar New Member

    Jul 22, 2006
    it sounds as if one of the port files that specifies where faac (or a dependency) is to be installed is somehow messed up.

    I would first try:
    sudo port clean ffmpeg +lame +libogg +vorbis +theora +faac +faad +xvid +x264 +a52 +dts

    and then:

    sudo port selfupdate

    if you have already successfully installed Lame then attempt the ffmpeg install command again:

    sudo port install ffmpeg +lame +libogg +vorbis +theora +faac +faad +xvid +x264 +a52 +dts

    If that still fails then your MacPorts install may not have been configured properly. Make sure the following 3 lines are located in your ~/.bash_profile

    export PATH=/opt/local/bin:/opt/local/sbin:$PATH
    export DISPLAY=:0.0
    export EDITOR=/usr/bin/pico

    If not then it is easy to put them there. In the terminal type:

    open ./.bash_profile

    Then copy and paste those 3 lines in there. Log out the user and log back in. Then just try those first commands again from the beginning of my post.
  9. GunnerMcGrath

    GunnerMcGrath New Member

    Nov 16, 2007
    Everything's working fine when I manually run pyTivo.py but when I try to enter "pyTivoService.py --startup auto install" at the command prompt it just gives me the Usage instructions (which do, in fact, tell me that this line should work correctly).

    Is something not working properly with the service?
  10. Sicklybutsexy

    Sicklybutsexy New Member

    May 5, 2007
    I've gotten the last pytivo program posted by Armoo on 11/19 to work. For us novices you have to copy and past the text from the conf. dist. file and put in in the pyTivo conf. file. I have not gotten the series id feature, etc...to work. Does anyone know how to get started on this?

    BTW, all of the sudden my Tivo can play 16:9 files on its shabby 4:3 platform. Tivo must have sent out something to revive this ability.
  11. Kipperman

    Kipperman New Member

    Nov 10, 2007
    Thanks Iluvatar,

    For some reason I did not have a .bash_profile file. Even after I reinstalled macports.

    I followed you instructions to the letter but still no luck.

    I did find a .profile and copied it to create a .bash_profile and inserted the three lines you gave me and i think it worked.

    I installed python 2.5.1 and downloaded pytivo and now i have a new problem

    I cannot open the pyTivo.conf.dist file. i keep getting the following error

    Couldn't open "pyTivo.conf.dist".

    Again, any guidance would be appreciated. (I'm on a mac)

    ********EDIT ********

    Solved it myself. turns out just cp the .dist file and removing the extension allowed me to vi edit and make the changes i needed. now i'm up and testing.
    thanks again!!!!
  12. dlfl

    dlfl Cranky old novice

    Jul 6, 2006
    The new version of TVAP is almost ready to release. It automatically generates a couple of extra metadata items beyond what was in pyTivo 6ddab. Example:

    description : (2007)Ranging from the (etc., edited for length)
    episode_title : Pirates of the Caribbean
    series_id : SH792856
    episode_num : 32
    source_channel : 52
    source_station : HISTORY
    capture_date : 0x4744E2A0

    The extra items are in red type. "capture_date" is a hex number representing the recording date-time as the number of seconds since 1/1/1970, 12:00 am Z. It is computed by TVAP from the recording time/date field in the .TiVo metadata. Sending it as metadata allows it to be correctly displayed when you select the TTCB file in the NPL -- otherwise you get the time/date you transferred the file to your pc via TTG. Note that pyTivo doesn't require all these items to be present - so adding these two item poses no problem for users who don't want to use them.

    The proposed changes (in red type) to pyTivo files relative to version 6ddab are:


    def __metadata(self, full_path):
    description_file = full_path + '.txt'

    metadata = {
    'description' : ' ',
    'episode_title' : ' ',
    'source_channel' : ' ',
    'source_station' : ' ',
    'series_id' : ' ',
    'episode_num' : ' ',
    'capture_date' : ' '



    <Title>#echo $escape('.'.join(video['name'].split('.')[:-1])) #</Title>

    I hope version 209 with these changes can be released soon. I'm submitting an enhancement ticket to the Wiki that references this post. I looked at the Git stuff but don't have it going yet. BTW how good is the Windows version (msysGit)?
  13. Sicklybutsexy

    Sicklybutsexy New Member

    May 5, 2007
    Do you know why when I title the video with a text document that when it transfers it's called "padrun1920_12mbps"?

    How to I get the correct title on the tivo. I know it's seeing my text document because it has the "channel" I put in as well as the channel number.
  14. wgw

    wgw New Member

    May 16, 2007
    That's the TvBus beta. I don't think it's quite ready for prime time. Use the version before that (cf131) and it will also give you subfolder support by adding "auto_subshares = True" to a share in the conf. (post #995)
  15. Sicklybutsexy

    Sicklybutsexy New Member

    May 5, 2007

    Ok I downloaded the cf131 program and got it working...really cool. I guess it's only one attribue per line. Does this mean we can't make the descriptions any longer? I'd like to just cut and paste a description and add it but it gets cut off
  16. Sicklybutsexy

    Sicklybutsexy New Member

    May 5, 2007
    that's ok I fixed it. each line has to go to the end of the document or it will get cut off. if cutting and pasting just make sure the text goes towards the far right of the document
  17. mikeylikesit40

    mikeylikesit40 New Member

    Nov 28, 2006
    Rock and Roll!

    Downloaded the sub folder fix version and I'm back in business.

    Reasons to use PyTivo instead of Tivo Desktop...
    1) Higher resolution, faster than real time transcoding.
    2) Folders make it into a true multimedia server. Desktop is just too darn slow and you can't organize the view that the Tivo show.

    Thanks guys... I swear if Tivo would just hire you and provide better support for your product (make it an official product) then they would have the ability to sell their units as clients for a multimedia server with the same easy to use interface we are all used to.

    I know they lost 2 customers last year (friends) who were looking to set up a home network for media. I told them to just wait a year... Tivo will have the S3 MRV and TTG enabled, then all will be right with the world.

    They didn't listen.

    Now I got a rockin' system and they have a patchwork of expensive stuff that's not all that easy to use.

    BTW, alot of the Philips DVD players (the $50 versions) have usb ports. I was using a 300gb external Hard Drive with that until now. It plays Xvid/Divx/wmv, etc. That is a great cheap solution with the only minor drawback of having to lug the drive around the house.
  18. Sicklybutsexy

    Sicklybutsexy New Member

    May 5, 2007
    Is there a way to force pyTivo to transcode into a 4:3 format such that FFMPEG padtop and padbottom 60 with a height of 360?
  19. Iluvatar

    Iluvatar New Member

    Jul 22, 2006
    Are you looking to pad all input video sizes or just 4:3 input sizes? I've made adjustments to my transcode.py for 4:3 videos but if you add in 16:9 thats quite a bit more code to change.
  20. Sicklybutsexy

    Sicklybutsexy New Member

    May 5, 2007

    Maybe I'll just let it go then. I was hoping to pad all 16:9 input videos so that on a 4:3 tv there wouldn't be any distortion. It's kinda what videora does except this would be on the fly.

Share This Page