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

    NatasNJ Bone marrow lover!

    11,559
    4
    Jan 7, 2002
    Philly
    Well just deleted the .pyc files from the directory and get SAME error when running console. Could the .PY files gone bad?

    Anyway. Since the next step was probably to delete Python and reinstall it that is what I just did.
    Uninstalled Python and PIL. Reinstalled both (from the original versions I had installed)

    BAM.

    Works.

    :)

    What would cause something like this to just randomly stop working? Seems weird.
     
  2. HerronScott

    HerronScott Well-Known Member

    2,791
    29
    Jan 1, 2002
    Staunton, VA
    I'm having a problem playing .wma audio files using pyTivo from my Windows WHS server. Is there a log file for ffmpeg?

    Scott
     
  3. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    Not per se. But if you run it from the console, you can watch the ffmpeg output.

    Can you describe exactly what happens?
     
  4. Apr 1, 2011 #3004 of 5687
    HerronScott

    HerronScott Well-Known Member

    2,791
    29
    Jan 1, 2002
    Staunton, VA
    No audio when playing the WMA files is the symptom but the TiVo thinks it's playing them. Issue still appears to be WMA lossless support with ffmpeg. I thought I had read where the latest version supported it but apparently not as I'm getting something like the following:

    Decoder (codec id 86057) not found for input stream #0.0

    Scott
     
  5. Apr 5, 2011 #3005 of 5687
    lrhorer

    lrhorer Active Member

    6,924
    0
    Aug 31, 2003
    San...
    Is anyone else having trouble with the push function? Are the mind servers down again? I've been trying to push some videos for several hours, to no avail:

    Code:
    <urlopen error [Errno 110] Connection timed out>
    
    Traceback (most recent call last):
      File "/usr/share/pyTivo/plugins/video/video.py", line 449, in Push
        tvrating = file_info['tvRating'])
      File "/usr/share/pyTivo/mind.py", line 84, in pushVideo
        offer_id, content_id = self.__bodyOfferModify(data)
      File "/usr/share/pyTivo/mind.py", line 197, in __bodyOfferModify
        data['bodyId'])
      File "/usr/share/pyTivo/mind.py", line 185, in __dict_request
        result = self.__opener.open(r)
      File "/usr/lib/python2.6/urllib2.py", line 391, in open
        response = self._open(req, data)
      File "/usr/lib/python2.6/urllib2.py", line 409, in _open
        '_open', req)
      File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
        result = func(*args)
      File "/usr/lib/python2.6/urllib2.py", line 1178, in https_open
        return self.do_open(httplib.HTTPSConnection, req)
      File "/usr/lib/python2.6/urllib2.py", line 1145, in do_open
        raise URLError(err)
    URLError: <urlopen error [Errno 110] Connection timed out>
     
  6. Apr 5, 2011 #3006 of 5687
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
    I haven't tried pushing anything, but connections to the TiVo Service are borked on all TiVos I own: Series 2, Series 3, and Premiere. All fail during the connection process after a period of time, stating "Service not found". It gets through setting the clock and verifying account status, but not much more after that. All DVRs were reboot, as well as router and cable modem.
     
  7. Apr 5, 2011 #3007 of 5687
    windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    Thank god, I thought it was just me! All of my TiVos (wireless and MoCA) started throwing N11, N18, etc. errors last night. I rebooted my router, my cable model, checked firewall settings, etc. and couldn't get any of them to connect. The problem persisted this morning so I was hoping it was a problem on TiVo's end. There must be another thread about this around here somewhere ...

    edit: hmmm, I don't see any recent threads about this. I know orangeboy is in FL like me so maybe this is a Brighthouse issue?
     
  8. Apr 5, 2011 #3008 of 5687
    orangeboy

    orangeboy yes, I AM orangeboy!

    4,083
    0
    Apr 19, 2004
    East Moline, IL
  9. Apr 5, 2011 #3009 of 5687
    ncfoster

    ncfoster Member

    168
    0
    Jan 22, 2011
    Hi all,

    Is there any sort of trouble-shooting checklist for pyTivo? Obviously, you can search, but most of the search terms are going to be very common.

    My current problem that just developed is that I have a folder which contains multiple episodes of the same show from different sources. One was downloaded directly from the Tivo and decoded, and has the appropriate metadata. The others came from a ReplayTV, and were transcoded, one with Handbrake, and the other with MeGUI, just to test how they would work. At this point, none of the shows show up in the folder, where at least the Tivo-originated ones would show up before.

    Do I have to add the metadata for everything in the folder to make things work?
     
  10. Apr 5, 2011 #3010 of 5687
    wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    There is, but it's not going to help in your case.

    No.

    Presumably an exception is being thrown at some point. Check the log and/or console output.
     
  11. Apr 8, 2011 #3011 of 5687
    ncfoster

    ncfoster Member

    168
    0
    Jan 22, 2011
    How can I monitor the console if I am running pyTivo in console mode? Or am I limited to the log file(s) in this case?

    EDIT: Restarting the service seems to have resolved my problems for now, but I'd still love to know the answer for future reference.
     
  12. innocentfreak

    innocentfreak Active Member

    8,950
    3
    Aug 25, 2001
    Florida
    This has probably been asked for, but I thought about it at work so I haven't had time to search yet.

    Is there anyway to add navigational links to the web interface for PyTiVo? I use it most of the time from my iPad to navigate and push recordings to my TiVos. It would be nice if there were shortcuts I could use to jump back to the main share page at least.
     
  13. speed_phreak

    speed_phreak Member

    61
    0
    Apr 6, 2006
    Yes, navigation links would be nice.. More than a couple times I have also wanted a "Check All" box for whatever folder I'm in to take a whole folder to go...

    Maybe one of these days I will experiment and make a contribution.

    Thanks wmcbrine for continuing to maintain and advance this project!!!
     
  14. windracer

    windracer joined the 10k club

    11,580
    3
    Jan 3, 2003
    St. Pete, FL
    gonzotek had a patch that would add a "home" link to the web pages. I used it for a while but it never made it into wmcbrine's fork and after a while I forgot to keep applying it every time I upgraded.
     
  15. ncfoster

    ncfoster Member

    168
    0
    Jan 22, 2011
    +1 I was wondering this the other day. I was going to add it myself, then I realized there was a bit too much straight XML going on to do it quickly for a noob like me.
     
  16. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    Wow, that's a new one.

    No, there are no issues with any version of pyTivo and 14.8 that I'm aware of. I'd look at pyTivo's log and/or console output.
     
  17. gonzotek

    gonzotek tivo_xml developer

    2,404
    3
    Sep 24, 2004
    Outside...
    me too actually :)

    Sometime this weekend I'll make sure it still works, and post a fix if doesn't.
    I'd love for it to be included in wmcbrine's fork however. William, do you have any interest in that, and if so, do you want me to do anything specific to submit it to you?
     
  18. speed_phreak

    speed_phreak Member

    61
    0
    Apr 6, 2006
    Thanks for the reply... I just deleted my post... it must have been something on my end. I rebooted everything and all is well!

    It does appear that TiVo has updated the backend logic involved with transfers, I guess we will see if that is good or bad... LOL..
     
  19. jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    I noticed that a lot of my videos that I had transcoded to MP4 (H264/AC3) were being transcoded when pushing. Since this obviously defeats the advantage of pushing, I did a little investigating, and here is what I find:

    Code:
    2011-06-20 22:57:40,405 DEBUG pyTivo.video.transcode: ffmpeg output=FFmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
      built on Mar 15 2011 17:58:44 with gcc 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
      configuration: --disable-yasm
      libavutil    50. 39. 0 / 50. 39. 0
      libavcodec   52.114. 0 / 52.114. 0
      libavformat  52.103. 0 / 52.103. 0
      libavdevice  52.  3. 0 / 52.  3. 0
      libavfilter   1. 76. 0 /  1. 76. 0
      libswscale    0. 12. 0 /  0. 12. 0
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/Videos/TV/Falling Skies/Falling Skies - E100 - Pilot.mp4':
      Metadata:
        major_brand     : isom
        minor_version   : 512
        compatible_brands: isomiso2avc1mp41
        creation_time   : 1970-01-01 00:00:00
        encoder         : Lavf52.93.0
      Duration: 01:22:57.21, start: 0.000000, bitrate: 4480 kb/s
        Stream #0.0(und): Video: h264 (Main), yuv420p, 960x540 [PAR 1:1 DAR 16:9], 4028 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc
        Metadata:
          creation_time   : 1970-01-01 00:00:00
        Stream #0.1(und): Audio: ac3, 48000 Hz, 6 channels, s16, 448 kb/s
        Metadata:
          creation_time   : 1970-01-01 00:00:00
    At least one output file must be specified
    
    2011-06-20 22:57:40,416 DEBUG pyTivo.video.transcode: aFreq=48000; vFps=29.97; container=mov; kbps=4480; mapAudio=[('0.1', '(und)')]; vHeight=540; vCodec=h264 (Main); Supported=True; aKbps=448; par=None; millisecs=4977210; par2=1.0; par1=1:1; mapVideo=0.0; vWidth=960; dar1=16:9; aCodec=ac3
    2011-06-20 22:57:40,420 DEBUG pyTivo.video.transcode: CACHE HIT! /media/Videos/TV/Falling Skies/Falling Skies - E100 - Pilot.mp4
    2011-06-20 22:57:40,423 DEBUG pyTivo.video.transcode: TRANSCODE=YES, vCodec h264 (Main) not compatible, /media/Videos/TV/Falling Skies/Falling Skies - E100 - Pilot.mp4
    
    Obviously the vCodec is coming back as "h264 (main)" which isn't what the program is expecting.

    I am running pytivo in a rather unorthodox environment - on my Netgear ReadyNAS. Running pytivo itself was never an issue - the issue was getting a current copy of ffmpeg I could run. The version I was able to get with the apt-get tool was way behind, so I actually built the ffmpeg from very recent source code. Obviously I found an unanticipated result.

    I guess I'm seeking advice on how to handle this. I'm thinking of changing the code that looks for literal 'h264' to allow 'h264 (*'. The problem is that I don't really know if this vCodec is truly the same as h264. In the same debug.log file, I noticed other videos (notably m4v videos downloaded from Make Magazine) return a vCodec value of 'h264 (Constrained Baseline)'. I'm not sure what the differences are between these two and what the consequences are of allowing a direct push to tivo. Perhaps instead of 'h264 (*' I should allow either 'h264' or 'h264 (Main)'?

    Advice Anyone?

    Thanks
     
  20. jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    OK - here is an update.

    I changed transcode.py to accept any vCodec that begins with h264, and now the video pushes fine. The problem is that playback is wrong - I am getting vertical pillars and am seeing a 4x3 image. Note the image is not being squeezed - it is being cropped. Changing the aspect ratio on the tivo does nothing but stretch (and thereby distort) the image on screen.

    edit - this was one of the 'h264 (Main)' videos - haven't tried on of the Constrained Baseline ones yet

    edit # 2 - the image is not being cut off left AND right - the left edge is fine - it is the right side that is being cropped - but twice the width of the pillar and then the screen is being shifted right to be centered on the screen

    edit #3 - I tried one of the Constrained Baseline files, and it was also being shown 4x3, but this one was squeezed - playing with the aspect button brought it to proper width and aspect ratio

    Not sure what to do next.
     

Share This Page