1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

pyTivoX

Discussion in 'TiVo Home Media Features & TiVoToGo' started by Yoav, Dec 10, 2008.

  1. Mar 10, 2010 #901 of 1437
    DaveTheNerd

    DaveTheNerd Member

    39
    0
    Oct 13, 2004
    So here's the interesting part -- I was set to "Panel" -- but I *never* saw the panel until now. Reason being, I was also set to "4:3 Smart Screen (4:3 SD, 16:9 HD)" - So when I had true 4:3 content, the TiVo would send it to my TV at 4:3 and let the TV stretch it (I like the way my TV stretches). Of course, by using "Native", "Full", and "16:9 Widescreen" I get the exact same effect with my TV shows and the *added* benefits of having all my menus in 720p (previously they were 480) and, of course, solving THIS particular problem.

    Thank you, all, for talking through this with me. ;-)

    -Dave
     
  2. Mar 10, 2010 #902 of 1437
    DaveTheNerd

    DaveTheNerd Member

    39
    0
    Oct 13, 2004
    This previous discussion has now led me to realize that DVDs I've converted with Handbrake are streamed at 480i (by pyTiVoX/streambaby) and not 480p. I'm 99% certain that all H.264 Handbrake output is 480p whether I want it to be or not, so I'm confused as to why pyTiVoX/streambaby don't send it that way to my TiVo? (and, yes, my TiVo S3 is in "Native" mode so should pass this along properly, in theory. I don't know of any other 480p content to test with).
     
  3. Mar 23, 2010 #903 of 1437
    jharkin

    jharkin Lurker

    5
    0
    May 13, 2006
    I have some show files I want to watch on my Tivo HD. pyTivoX is the best thing ever but on one particular series I can't transfer the files with pytivo, the transfer aborts after starting, but they do work from StreamBaby. This is inconvenient because of the 1.1G stream limit. The shows rebuffer a number of times while viewing.

    Here is some log info from StreamBaby working:

    Code:
    Mon 2010/03/22 21:58:25.035|   |master|FFmpegExeVideoModule|FFmpegCmd: /Applications/pyTivoX.app/Contents/Resources/ffmpeg.bin -ss 0.0 -i /Users/jh/Movies/WRC/Wonders of the Solar System - Eps 3 - The Thin Blue Line  .thebox.hannibal.mkv -acodec ac3 -vcodec mpeg2video -f vob -async 1 -r 25.0 -v 0 -threads 2 -sameq -ab 384k -ar 48000 tcp://127.0.0.1:8500
    Here is some log info from pytivo not working:

    Code:
    DEBUG:pyTivo.video.transcode:ffmpeg output=FFmpeg version SVN-r19732, Copyright (c) 2000-2009 Fabrice Bellard, et al.
      configuration: --shlibdir=@executable_path --arch=i386 --cpu=i686 --disable-static --enable-shared --enable-pthreads --enable-gpl --enable-libmp3lame --enable-libfaac --enable-nonfree --enable-libfaad --enable-libx264 --extra-cflags='-I/Users/yoav/src/lame/include -I/Users/yoav/src/faad2-2.7/include -I/Users/yoav/src/faac-1.28/include -I/Users/yoav/src/x264' --extra-ldflags='-L/Users/yoav/src/lame/libmp3lame/.libs -L/Users/yoav/src/faad2-2.7/libfaad/.libs -L/Users/yoav/src/faac-1.28/libfaac/.libs -L/Users/yoav/src/x264/'
      libavutil     50. 3. 0 / 50. 3. 0
      libavcodec    52.34. 0 / 52.34. 0
      libavformat   52.38. 0 / 52.38. 0
      libavdevice   52. 2. 0 / 52. 2. 0
      libswscale     0. 7. 1 /  0. 7. 1
      built on Aug 27 2009 10:32:06, gcc: 4.0.1 (Apple Inc. build 5484)
    
    Seems stream 0 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 29.97 (30000/1001)
    Input #0, mpeg, from '/var/folders/yM/yMu7kOOEGMu13VzsBFb-HU+++TI/-Tmp-/tmpYmeI2o':
      Duration: 00:00:00.03, start: 0.500000, bitrate: 4419 kb/s
        Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 104857 kb/s, 29.97 tbr, 90k tbn, 59.94 tbc
        Stream #0.1[0x80]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
    At least one output file must be specified
    
    DEBUG:pyTivo.video.transcode:aFreq=48000; vFps=29.97; container=mpeg; kbps=4419; mapAudio=[('0.1', '[0x80]')]; vHeight=720; vCodec=mpeg2video; Supported=True; aKbps=448; par=None; millisecs=30; par2=1.0; par1=1:1; mapVideo=0.0; vWidth=1280; dar1=16:9; aCodec=ac3
    DEBUG:pyTivo.video.transcode:CACHE HIT! /Users/jh/Movies/WRC/Wonders of the Solar System - Eps 3 - The Thin Blue Line  .thebox.hannibal.mkv
    DEBUG:pyTivo.video.transcode:transcoding to tivo model 652 using ffmpeg command:
    DEBUG:pyTivo.video.transcode:/Applications/pyTivoX.app/Contents/Resources/ffmpeg.bin -i /Users/jh/Movies/WRC/Wonders of the Solar System - Eps 3 - The Thin Blue Line  .thebox.hannibal.mkv -vcodec mpeg2video -b 16384k -maxrate 30000k -bufsize 4096k -ab 448k -ar 48000 -acodec copy -copyts -f vob -
    FFmpeg version SVN-r19732, Copyright (c) 2000-2009 Fabrice Bellard, et al.
      configuration: --shlibdir=@executable_path --arch=i386 --cpu=i686 --disable-static --enable-shared --enable-pthreads --enable-gpl --enable-libmp3lame --enable-libfaac --enable-nonfree --enable-libfaad --enable-libx264 --extra-cflags='-I/Users/yoav/src/lame/include -I/Users/yoav/src/faad2-2.7/include -I/Users/yoav/src/faac-1.28/include -I/Users/yoav/src/x264' --extra-ldflags='-L/Users/yoav/src/lame/libmp3lame/.libs -L/Users/yoav/src/faad2-2.7/libfaad/.libs -L/Users/yoav/src/faac-1.28/libfaac/.libs -L/Users/yoav/src/x264/'
      libavutil     50. 3. 0 / 50. 3. 0
      libavcodec    52.34. 0 / 52.34. 0
      libavformat   52.38. 0 / 52.38. 0
      libavdevice   52. 2. 0 / 52. 2. 0
      libswscale     0. 7. 1 /  0. 7. 1
      built on Aug 27 2009 10:32:06, gcc: 4.0.1 (Apple Inc. build 5484)
    
    Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (25/1)
    Input #0, matroska, from '/Users/jh/Movies/WRC/Wonders of the Solar System - Eps 3 - The Thin Blue Line  .thebox.hannibal.mkv':
      Duration: 00:59:00.48, start: 0.000000, bitrate: N/A
        Stream #0.0(eng): Video: h264, yuv420p, 1280x720, PAR 1:1 DAR 16:9, 25 tbr, 1k tbn, 50 tbc
        Stream #0.1: Audio: ac3, 48000 Hz, 6 channels, s16
    Output #0, vob, to 'pipe:':
        Stream #0.0(eng): Video: mpeg2video, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], q=2-31, 16384 kb/s, 90k tbn, 25 tbc
        Stream #0.1: Audio: ac3, 48000 Hz, 6 channels, s16
    Stream mapping:
      Stream #0.0 -> #0.0
      Stream #0.1 -> #0.1
    Press [q] to stop encoding
    [NULL @ 0x103b400]error, non monotone timestamps 23040 >= 23040
    av_interleaved_write_frame(): Error while opening file
    DEBUG:pyTivo.video.video:Finished outputing video
    
    Can you tell me what each is doing differently and what, if anything, I can do to get pytivo to transfer the file?

    Thanks!
     
  4. Mar 23, 2010 #904 of 1437
    brossow

    brossow TiVo DiVo-tee

    152
    0
    Jan 25, 2004
    Mankato, MN
    Maybe pyTivoX doesn't like you watching pirated programming. :D
     
  5. Mar 23, 2010 #905 of 1437
    wmcbrine

    wmcbrine Ziphead

    10,367
    22
    Aug 2, 2003
    pyTivo is trying to pass through the audio without reencoding it, since it's already AC3, while Streambaby is reencoding both video and audio. But there seems to be a problem with the audio.

    You could force the audio to be reencoded by using an "Override_" line in metadata for the file, to make pyTivo think it's out of spec. For example, "Override_aCodec: wma". Or you could try replacing ffmpeg with a version that won't complain about non monotone timestamps -- I think rdian06 has some patches to that effect?
     
  6. Mar 23, 2010 #906 of 1437
    jharkin

    jharkin Lurker

    5
    0
    May 13, 2006
    I saw a great license plate the other day that applies to me: "RTFM NUB"

    Where is the metadata kept?

    I looked up rdian06's ffmpeg thread and what is described there sure seems to be my problem. Unfortunately, I'm on an Intel Mac running 10.6 and he hasn't been able to keep up on the Mac side. Google has brought me no joy. Any suggestions?

    Thanks!
     
  7. Mar 23, 2010 #907 of 1437
    wmcbrine

    wmcbrine Ziphead

    10,367
    22
    Aug 2, 2003
    Take the name of the video file and add ".txt" to it. (Add, not replace -- "filename.mpg" would be described by "filename.mpg.txt".)
     
  8. Mar 24, 2010 #908 of 1437
    Ladd Morse

    Ladd Morse Member

    791
    0
    Feb 21, 2002
    Months later, I'm still having the problem where trying to view photos on my Mac via pyTivoX on my TiVo HD shows only a broken icon.

    This used to work, but hasn't for some months now.

    Was there ever a solution to this problem and I just missed it?
     
  9. Mar 24, 2010 #909 of 1437
    jharkin

    jharkin Lurker

    5
    0
    May 13, 2006
    Thanks so much! This did the trick.
     
  10. Mar 24, 2010 #910 of 1437
    wmcbrine

    wmcbrine Ziphead

    10,367
    22
    Aug 2, 2003
    That broke with Snow Leopard, didn't it? We need a new Python Imaging Library that's compatible.
     
  11. Mar 27, 2010 #911 of 1437
    Ladd Morse

    Ladd Morse Member

    791
    0
    Feb 21, 2002
    Maybe, but I'm still running Leopard ...
     
  12. Mar 30, 2010 #912 of 1437
    Rdian06

    Rdian06 New Member

    463
    0
    Apr 12, 2008
    I finally found some time to compile ffmpeg with my custom patches for MacIntel. The complie was done under 10.5.8, but should work on 10.6 I think.

    I tried to compile it similar to how Yoav did so you should be able to use my build as a drop-in replacement for the one inside pyTivoX.

    I don't use my MacIntel box for Tivo stuff, so I need a few brave souls to test this.

    CAVEAT: This build of ffmpeg will ONLY work on MacIntel machines. If you have a G5 or G4, please do NOT attempt this.

    To try my new build with pyTivoX:

    1) Download ffmpeg-SVN-r21659-rdian06-1.01-mac-x86_32.zip from http://pytivo.sourceforge.net/forum/post3558.html#3558

    2) Quit pyTivoX.

    3) Locate the pyTivoX.app.

    4) Right click the pyTivoX.app package and choose "Show Package Contents".

    5) Navigate to Contents/Resources.

    6) Backup the existing ffmpeg.bin and the .dylib files to a safe place in case you need to switch back.

    7) Overwrite ffmpeg.bin and the related .dylib using files from my zip you downloaded. Note, my compile has more a few more .dylib files since I enabled more options than Yoav's compile. You do NOT need to overwrite the ffmpeg file as it's just a shell script that calls ffmpeg.bin

    8) Fire up pyTivoX and see if your problematic files now transfer correctly.

    9) Try to use streambaby for a file that needs to transcode and see if it works.

    NOTE: This will not help with Photo viewing in anyway, that's a completely different module that needs to be recompiled.
     
  13. Mar 30, 2010 #913 of 1437
    generaltso

    generaltso Member

    964
    0
    Nov 3, 2003
    Vermont
    I'm going to test this right now. Thanks for taking the time to do it!
     
  14. Mar 30, 2010 #914 of 1437
    generaltso

    generaltso Member

    964
    0
    Nov 3, 2003
    Vermont
    It works! I tested 3 video files that resulted in mixed up audio channels before. All 3 of them seem to transfer fine now with all the audio channels staying where they belong. I'm running OSX 10.6.3. Thanks so much Rdian06!
     
  15. Mar 31, 2010 #915 of 1437
    test drive

    test drive Member

    37
    0
    Jan 23, 2010
    Sorry for the basic question here, but I was unable to find this answer posted elsewhere...

    Is the latest/current version of pyTivoX compatible for use with the new Premiere and Premiere XL?

    Thanks.
     
  16. Apr 4, 2010 #916 of 1437
    jharkin

    jharkin Lurker

    5
    0
    May 13, 2006
    Thanks for the new ffmpeg.bin. It fixed the mkv transfer problem I was having.
     
  17. Apr 4, 2010 #917 of 1437
    n47h4nm0rr15

    n47h4nm0rr15 New Member

    1
    0
    Apr 4, 2010
    Immediately fixed problems for me with certain .ac3 audio files in .mkv
    "non monotone timestamps 23040"

    MacIntel Core 2 Duo.
    OS 10.6.2
     
  18. Apr 22, 2010 #918 of 1437
    gilbreen

    gilbreen Member

    69
    0
    Sep 5, 2007
    I have used pyTivoX, specifically the StreamBaby portion, with our new Premiere box and it works great (and very rapidly!). I haven't used the pyTivo part of it so can't speak to that.


     
  19. Apr 26, 2010 #919 of 1437
    mjboyle

    mjboyle New Member

    1
    0
    Apr 26, 2010
    I'm new to both programs, but have been using both the StreamBaby and PyTivo portions of PyTivoX with our new Premiere XL.

    However, I did encounter a bug with PyTivoX where it thought the Premiere was a SD tivo. To fix this, I downloaded the most recent pytivo code from wmcbrine's fork at github. I then went to the PyTivoX application, right clicked and selected "Show Package Contents". Inside there is a folder. Inside the path: Contents/Resources/ there is a folder named "pyTivo-wmcbrine". I dragged the contents of the newly downloaded folder from wmcbrine into that folder and told it to replace all (do be sure to have a backup of the PyTivoX application before tinkering inside it). For good measure I deleted all the old files that ended in ".pyc" which are paired with the new ".py" files.

    When you start up PyTivoX again, it will recompile the new python scripts and replace the ".pyc" files.

    I found that fixed my problem and allowed PyTivo to grab files in 1080 instead of 480.

    Now, I'm still working on finding an encoding profile that will play on both my computer and the tivo without audio sync problems or video stuttering, but that's another matter ;).
     
  20. May 2, 2010 #920 of 1437
    thewebgal

    thewebgal MacAphile AV geek

    375
    1
    Aug 10, 2007
    DC 'burbs
    Thanks to wmcbrine for the heads up on PyTivoX - I read one of his posts about this on Thursday, grabbed, and was flat gobsmacked at what it does - I was so impressed with this tool I got an Airport Express-N after work on friday to speed up my network!

    I've had great luck with pyTIVOx on my system (Mac Mini 10.6.3> airport extreme-N> airport Express-N >TIVOHD).
    I upgraded the TIVOHD with a 1TB barracuda about a year ago ...

    I have a number of external firewire and USB drives on my mini, and I created a share drive with some downloaded DivX content, an MKV file, some mpg4 vids, and our wedding videos (AVIs from my Canon powershot G9).

    So far I've used the Streambaby functionality - didn't see any reason to copy files to the TIVOHD drive

    Everything seems to play well, but I did get some buffering issues with the huge MKV file (Ep 5 of Wonders of the Solar System). That was cured by selecting a lower quality when I started playback for that video only ...
    the MKV is a HUGE file for a nearly one hour show

     

Share This Page