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

    swerver Member

    223
    0
    May 18, 2012
    Well I have but as you noticed, I don't know what's going on. I did try another newer ffmpeg from http://ffmpeg.zeranoe.com/builds/win32/static/ but I got other errors complaining about the switches used and the file didn't transfer at all. I'll try another - any recommendations?

    One other thing - if the logs I posted were a remux, then why did the file size change so dramatically on the pull?
     
  2. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    Transport streams have a lot of overhead... not normally that much (more like 20%, as my rule of thumb), but I'll attribute that to the old FFmpeg.

    I use very recent FFmpegs with no problem. There are warnings about switches, but no errors (i.e. it doesn't affect anything). If you have errors, post them.
     
  3. swerver

    swerver Member

    223
    0
    May 18, 2012
    Here's what happened when I tried the newer ffmpeg.

    Code:
    INFO:pyTivo:192.168.1.100 [20/Mar/2013 20:48:04] "GET /Movies/American%20Beauty/title01.mkv?Format=video%2Fx-tivo-mpeg-t
    s HTTP/1.1" 206 -
    INFO:pyTivo.video.video:[20/Mar/2013 20:48:04] Start sending "D:\Media\Video\Movies\Movies\American Beauty\title01.mkv"
    to Family Room Tivo
    ffmpeg version 1.1.3 Copyright (c) 2000-2013 the FFmpeg developers
      built on Mar  3 2013 01:57:34 with gcc 4.7.2 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfi
    g --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg
    sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --ena
    ble-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --en
    able-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
      libavutil      52. 13.100 / 52. 13.100
      libavcodec     54. 86.100 / 54. 86.100
      libavformat    54. 59.106 / 54. 59.106
      libavdevice    54.  3.102 / 54.  3.102
      libavfilter     3. 32.100 /  3. 32.100
      libswscale      2.  1.103 /  2.  1.103
      libswresample   0. 17.102 /  0. 17.102
      libpostproc    52.  2.100 / 52.  2.100
    Input #0, matroska,webm, from 'D:\Media\Video\Movies\Movies\American Beauty\title01.mkv':
      Metadata:
        creation_time   : 2013-03-02 20:58:19
      Duration: 00:21:52.34, start: 0.000000, bitrate: 2210 kb/s
        Chapter #0.0: start 0.000000, end 1312.311000
        Metadata:
          title           : Chapter 01
        Chapter #0.1: start 1312.311000, end 1312.344000
        Metadata:
          title           : Chapter 02
        Stream #0:0(eng): Video: mpeg2video (Main), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 29.97 fps, 29.97 tbr, 1k tbn, 59.94
    tbc
        Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
        Metadata:
          title           : 2/0
    Please use -b:a or -b:v, -b is ambiguous
    [matroska,webm @ 024bb5e0] Invalid stream specifier: .0.
        Last message repeated 3 times
    Stream map '0.0' matches no streams.
    INFO:pyTivo.video.video:[20/Mar/2013 20:48:04] Done sending "D:\Media\Video\Movies\Movies\American Beauty\title01.mkv" t
    o Family Room Tivo, 0 bytes, 0.00 Mb/s
    This part was highlighed in various colors:
    Please use -b:a or -b:v, -b is ambiguous
    [matroska,webm @ 024bb5e0] Invalid stream specifier: .0.
    Last message repeated 3 times
    Stream map '0.0' matches no streams.
     
  4. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    Hmm. So far, I can't reproduce this, even with the sample output above. Is it possible for you to get a file to me that shows the problem? (You can use anonymous FTP to wmcbrine.com, if you like.)
     
  5. lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    Does anyone know if the newer releases of ffmpeg will run under XP?
     
  6. moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    Yes they do.
     
  7. swerver

    swerver Member

    223
    0
    May 18, 2012
    Thank you very much for this offer. Thought I'd verify one more time before I took you up on this, and sure enough now when I pull the file I don't get the same error, just a warning, and this 22 minute video transferred in a matter of seconds (40 actually). I'm going to guess that the use of (copy) next to the output stream listing (as you mentioned it would do) indicates these streams were merely remuxed as opposed to transcoded, which if that's true, I can say, AWESOME! The file size reported by viewing the file on the tivo through my pyTivo share says 393 MB, which is very close to what the pyTivo output above reports and much closer to the original file size of 354 MB than my previous test. Vewing the listing in my shows (after the transfer completed) and pressing info says .38 GB, close enough.

    Code:
    INFO:pyTivo:192.168.1.100 [25/Mar/2013 19:56:03] "GET /Movies/American%20Beauty/title01.mkv?Format=video%2Fx-tivo-mpeg-t
    s HTTP/1.1" 206 -
    INFO:pyTivo.video.video:[25/Mar/2013 19:56:03] Start sending "D:\Media\Video\Movies\Movies\American Beauty\title01.mkv"
    to Family Room Tivo
    ffmpeg version 1.1.3 Copyright (c) 2000-2013 the FFmpeg developers
      built on Mar  3 2013 01:57:34 with gcc 4.7.2 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfi
    g --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libg
    sm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --ena
    ble-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --en
    able-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
      libavutil      52. 13.100 / 52. 13.100
      libavcodec     54. 86.100 / 54. 86.100
      libavformat    54. 59.106 / 54. 59.106
      libavdevice    54.  3.102 / 54.  3.102
      libavfilter     3. 32.100 /  3. 32.100
      libswscale      2.  1.103 /  2.  1.103
      libswresample   0. 17.102 /  0. 17.102
      libpostproc    52.  2.100 / 52.  2.100
    Input #0, matroska,webm, from 'D:\Media\Video\Movies\Movies\American Beauty\title01.mkv':
      Metadata:
        creation_time   : 2013-03-02 20:58:19
      Duration: 00:21:52.34, start: 0.000000, bitrate: 2210 kb/s
        Chapter #0.0: start 0.000000, end 1312.311000
        Metadata:
          title           : Chapter 01
        Chapter #0.1: start 1312.311000, end 1312.344000
        Metadata:
          title           : Chapter 02
        Stream #0:0(eng): Video: mpeg2video (Main), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 29.97 fps, 29.97 tbr, 1k tbn, 59.94
    tbc
        Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
        Metadata:
          title           : 2/0
    Please use -b:a or -b:v, -b is ambiguous
    Output #0, mpegts, to 'pipe:':
      Metadata:
        encoder         : Lavf54.59.106
        Chapter #0.0: start 0.000000, end 1312.311000
        Metadata:
          title           : Chapter 01
        Chapter #0.1: start 1312.311000, end 1312.344000
        Metadata:
          title           : Chapter 02
        Stream #0:0(eng): Video: mpeg2video, yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=2-31, 29.97 fps, 90k tbn, 29.97 tbc
        Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, 192 kb/s (default)
        Metadata:
          title           : 2/0
    Stream mapping:
      Stream #0:0 -> #0:0 (copy)
      Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame=39331 fps=1026 q=-1.0 Lsize=  387097kB time=00:21:52.31 bitrate=2416.4kbits/s
    video:322464kB audio:30756kB subtitle:0 global headers:0kB muxing overhead 9.590957%
    INFO:pyTivo.video.video:[25/Mar/2013 19:56:42] Done sending "D:\Media\Video\Movies\Movies\American Beauty\title01.mkv" t
    o Family Room Tivo, 396387096 bytes, 78.53 Mb/s
    When I pushed the same file, it had a mux overhead of 1.3% but transferred much slower at 27 Mb/s.

    Blu-ray rips are transferring untouched as well. (edit: spoke too soon, audio is transcoding) This is great. Well done. Now the only question is, why do I have an htpc? Ha no it's still useful, but certainly less so with this great tivo upgrade. It's a funny thing that they can claim to be the "one box" but it takes guys like wmcbrine to make that closer to the truth. They should be paying you for this, tivo desktop is junk in comparison.

    Now can you speed up the netflix and youtube interfaces? :p just kidding great work!
     
  8. rfryar

    rfryar My Media, My Way

    222
    0
    Feb 15, 2008
    Cottage...
    This may be obvious to anyone who knows how pyTivo works under the covers, but for everybody else that is interested...

    pyTivo will not work (at the moment) with the TiVo mini. It needs to emulate the Premiere's way of streaming the files instead of pushing as MPG2 or MP4 files since the TiVo mini has no disk or buffer to store the file.

    Rick
     
  9. moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    Similar to the "Streambaby push" workaround I mentioned in Streambaby thread in response to your post, you can use pyTivo + VidMgr as a workaround. i.e. Initiate pyTivo push to host TiVo from the Mini and then you can stream the pushing recording to the Mini.
     
  10. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    Expected.

    Yeah, so far I've been unable to make that work. It would be nice, even for use with Premieres.
     
  11. rfryar

    rfryar My Media, My Way

    222
    0
    Feb 15, 2008
    Cottage...
    Have you been able to get pyTivo to be browsable at all on the mini? That would be the first step I would assume to answer the network query as if pyTivo were a premiere.
     
  12. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    I don't have a Mini. What I've been unable to do is to get the streaming options to appear on the Premiere, for pyTivo shares.
     
  13. mlippert

    mlippert New Member

    59
    0
    Apr 2, 2010
    Massachusetts
    So the page describing the pytivo metadata file says that you can put the description on more than one line. I've tried a few things but none seem to work.
    Is there supposed to be a way for this to work?

    What I tried:
    • subsequent lines start at col 1
      Code:
      description : La di da here on 1st line
      fa la la la here on the 2nd line
      do re mi on this 3rd line
      originalAirDate : 2004-11-09T00:00:00Z
      
    • subsequent lines start with a space
      Code:
      description : La di da here on 1st line
       fa la la la here on the 2nd line
       do re mi on this 3rd line
      originalAirDate : 2004-11-09T00:00:00Z
      
    • subsequent lines start with description :
      Code:
      description : La di da here on 1st line
      description : fa la la la here on the 2nd line
      description : do re mi on this 3rd line
      originalAirDate : 2004-11-09T00:00:00Z
      

    Mike
     
  14. wmcbrine

    wmcbrine Ziphead

    10,369
    22
    Aug 2, 2003
    Thanks, the wiki was wrong. AFAIK, it has never worked that way. Sorry.
     
  15. mlippert

    mlippert New Member

    59
    0
    Apr 2, 2010
    Massachusetts
    I can accept that. Thanks for letting me know. One long line it is :)
     
  16. lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    lrhorer once asked me which display I preferred, the one produced by Vidmgr or the one produced by pyTivo, clearly implying that only an idiot would prefer the latter. In point of fact, this is the display I prefer:

    [​IMG]
     
  17. innocentfreak

    innocentfreak Active Member

    8,950
    3
    Aug 25, 2001
    Florida
    Is this just via a normal pull or push? Also what are you using for images and metadata scraping?
     
  18. lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    This is a normal pull. Initial metadata for the episode was acquired from theTVDB using pyTivoMetaThis. I altered the time entry to the GMT of the actual first showing and added programId (acquired from zap2it). I also created a .default file with the displayMajorNumber, callsign, and showingBits.

    The graphic is acquired by the TiVo using the seriesId and, for a recent episode or one that is being/has been rerun soon/recently, most of the metadata, including Season and Episode numbers, is acquired by the TiVo based on programId.

    Unfortunately, this doesn't always work as I would like. I keep hoping that TiVo will fix this at some point but that hope might be in vain.
     
  19. mattack

    mattack Active Member

    20,750
    4
    Apr 9, 2001
    sunnyvale
    Umm, I presume those are illegally downloaded files, since HBO doesn't allow transfers.
     
  20. lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    Who say's that the video described by the metadata is the one actually in the recording?
     

Share This Page