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

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    I'm not sure if it will solve all the issue's I'm seeing, but I have decided that it;s time to update my pytivo. I notice that in the current version of transcode.py, the regular expression that parses out the video codec now stops when it sees a comma or a space - it used to only look for the comma. With this, my version of ffmpeg will yield a vCodec value of 'h264' which will satisfy the test. I'll let you know how it goes.

    I also noticed that the tivo itself (mine are series 3's) is rather sensitive to the video characteristics. I had cut down the frame size, and left the frame rate at 59+ fps. I transcoded the video back to full size frames and changed the frame rate to 29.97. It seems to be working now.

    Now I have to solve the issue of qtfaststart not handling files that are larger that 4G. I noticed in the update of pytivo that there is a new version of qtfaststart.py. Tomorrow I'll see if this solves this issue.
     
  2. txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    Yes, updating your pytivo is probably a good idea. The (main) portion of the vCodec is just the profile. Tivos accept baseline, main and high profiles.

    I don't have a Series 3, but do have a TivoHD. I know that jcthorne has made a lot of post about the problems of displaying framesizes that were different than the norm (720x480, 1280x720 and 1920x1080).

    Are you transcoding these videos yourself from recordings? Is there any reason that you need to set the profile level or change the frame size to 960x540? I would be surprised to find out that the profile itself is causing any of these odd display characteristics of the video. More likely it is the frame size.
     
  3. jcthorne

    jcthorne Active Member

    2,720
    2
    Jan 28, 2002
    Houston
    Good catch, I did not see the 960x540 frame size in the ffmpeg output posted.

    That frame size will not display correctly on a series 3 machine. You will need to pad it with boarders to 1280x720 or down res to 720x480. Its a know bug in that generation tivo. The Premiere fixed this.
     
  4. jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    Thanks all. This is what I assumed. I had been reducing the frame size (if you notice 960x540 is 1920x1080 with each dimension halved) just to save space, but I'd rather have tivo compatibility - so I'll re-transcode.

    On another matter, I have some bluray rips that play on the tivo, but have a strobe-like effect. I'm thinking that the large frame size (full 1920x1080) together with a relatively high quality are too much for the tivo. I was thinking that I should reduce the quality setting a bit to see if it's any better. Any other advice?
     
  5. jcthorne

    jcthorne Active Member

    2,720
    2
    Jan 28, 2002
    Houston
    What is the bitrate, frame rate and profile level of the encodes? Series 3 are a bit more limited than most bluray players and Premiere. I don't remember the exact upper limits for 1080 on the series 3 as I did not have 1080 display devices then, everything I did for the THD was at 720p.
     
  6. jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    Here is the output from ffmpeg:
    Code:
    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 'xxxxxx.mp4':
      Metadata:
        major_brand     : isom
        minor_version   : 512
        compatible_brands: isomiso2avc1mp41
        creation_time   : 1970-01-01 00:00:00
        encoder         : Lavf52.93.0
      Duration: 02:06:01.69, start: 0.000000, bitrate: 8473 kb/s
        Stream #0.0(und): Video: h264 (Main), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 7828 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc
        Metadata:
          creation_time   : 1970-01-01 00:00:00
        Stream #0.1(und): Audio: ac3, 48000 Hz, 6 channels, s16, 640 kb/s
        Metadata:
          creation_time   : 1970-01-01 00:00:00
    At least one output file must be specified
    SO it appears the bit rate is 8473 kbps, the frame rate is 23.98, and the profile level (from the transcoding parameters) is 4.1.

    Maybe the 23.98 fps is the issue - I think others have stated that the series 3 chokes if the frame rate is not at least 29.97
     
  7. jcthorne

    jcthorne Active Member

    2,720
    2
    Jan 28, 2002
    Houston
    23.976 fps 1080p cannot be played on the Series 3 units. Only 1080i which is usually 29.97. Also the number of reference frames should be checked. No more than 4.

    The Premiere added the capability for 1080p 24.

    That video would have to be re-encoded to play on a Series 3.
     
  8. jbernardis

    jbernardis New Member

    1,072
    0
    Oct 21, 2003
    Princeton NJ
    thank you - looks like I'm going to be busy re-encoding
     
  9. txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    Frankly, none of the Tivos (Series 3, TivoHD or Premiere) handle 23.976fps very well. On my TivoHDs, I found that any framerate less than ~25fps exhibited strobing/shimmering. Even the Premiere shows some of this, but it isn't as bad. Perhaps some of it is has to do with the refresh rate of the LCDs. Not really sure. I had found that 23.976fps MPEG2 playback was always much more stable than 23.976fps H.264 though, so it seems like it is mainly a Tivo decode/playback issue.

    Also, if you want to transcode to a smaller framesize, I would just use 1280x720. It should be ok for you.
     
  10. heuer1370

    heuer1370 New Member

    13
    0
    Jun 6, 2005
    OK, my pytivo opens for about 1 second in a black box then closes. I cannot figuire out what I'm doing wrong. Here is a copy of my config. Any help would be greatly appreciated.

    [Laptop Videos]
    type = video
    ffmpeg = C:\Program Files\pyTivo\bin\ffmpeg.exe
    path = C:\Users\MyName\Videos
     
  11. jcthorne

    jcthorne Active Member

    2,720
    2
    Jan 28, 2002
    Houston
    Please refer to the link in my signature for step by step instructions for getting pytivo up and running in windows.
     
  12. jcthorne

    jcthorne Active Member

    2,720
    2
    Jan 28, 2002
    Houston
    I never used 1080i in a series 3 but in my Premiere, displaying on a native 1080p lcd projector or a 40" LCD panel, I see none of the shimmer or strobing you speak of using 1080i 29.97 or 1080p 23.976, both of which the premiere displays natively without conversion.
     
  13. heuer1370

    heuer1370 New Member

    13
    0
    Jun 6, 2005

    please send me a pm. i do not have 10 or more posts and cannot see your link. thanks for the help.
     
  14. jcthorne

    jcthorne Active Member

    2,720
    2
    Jan 28, 2002
    Houston
    PM sent
     
  15. sanity

    sanity New Member

    1
    0
    Jun 26, 2011
    I've been using pyTivoX without problems for several weeks now.

    Suddenly yesterday I started to find that the pyTivoX folder on my Tivo would be empty, and then if I went out of it it would disappear completely. I've tried removing some files from the folder, but nothing seems to work.

    This is all that is in my pytivo.log:

    Code:
    pyTivoX $ cat pytivo.log 
    INFO:pyTivo.beacon:Announcing shares...
    INFO:pyTivo.beacon:Registering: PyTivoX
    INFO:pyTivo.beacon:Scanning for TiVos...
    INFO:pyTivo:pyTivo is ready.
    INFO:pyTivo:10.0.1.196 [26/Jun/2011 15:07:49] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
    INFO:pyTivo:10.0.1.197 [26/Jun/2011 15:07:49] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
    INFO:pyTivo:10.0.1.196 [26/Jun/2011 15:07:50] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
    INFO:pyTivo:10.0.1.196 [26/Jun/2011 15:08:43] "GET /TiVoConnect?Command=QueryContainer&Container=%2F HTTP/1.0" 200 -
    
    Please help!
     
  16. Tobashadow

    Tobashadow Read over there --->

    2,339
    0
    Nov 11, 2006
    I am getting a weird transfer bug.

    If i transfer a show or two from another Tivo and watch them, then if i decide to transfer a show or movie from PyTivo i get the last show i transferred from the Tivo instead of what i chose on PyTivo and the only way to solve it is to remove the other Tivo from the network.

    Same problem no matter if i have metadata on the file or not.
     
  17. wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    Well, yes, because it's a TiVo-side bug. Not much you can do except to reboot the TiVo AFAIK.
     
  18. Johnwashere

    Johnwashere Member

    232
    1
    Sep 17, 2005
    Columbus, Ohio
    Wow, I wish I would have used PyTivo years ago. It was pretty easy to install and works perfectly on my premiere and HD. I am able to transfer my 720P MKV files and surround sound works for most of my movies. So awesome!! :up::up::)
     
  19. SameerUCLA

    SameerUCLA New Member

    16
    0
    Jul 15, 2009
    Having a problem... installed pyTivo and got it running on my Win7 box. I have set up two video shares - one for Movies, one for TV shows. The TiVos see the shares properly, but when I select each folder, they are empty. I can scroll up and down the screen inside the folder, but I can't select anything or get anything to run.

    Furthermore, I can't push from pyTivo to the Tivos. pyTivo shows me the "Pull from" and "Push To" choices but... no workee.

    Any help?

    - Sameer

    p.s. here's my pyTivo.conf file:

    [Server]
    port = 9032
    ffmpeg = c:\Program Files\pyTivo\bin\ffmpeg.exe
    tivo_mak = [removed]
    tdcat = c:\Program Files\pyTivo\bin\tdcat.exe
    tivo_password = [removed]
    tivo_username = [removed]
    togo_path = D:\TivoToGo
    tivodecode = c:\Program Files\pyTivo\bin\tivodecode.exe

    [_tivo_SD]

    [_tivo_HD]

    [Movies]
    path = D:\Movies
    type = video

    [TV Shows]
    type = video
    path = D:\Media\TV Shows
     
  20. wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    No errors on the TiVo screen?

    Post your log file or console output.
     

Share This Page