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

    m_jonis Member

    625
    0
    Jan 3, 2002
    Albany, NY
    I think his point (and I'm seeing this too) is that those instructions you reference tell you to download python (they give you a link), and if you go to that link, you will download Python 2.7

    Those same instructions on Scott's site then have you download the "installer" version of PyTivo which apparently only detects or works with Python 2.4-2.6 and nothing else.

    At least I cannot seem to find a newer "installer" version so it seems will have to back-rev Python to 2.6.x in order to follow Scott's instructions.
     
  2. wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    gedaso, it sounds like it's your IP address that's blocked. Presumably you're using an IP that was previously used by a spammer.
     
  3. m_jonis

    m_jonis Member

    625
    0
    Jan 3, 2002
    Albany, NY
    I just finished setting up PyTivo (mcbrine version) on Windows XP SP3 Pro.

    Here's what's strange:

    I run the console version for debugging. It (the pyTivo server) sees my 4 Tivo's. My Series2 DT Tivos see the: My Videos folder in the NPL, along with the one video I put into said folder.

    But none of my Tivo HD (two of them) see the My Videos folder in the NPL.

    ????

    A few other questions/observations:
    Cannot seem to use Python 2.7 as per Scott's website (you have to use 2.6.x and then the installer and then upgrade).

    For some strange reason the PyTivo SERVICE doesn't work with mapped drives. Not referring to UNC path access, but I mean you have logged into the windows OS, manually mapped a drive, and then start the PyTivo service. Perhaps it's a python issue as we do this all the time with our Windows servers at work and none of the "local system" services seem to have a problem accessing mapped drives (provided we have already authenticated). But for now, I can live with the console version.

    Just puzzled as to why only the TivoHD units cannot see the My Videos (I don't even see the browsing request on the console when the TivoHD tries to look for it. But the Series2 DT units DO show up).
     
  4. Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    Yeah, for some reason the mechanics behind the pyTivo service in the Windows installer won't recognize mapped drives. You have to use a UNC path AND set the service to login with credentials that allow access to the UNC path as well as login to the local system. I'd imagine it has to do with old APIs, but I've never really looked at it very hard.
     
  5. m_jonis

    m_jonis Member

    625
    0
    Jan 3, 2002
    Albany, NY
    Thanks for the info.

    So I've narrowed down the symptom with the My Videos folder, but not sure why. It seems that after a fresh install, any Tivo I go to will see the folder, but the minute one of them accesses it (I go into the "My Videos" folder to see the one .mpg file), once I exit out, then none of my Tivos will see that folder again.

    Almost as if the PyTivo server is a "use once". Which is quite bizarre.

    Is PyTivo normally this flakey? I mean the default config seems fairly obvious.
     
  6. Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    Make sure you have the UDP 5353 firewall rule allowing outbound AND inbound.

    Also, some home routers are known to do funny things to the multicast DNS beaconing. On some Linksys models, the switch to enable multicast really means disable it. Some have reversed the setting in their router to get Tivo discovery working stably. However, if your router is the problem, it also affects MRV discovery between the Tivos themselves.

    Power cycling your network equipment and the Tivos to clear all the ARP tables and get the speed negotiation right also doesn't hurt if you think you've got everything else set right.
     
  7. Oct 2, 2010 #2927 of 5684
    rassi

    rassi Member

    135
    0
    Jul 18, 2003
    NE Ohio
    I have been a long-time user of PyTiVo - probably 3 yrs or so.... Just in the last week or so transfers from my PC to our HDTiVo have become horribly slow. It might take 8 hrs now to transfer a 24 min sitcom.

    I have tried rebooting both the TiVo and the PC. I've also tried uninstalling Python and pyTiVo and reinstalling them. Sadly, there is still no joy in mudville. We used to be able to transfer most shows and watch them real-time. Now that's impossible.

    What do we need to do to figure out what the problem is???
     
  8. Oct 2, 2010 #2928 of 5684
    m_jonis

    m_jonis Member

    625
    0
    Jan 3, 2002
    Albany, NY
    Well got it to work by simply shutting off the windows XP firewall. Not sure why it would work once with the firewall and then not again (every time you stop/start the PyTivo service it would work once). Especially since the port for the firewall was in the firewall exceptions. If memory serves, the XP firewall doesn't actually block inbound traffic, it's the outbound stuff.

    But whatever it's going now so that's all that matters.
     
  9. Oct 2, 2010 #2929 of 5684
    wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    I would guess that this is a network problem. Wired or wireless?

    Try pinging the TiVo from the PC.
     
  10. Oct 6, 2010 #2930 of 5684
    Phantom Gremlin

    Phantom Gremlin New Member

    1,555
    0
    Jun 20, 2002
    Tualatin,...
    Also, try power cycling all other equipment (such as Ethernet switches, wireless access points, etc). Don't just focus on the PC and TiVo. There are (unfortunately) many other failure points. E.g. I have an Apple Extreme Base Station wireless access point which is normally very reliable. But about 2x a year the network access from one computer connected wirelessly becomes very slow. Rebooting the computer doesn't help, but power cycling the access point fixes the problem.
     
  11. seths17

    seths17 New Member

    4
    0
    Jan 8, 2006
    wmcbrine (or other pytivo super users): Help please!

    Long time lurker and pytivo user.

    Have recently been running into trouble transferring (pulling from the TiVo interface) .ts files. Most of these are sporting events. I can usually get one half of the game (in one .ts file) to transfer no problems. The other half I only get a partial transfer. The first several minutes of the partial transfer looks and sounds great. The partial transfers never make it beyond 3-7 minutes.

    This has happened quite a lot all with .ts files. MKVs seem to be (and have always been) fine.

    Any help would be appreciated. I'm dying to watch this match.

    My simple (2 line) metadata file looks like this:

    Override_aKbps : 2048
    Override_aCodec: wma

    The .ts files are typically ~2GB each, h.264, AC3 audio (typically), 720p
    I'm on a Windows Vista system, TiVo is Series 3

    Thanks in advance!
     
  12. metronomadic

    metronomadic New Member

    6
    0
    Feb 9, 2009
    I've been trying to sort out how to push mpeg-4 videos from my NAS to my TiVo, and I'm about at my wit's end. I hope that someone might be able to help me move in the right direction!

    I believe I'm running the latest wmcbrine, 2010-08-08. Here's my python info, I think...

    Code:
    python -i
    Python 2.5.2 (r252:60911, Jan 24 2010, 21:03:09) 
    [GCC 4.3.2] on linux2
    I've done my best at building ffmpeg, and am getting at least 1 error that looks weird when getting info on the video that I want to push - "Seems stream 0 codec frame rate differs from container frame rate: 30000.00 (30000/1) -> 29.97 (30000/1001)" - full ffmpeg -i below...

    Code:
    ./ffmpeg -i /path/to/Ratatouille.mp4
    FFmpeg version 0.6, Copyright (c) 2000-2010 the FFmpeg developers
      built on Oct 26 2010 08:30:40 with gcc 4.3.2
      configuration: --prefix=/ffmpeg --enable-gpl
      libavutil     50.15. 1 / 50.15. 1
      libavcodec    52.72. 2 / 52.72. 2
      libavformat   52.64. 2 / 52.64. 2
      libavdevice   52. 2. 0 / 52. 2. 0
      libswscale     0.11. 0 /  0.11. 0
    
    Seems stream 0 codec frame rate differs from container frame rate: 30000.00 (30000/1) -> 29.97 (30000/1001)
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/path/to/Ratatouille.mp4':
      Metadata:
        major_brand     : isom
        minor_version   : 512
        compatible_brands: isomiso2mp41
        title           : Ratatouille
        encoder         : DigiArty AV Encoder Core
        comment         : Remy is a young rat...
        show            : Ratatouille
        date            : 2007
      Duration: 01:51:03.50, start: 0.000000, bitrate: 1837 kb/s
        Stream #0.0(und): Video: mpeg4, yuv420p, 720x404 [PAR 1:1 DAR 180:101], 1667 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc
        Stream #0.1(und): Audio: aac, 48000 Hz, stereo, s16, 165 kb/s
    At least one output file must be specified
    When I tried to push the video via the web interface I also got the following, which I think means it's trying to convert the video on my NAS, right?

    Code:
    Output #0, vob, to 'pipe:':
      Metadata:
        encoder         : Lavf52.64.2
        Stream #0.0(und): Video: mpeg2video, yuv420p, 720x404 [PAR 1:1 DAR 180:101], q=2-31, 16384 kb/s, 90k tbn, 29.97 tbc
        Stream #0.1(und): Audio: ac3, 48000 Hz, stereo, s16, 448 kb/s
    Stream mapping:
      Stream #0.0 -> #0.0
      Stream #0.1 -> #0.1
    Press [q] to stop encoding
    So, there's my situation, in a nutshell. If I've left anything important out, please forgive me, as it's getting late here in California. Thanks for any help you can provide! -m
     
  13. wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    seths17: Well, you could try overriding the vCodec as well. The video should be reencoded anyway on a pull if it's h.264, but since you only describe this as "typical", perhaps you have some problematic MPEG-2 video that's being passed through?

    An alternative might be to remux these files to MP4 and push them. (Get rid of the overrides in that case!)

    Or, perhaps try a different (newer?) version of ffmpeg.

    metronomadic: You left out the actual problem. :) Does it not get transferred? Or do you just want to get it transferred without transcoding? (I imagine the NAS is very slow at that.) If it's the latter, your problem is that the video codec is reported as "mpeg4" rather than "h264". Only h264, mpeg2video, mpeg1video and vc1 can be pushed without transcoding.
     
  14. seths17

    seths17 New Member

    4
    0
    Jan 8, 2006
    wmcbine - Thanks for the help.

    I need a little hand-holding here as I've been pretty hands-off with pytivo since it has worked so nicely until now...

    1) what exactly should my entry look like for the suggested override vCodec metadata line?
    2) Where can I get a newer or different ffmpeg (I have been using the latest: ffmpeg-SVN-r21659-rdian06-1.02-win-x86_32.zip) ?
    3) If I need to provide a log to get to the bottom of this issue (which as I've mentioned seems only to occur with .ts files as of recent), how do I do that?
    4) Would I potentially have any better luck using something like StreamBaby (which I can't get to show in my TiVo menu appropriate - I'll post that inquiry in the right thread if this is an option to overcome the issue)...

    PS - I also tried pushing the file via the pytivo web interface (no metadata file) and it failed to fully transfer (got a partial transfer stopped at the exact same place when pulling at 3 minutes in...)

    Here are the details of the file I am attempting to get to TiVo (push or pull) via pytivo:

    Format : MPEG-TS
    Size: ~4.5 GB (~2.2GB per half)
    Video
    Bit rate : 6000kps
    Width : 1 280 pixels
    Height : 720 pixels
    Display aspect ratio : 16/9
    Frame rate : 59.940 fps
    Scan type : Progressive
    Audio
    Format : AC-3
    Bit rate mode : Constant
    Bit rate : 384 Kbps
    Channel(s) : 5.1 channels

    Thanks for all of the help. Still waiting to watch the first half...
     
  15. metronomadic

    metronomadic New Member

    6
    0
    Feb 9, 2009
    I knew that I was forgetting something! It's the latter - I want it to get transferred without transcoding. Thanks for catching that for me, I'll give it another shot at encoding, and I hope that'll solve it for me.
     
  16. wmcbrine

    wmcbrine Ziphead

    10,368
    22
    Aug 2, 2003
    seths17:

    1. "Override_vCodec: foo". It doesn't matter what the codec is, as long as it's not one of the ones that can be passed through without transcoding.

    2. I dunno; maybe here?

    3. I don't think a log will be needed. Either the override line will work, indicating that it was bad MPEG-2 data; or it won't, and changing ffmpeg or separate remuxing would be your only remedies.

    4. I can't see why Streambaby would handle it any better, but who knows? Note that Streambaby should appear in the "Music, Photos, & Showcases" menu (or "Showcases & extras" in the Premiere's HDUI), not the NPL.
     
  17. Dec 3, 2010 #2937 of 5684
    NYHeel

    NYHeel Active Member

    1,906
    12
    Oct 7, 2003
    I'm having an issue with Pytivo (on a windows 7 32bit laptop) and my new premieres. I'm trying to transfer back HD shows that were pulled off of a Tivo (and decrypted) via kmttg. Transferring to a TivoHD works fine, everything looks nice and HD, but to a Premiere, it gets changed to SD. I'm using pytivo on my windows laptop. I just updated to wmcbrine's most recent fork (10/31 I believe) by extracting the zip over the existing pytivo directory. I restarted my laptop and premiere and it still transfers in SD to my Premiere. It sees the file as HD but thinks it needs to be reencoded to SD. It probably has something to do with pytivo not recognizing that the Premiere is HD capable but I'm not sure what else to do beyond what I've done. Any thoughts on this?

    In the interest of full disclosure, I posted this in the Premiere forum but just realized that I probably should have posted it here. So sorry for the double post.
     
  18. Dec 3, 2010 #2938 of 5684
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    Sounds like you didn't extract the new wmcbrine code over the old code correctly. When you download the zip from git, it normally extracts to a wmcbrine folder. So if you look in your pyTivo folder and there is a wmcbrine folder inside it, then you didn't overwrite anything and you're still running the old code that thinks the Premiere is an SD unit.
     
  19. Dec 6, 2010 #2939 of 5684
    jcthorne

    jcthorne Active Member

    2,722
    3
    Jan 28, 2002
    Houston
    If I use pytivo to push a 1080p file to my TivoHD are there settings to allow it to play as 1080p on my projector? Or is this only a Premier function?

    Just got a new projector and never dealt with 1080 files before, was stuck at 720p for many years.
     
  20. Dec 6, 2010 #2940 of 5684
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    I think the max output res for the Tivo HD is 1080i. You should be able to see this on one of the video output option menus. Can't remember the name off the top of my head. It's where you have the option to set a fixed resolution or native res.

    If you're transcoding, you might want to up the height and width settings in your pyTivo.conf to 1920x1080.
     

Share This Page