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

    MacerX New Member

    30
    0
    Nov 9, 2007
    Pittsburgh, PA
    dlfl, wmcbrine,

    Thanks for your help and suggestions.

    Turns out that my pyTivo.conf file was a mess. I made several changes and pyTivo is running as expected now.

    I could use some system implementation suggestions given your experiences.

    There are two performance bottlenecks that I have come across in my configuration. A) Tivo network bandwidth. B) My Server ffmpeg transcode rate.

    Regarding A)Tivo network bandwidth; my S2's network bandwidth is sufficient to playback 544x480 video from the server in real-time with virtually no latency from program selection to playback on the Tivo and the video looks beautiful, so this is only really an issue on my S3 where I want no latency HD video playback. If my goal is to achieve higher quality video transfer with no latency from program selection to playback on the HD Tivo, it would seem that a higher video compression option taking advantage of the S3's ability to decode MPEG4 and maybe even h.264 may be the solution. 1) Is there a way to do this with ffmpeg and pyTivo directly assuming I have sufficient processing to transcode in real-time, or 2) pre-process the HD content to a higher compression format to be streamed by pyTivo to the S3 for decode?

    Regarding B)Server Transcode Rate; 1) are there any hardware acceleration transcode options for ffmpeg, or 2) the ability to use an alternate CLI Transcoder that does have HW transcode acceleration with pyTivo integration?

    Background: I read about ATI AVIVO MP4 and h.264 ENCODE hardware acceleration on X1300+ video cards, but have not actually tried this since my server has an nvidia 7600GT card right now. The nvidia cards only support DECODE acceleration right now as far as I can tell.

    Also what kind of transcode performance improvements do people see running -Threads 2 on dual core processors? Anyone with a quad core, is -Threads 4 supported by ffmpeg?

    I may build a new server if I can get everything running as I woud like. Quad-core with + ATI encode acceration seems like Nirvana???:D

    Thank you,
    DB
     
  2. Proxima

    Proxima New Member

    9
    0
    Dec 3, 2005
    I didn't want to publish my TSN - so yes I have the actual one on my computer.

    My version is 208.

    I'll upgrade and try 544 resolution when I get home from work

    I've tried WMV, MPG, and MOV

    Thanks for the help
     
  3. willp2

    willp2 Member

    88
    0
    Sep 15, 2007
    Hello, I did try searching for this first, but have come up empty. I just setup pyTivo to transfer to my TivoHD. I am successfully able to connect to pyTivo and transfer files to the Tivo which is fantastic.

    When the videos are transferred to the Tivo, they are stored in a group called “movies”. Unfortunately each show seems to drop into a separate group with the same name. So at the moment I have 3 separate “movies” groups for each of the shows I’ve transferred.

    Is there a way to control this behavior?

    Thanks!
     
  4. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    At present, the S3's ability to decode MPEG4 is purely theoretical. TTBOMK, no one has made this work yet. I don't think Tivo, Inc. has enabled software support for the MPEG4 hardware they've built in.
     
  5. PaulS

    PaulS Member

    674
    1
    Sep 16, 2002
    Southern NH
    I think dlfl's one-line patch may fix this : LINK
     
  6. willp2

    willp2 Member

    88
    0
    Sep 15, 2007
    I'm trying it now, but that looks like it did the trick.

    Thanks!
     
  7. pesto126

    pesto126 New Member

    16
    0
    Dec 15, 2007
    Any help or ideas for this question? Trying to group subdirs under a main dir and just want to see the subdirs under the main on the NPL.. so:

    NPL
    --> Movies
    --> Disney (1)
    --> Lion King.avi
    --> Dora (1)
    --> Dora - Ice Cream.avi

    Right now.. I get
    NPL
    --> Movies
    --> Disney (0)
    --> Lion King.avi
    --> Dora (0)
    --> Dora - Ice Cream.avi
    --> Lion King.avi
    --> Ice Cream

    So, I get all the subdirs and movies from those subdirs in the main Dir.. I only want to see the subdirs and not all the content in the main dir. Also, the file count next to the subdir is always 0 even though I have movies in there. Thx.

     
  8. PaulS

    PaulS Member

    674
    1
    Sep 16, 2002
    Southern NH
    Subfolders are busted. There has been plenty of discussion on this thread about it. Bottom line, it's busted on the TiVo side of things, and there isn't anything pyTivo can do to fix it at the moment.

    The best option available right now is specify a top-level folder, and set "auto_subshares=true". This will share all of the folders that are ONE level beneath the main share. You can not navigate any deeper in the directory tree.

    For the given example below, you could do this with a small configuration change :

    Code:
    [Movies]
    type=video
    path=c:\Movies
    auto_subshares=true
    This would present the following in your NPL :

    Movies-Disney (folder contains LionKing.avi)
    Movies-Dora (folder contains IceCream.avi)
    Movies (any FILES that are in c:\Movies will be seen here)


     
  9. willdolla

    willdolla New Member

    1
    0
    Feb 1, 2007
    cannot edit the pytivo.conf.dist file how do u edit it it says windows cannot edit it
     
  10. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    First of all, you don't. pyTivo.conf.dist is just an example file. You should be working on pyTivo.conf. You can copy or rename pyTivo.conf.dist to that, although I'd recommend starting fresh.

    Secondly, it's just a text file. You edit it like any text file. Just don't save it with a ".txt" extension, or pyTivo won't find it. Or you can use pyTivoConfigurator.py, but that doesn't give you full control.
     
  11. Enrique

    Enrique Active Member

    5,066
    4
    May 15, 2006
    I am running pyTivo_182_setup.exe, But I see there is a update for PyTivo on 09-Dec-2007 but no .exe yet is there going to be one? If not how do I upgrade Pytivo?
     
  12. PaulS

    PaulS Member

    674
    1
    Sep 16, 2002
    Southern NH
    Probably won't be an .exe, but you never know what armooo might throw out there for us to play with.

    Download the latest version, and unzip it. Set up your pytivo.conf file, and then follow the instructions in the README file about how to install it as a Windows service.

    Here is my current pytivo.conf file, for use with my Series3 :

    Code:
    [Server]
    Port=9044
    GUID=314257
    debug=true
    aspect169=true
    audio_br=384K
    ffmpeg=j:\pyTivo-2007-12-09\ffmpeg.11143\ffmpeg_mp2.exe
    ffmpeg_prams=-vcodec mpeg2video -maxrate 17Mi -qscale 1.2 -async 48000 -bufsize 1024k -comment pyTivo.py -acodec ac3 -ab %(audio_br)s -ar 48000 -f vob -
    
    [Videos]
    type=video
    path=c:\Videos
    auto_subshares=true
    

    Your pytivo.conf file will be different if you're using it with a Series2. Probably something more like this :

    Code:
    [Server]
    Port=9044
    GUID=314257
    debug=true
    audio_br=192K
    video_br=5Mi
    width=544
    height=480
    ffmpeg=j:\pyTivo-2007-12-09\ffmpeg.11143\ffmpeg_mp2.exe
    
    [Videos]
    type=video
    path=c:\Videos
    auto_subshares=true
    

    Make sure you use paths that are correct for YOUR installation.
     
  13. Proxima

    Proxima New Member

    9
    0
    Dec 3, 2005
    OK
    Still failed...and now groups all into "videos" on my playing now. NO DEBUG.TXT file was created.

    version d4219......
     
  14. dlfl

    dlfl Cranky old novice

    7,002
    19
    Jul 6, 2006
    Near...
    Proxima:
    Did you look in c:\pyTivo for the debug.txt file? Don't see how it could not be there.
    I looks like you were sending a mpeg2 that was just being transferred, not transcoded, because pyTivo thought it was TiVo-compatible. And it looks like the TiVo dumped the network socket. Did some of the file transfer or did it stop immediately?

    What model number is your TiVo (does it start with 240, 540, 649 or ?).

    Put "Easter at Franks.mpg" into the ffmpeg folder, start a command window logged to that folder, and enter

    ffmpeg_mp2 -i "Easter at Franks.mpg"

    Post a copy of the output that appears. Parsing this output is how pyTiVo gets info. If for some reason the correct duration isn't being detected by ffmpeg, that might explain your problems.

    Do you have Desktop? If so are you able to transfer files to the TiVo using it?
     
  15. Sicklybutsexy

    Sicklybutsexy New Member

    179
    0
    May 5, 2007
    Just wanted to give a 'shout-out' to all who have worked on this project. The new metagenerator is awesome. I do have a question about grouping. I have two shows both with the same series ID but when I transfer them over to the Tivo they don't group in a folder? I thought they should. Another one (sorry for being naive) what is the best way to find a "line" when editing a file in pyTivo, such as line 141---I'm thinking notepad is not the way to go? thanks.
     
  16. PaulS

    PaulS Member

    674
    1
    Sep 16, 2002
    Southern NH
    At home, I use Notepad++ as a text editor. It will display what line number you're on, or you can go directly to a line number.
     
  17. dlfl

    dlfl Cranky old novice

    7,002
    19
    Jul 6, 2006
    Near...
    Notepad will find a line number (with ctrl-G) IF you don't have word wrap turned on.
    BUT notepad isn't good for editing pyTivo source files because they have Linux style line endings which Notepad doesn't handle correctly.

    Wordpad handles the pyTivo files OK BUT it doesn't have a line number finding feature that I can see.

    I'm trying a free "notepad-replacement" text editor called *** Metapad *** . It finds line numbers with Ctrl-G and works whether word-wrap is on or not, and handles the Linux line endings.

    Metapad supposedly can be installed so it completely replaces Notepad but I am not recommending that. You can also just unzip the contents of the distribution file into any folder (e.g. c:\program files\metapad\). Then you can point a desktop shortcut to metapad.exe and/or right click on any text file and select Open With then browse to metapad.exe. After doing that once, the next time you right click on a text file and select open with, MetaPad will be offered as a menu selection. (You can also make it the default text editor if you wish, so text files will open in metaPad just by double-clicking.)
     
  18. Proxima

    Proxima New Member

    9
    0
    Dec 3, 2005
    Yes I do have desktop...it failed too...hmmmm.
    Any way
    Tivo model starts with 540
     
  19. dlfl

    dlfl Cranky old novice

    7,002
    19
    Jul 6, 2006
    Near...
    First, no insult intended but you do have grouping turned on in your NPL, correct? This toggles with the "2" numeric key on the peanut when you are viewing NPL.

    Beyond that, my impression is that we don't fully understand the exact conditions that must be met for grouping. We pretty well know that identical seriesID is necessary but it's not clear that it's sufficient. (??)

    If an OP believes they know the rules, please post!
     
  20. Sicklybutsexy

    Sicklybutsexy New Member

    179
    0
    May 5, 2007

    No insult taken. But yes, I do have grouping enabled as all my other shows that were recorded with the tivo are in their appropriate folders. Maybe it's just that particular show. dlfl, you don't know the best way to edit pyTivo by line do you? thanks.
     

Share This Page