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. Oct 29, 2007 #821 of 5682
    wgw

    wgw New Member

    217
    0
    May 16, 2007
    I'm hoping someone has time to develop a new version of pyTivo called pyHDtivo.

    The limited testing I did seems to indicate that the maximum safe video bitrate HD capable tivo's can handle is 16mbps and maximum safe audio rate is 384kbps.

    I'd like to have a pyHDtivo server that checks the video and audio bitrates of the source files and only transcodes mpg files if the bitrates are above 17mbps and 448kbps for video and audio respectively. If the bitrates are at or below these levels, it should pass the file untouched.

    For other types of video files that have to be transcoded no matter what, pyHDtivo should check the video bitrate of the source and use a transcoding bitrate that matches the source rather than use a predetermined bitrate.

    Since this will result in the occasional mpg that gets passed but will not play on the tivo for whatever reason, a subfolder can be created where the recordings are stored called "force_transcode". The user could then place non-compatible videos in this folder to tell pyHDtivo that you want the video transcoded.

    I suppose a quick fix alternative to making pytivo check bitrates might be to create serveral subfolders within the tivo recordings folder using bitrate as the folder name. For example

    \\tivo_recordings\4096\video1.mpg
    \\tivo_recordings\8192\video2.mpg
    \\tivo_recordings\16384\video3.mpg

    or

    \\tivo_recordings\1080p\video1.mpg
    \\tivo_recordings\720p\video2.mpg
    \\tivo_recordings\480p\video3.mpg


    Then modify the config files to make pytivo obtain the desired bitrate and/or resolution from the folder name instead on using one preset value for all transcoding. This way we could put our videos in whichever folder best defines the bitrate we want to use for transcoding. MPEGValidator could be used to analyze the mpeg stream and then we could drop the video in the folder thats closest to the current bitrate.
     
  2. Oct 29, 2007 #822 of 5682
    wgw

    wgw New Member

    217
    0
    May 16, 2007
    Using a different port works. I made a copy of my entire pytivo folder and all subfolders. Then changed the port in pytivo.conf as well as the NPL folder name setting. I also pointed it to a different folder on my hard to find files.

    However, only one of the 2 pytivo servers shows up in the NPL at a time. But if you stay at the bottom of the NPL and wait 15 seconds for the screen to refresh, the other server name appears. They alternate every 15 seconds.

    I need the second config because I'm thinking about trying to hack apart the config files and setup the pyHDtivo server I mentioned above.
     
  3. Oct 29, 2007 #823 of 5682
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    For those of you trying to run two pyTiVo services at once.

    I did a little digging this morning and found that the GUID of the server is set in beacon.py. From looking at the code, it appears that it looks for a GUID setting in the [Server] section of the pyTivo.conf file. If it doesn't find one, it defaults to 123456.

    I haven't tried this yet myself, but wgw, try adding a 'GUID=654321' statement to one of your pyTivo.conf files and see if that allows both servers to be seen at once. (Or you can just edit your second beacon.py file and change the hardcoded guid='123456' line).
     
  4. Oct 29, 2007 #824 of 5682
    MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    I put this on my PC and run the pyTivo.py and I have two shares:
    C:\movies --which only has xVid files, works perfectly

    C:\TV --which has subfolders (multiple in some), all show 0 files

    So when I go into the TV folder, I basically get into a loop where if I choose a subfolder, it just shows me the subfolder that I am in, but remembers how many levels deep I am in the subfolders. It's really weird.

    Does pyTivo have a problem with subfolders?
     
  5. Oct 29, 2007 #825 of 5682
    TreborPugly

    TreborPugly Unreal!

    4,542
    0
    May 2, 2002
    Eastern TN
    If you look back through the thread, you'll see that the TiVo software has a problem with subfolders. When this first appeared, some work-arounds were coded, but evidently the new Tivo software breaks those work-arounds.
     
  6. Oct 29, 2007 #826 of 5682
    MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    Ok I see.


    Is this application actively updated?
     
  7. Oct 29, 2007 #827 of 5682
    Q2112

    Q2112 New Member

    24
    0
    Sep 12, 2006
    pytivo.py works fine but pytivoservice.py does not.

    pytivoservice.py starts and stays running but my video folders defined in the config file do not appear on the TIVO.

    any ideas?

    I am using version 200.

    ###########

    Ok, I'm not sure what I did but using the pytivo service is now working.
     
  8. Oct 29, 2007 #828 of 5682
    ScottE

    ScottE New Member

    22
    0
    Oct 15, 2001
    San Diego,...
    After some experimentation yesterday, ffmpeg seems to be working perfectly for me. The issue we were all seeing is that ffmpeg can DRAMATICALLY overshoot the target bitrate when there's a change in scene complexity. Clamping the max bitrate seems to make the glitches go away.

    For ffmpeg, this means adding "-maxbitrate 17M -bufsize=1024k". 17M was found experimentally (but seems to match what others have found), and the 1024k buffer size is just a swag. I'm sure there is a more optimal setting.

    Using those two additions, the three videos I have which are historically problematic seem to work without issue.
     
  9. Oct 29, 2007 #829 of 5682
    MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    I am having the same problem. I will try to set the debug.txt and look what the problem is and post what I see when I get home tonight.
     
  10. Oct 29, 2007 #830 of 5682
    mr2828

    mr2828 New Member

    43
    0
    Jun 18, 2007
    That sounds sweeeeet. I will try it on my test clip and report back later.

    edit: note the correct option is "maxrate"
     
  11. Oct 29, 2007 #831 of 5682
    mr2828

    mr2828 New Member

    43
    0
    Jun 18, 2007
    That seems to have solved it - excellent! Since I have two completely separate pyTivo dirs, with different configs, I just hardcoded the different GUID into the beacon.py file.
     
  12. Oct 29, 2007 #832 of 5682
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    Excellent! Every now and then I do actually manage to answer a question. :cool:
     
  13. Oct 29, 2007 #833 of 5682
    Terabull

    Terabull New Member

    12
    0
    May 1, 2007
    If I missed this in an earlier post I apologize.
    I used DVD Shrink, no compression just output a straight VOB.
    Renamed to mpg and Tivo Desktop has no problem with it.
    So why doesn't pyTivo recognize the file?
     
  14. Oct 29, 2007 #834 of 5682
    wgw

    wgw New Member

    217
    0
    May 16, 2007
    Thanks Windracer! That did the trick. I changed Guid to 123457 and now both pytivo servers show up at the same time.
     
  15. Oct 30, 2007 #835 of 5682
    mr2828

    mr2828 New Member

    43
    0
    Jun 18, 2007
    Test 720p file seems to now transcode and play perfectly. ScottE rocks!

    I hope the pyTivo author at some point does an "HD" update to the codebase.

    One thing I would like would be to configure it all to run at BELOW NORMAL priority in windows.
     
  16. Oct 30, 2007 #836 of 5682
    Q2112

    Q2112 New Member

    24
    0
    Sep 12, 2006
    How do you get DVD shrink to output a single VOB file?
     
  17. Oct 30, 2007 #837 of 5682
    Carl Edman

    Carl Edman New Member

    16
    1
    May 14, 2007
    Same results here. Without -maxrate, there were consistent audio/video problems. With it, they all disappeared.

    Excellent work! This definitely belongs in the official pyTivo.
     
  18. Oct 30, 2007 #838 of 5682
    cwbaker

    cwbaker New Member

    55
    0
    Aug 5, 2002
    Does anyone have any troubleshhoting tips for pyTivo? I simply cannot get it to work. See my original message quoted above for details. I've rebooted both boxes. Do not know where to go from here.
     
  19. Oct 30, 2007 #839 of 5682
    MasterCephus

    MasterCephus New Member

    309
    0
    Jan 2, 2005
    Hueytown,...
    I was playing around last night and I got this problem to...

    I just downloaded the zipped version of pyTivo and pointed the ffmpeg link to what was in the \plugin\video\ directory. This caused the same problem you are having.

    What I did was I got another version of ffmpeg from somewhere (I think it was a link from videohelp (link here). Once I pointed to this again, it started working properly

    It might not help for you, but got me going again.
     
  20. Oct 30, 2007 #840 of 5682
    gilbreen

    gilbreen Member

    68
    0
    Sep 5, 2007
    I am just joining the Tivo crowd (migrating from ReplayTVs). One of the things that we use alot with our RTVs was a program called DVArchive, a freeware program that lets one offload shows to one's PC and them stream them back to the ReplayTV.

    As a result, we have a good number of shows on our PC that we still want to access. My initial thought was to keep one ReplayTV around but then I ran across pyTivo.

    I have installed pyTivo on the same PC mentioned above. I have pointed the config file to the folders that contain the ReplayTV mpeg files. On the Tivo, I can see each folder and am able to access the files, transfer them and watch them

    My question is this. When I transfer the shows, the green timeline bar (not sure of the real name) stays at 0 (zero). In addition, I can't jump around the show using the FF or RW skip buttons.

    Is this normal behavior? If not, is there something else that I must do in order to be able to navigate in the show?

    I hope I can sort it out because if I can, then our final ReplayTV's days may be numbered.
     

Share This Page