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. Jan 5, 2014 #4561 of 5682
    zundian

    zundian New Member

    63
    0
    Mar 5, 2008
    It appears to have been an issue with Windows 8's new sharing scheme. I've "unshared" everything and it's working now
     
  2. Jan 7, 2014 #4562 of 5682
    innocentfreak

    innocentfreak Active Member

    8,950
    3
    Aug 25, 2001
    Florida
    I am having an issue pushing a couple of shows in a folder.

    This is the only message after I queue the episodes.

    Unhandled exception in thread started by <unbound method Video.process_queue>
    ERROR:pyTivo:Exception in pyTivo
    Traceback (most recent call last):
    File "C:\Pytivo\wmcbrine\plugins\video\video.py", line 119, in process_queue
    self.push_one_file(item)
    File "C:\Pytivo\wmcbrine\plugins\video\video.py", line 69, in push_one_file
    file_info['valid'] = transcode.supported_format(f['path'])
    File "C:\Pytivo\wmcbrine\plugins\video\transcode.py", line 1007, in supported_
    format
    if video_info(inFile)['Supported']:
    File "C:\Pytivo\wmcbrine\plugins\video\transcode.py", line 767, in video_info
    fname = fname.encode('iso8859-1')
    UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2019' in position
    107: ordinal not in range(256)

    MediaInfo
    Code:
    Format                                   : Matroska
    Format version                           : Version 4 / Version 2
    File size                                : 1.29 GiB
    Duration                                 : 42mn 34s
    Overall bit rate                         : 4 334 Kbps
    Encoded date                             : UTC 2013-11-07 13:14:38
    Writing application                      : mkvmerge v6.4.1 ('Omega Point') built on Sep 16 2013 22:05:10
    Writing library                          : libebml v1.3.0 + libmatroska v1.4.1
    
    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L3.1
    Format settings, CABAC                   : No
    Format settings, ReFrames                : 2 frames
    Codec ID                                 : V_MPEG4/ISO/AVC
    Duration                                 : 42mn 34s
    Bit rate                                 : 3 864 Kbps
    Width                                    : 1 280 pixels
    Height                                   : 718 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Constant
    Frame rate                               : 23.976 fps
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Bits/(Pixel*Frame)                       : 0.175
    Stream size                              : 1.15 GiB (89%)
    Language                                 : English
    Default                                  : Yes
    Forced                                   : No
    Color primaries                          : BT.709
    Transfer characteristics                 : BT.709
    Matrix coefficients                      : BT.709
    
    Audio
    ID                                       : 2
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Mode extension                           : CM (complete main)
    Format settings, Endianness              : Big
    Codec ID                                 : A_AC3
    Duration                                 : 42mn 34s
    Bit rate mode                            : Constant
    Bit rate                                 : 384 Kbps
    Channel(s)                               : 6 channels
    Channel positions                        : Front: L C R, Side: L R, LFE
    Sampling rate                            : 48.0 KHz
    Bit depth                                : 16 bits
    Compression mode                         : Lossy
    Stream size                              : 117 MiB (9%)
    Language                                 : English
    Default                                  : Yes
    Forced                                   : No
    
    Text
    ID                                       : 3
    Format                                   : UTF-8
    Codec ID                                 : S_TEXT/UTF8
    Codec ID/Info                            : UTF-8 Plain Text
    Language                                 : English
    Default                                  : No
    Forced                                   : No
     
  3. Jan 7, 2014 #4563 of 5682
    wmcbrine

    wmcbrine Ziphead

    10,360
    22
    Aug 2, 2003
    The only relevant thing here is the one thing you haven't shown, the filename. :) In this case, it's a fancy quote character " ’ ", which I would replace with " ' ".

    But this makes me think I need to revisit the general issue of character sets under Windows. (Pretty much everything else uses UTF-8 now, which makes this much easier.)
     
  4. Jan 8, 2014 #4564 of 5682
    innocentfreak

    innocentfreak Active Member

    8,950
    3
    Aug 25, 2001
    Florida
    Thanks. It looks like I had an extra file that used the special character and not the actual video so it was throwing it off. Deleted those, restarted PyTiVo and it is processing now. I had to restart PyTiVo because the show just sat in queued status and wouldn't try to process when I pushed it again after removing the misnamed file.
     
  5. Zu Nim

    Zu Nim Registerer Used

    31
    0
    Apr 20, 2012
    Is there a way to specify a separate directory for the .pyTivo-temp files? It looks like they're always created in the same directory as the media.
     
  6. Joe Siegler

    Joe Siegler New Member

    780
    0
    May 10, 2000
    Garland, TX
    I tried copying some episodes of Brooklyn Nine-Nine from my archive on my computer back to my TiVo, and whether I would push them or pull them from the TiVo itself, some of the episodes wouldn't work - I'd end up with a file on my TiVo that has nothing in it.

    I sat at the computer now and pushed one (or tried), and the same thing happened, only this time I captured the errors. A few remarks.

    1) MICHAEL is the name of my TiVo (my brother's idea of a joke, and I've never changed it)
    2) This was an episode of Brooklyn Nine-Nine that my TiVo recorded itself, and I don't decrypt the files, this is a .TiVo file we're talking about here.

    I've copied things back to the computer before, and some of the other Brooklyn Nine-Nine episodes I have saved copy fine. About half of them do not. No idea how to get around this for now. Any thoughts?

    Code:
    INFO:pyTivo.video.video:[15/Jan/2014 16:00:53] Queued "J:\Tivo\Brooklyn Nine-Nine\Brooklyn Nine-Nine - The Tagger (Recorded Sep 24, 2013, KDFWDT).TiVo" for Push to MICHAEL
    INFO:pyTivo:127.0.0.1 [15/Jan/2014 16:00:53] "POST /TiVoConnect HTTP/1.1" 200 - 
    Encryption by QUALCOMM ;)
    
    INFO:pyTivo:127.0.0.1 [15/Jan/2014 16:00:58] "GET /TiVoConnect?Command=QueryContainer&Container=Tivo%20Recordings/Brooklyn%20Nine-Nine&Format=text/html HTTP/1.1" 200 -
    
    ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
      built on Mar 28 2013 00:34:08 with gcc 4.8.0 (GCC)
      configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
      libavutil      52. 18.100 / 52. 18.100
      libavcodec     54. 92.100 / 54. 92.100
      libavformat    54. 63.104 / 54. 63.104
      libavdevice    54.  3.103 / 54.  3.103
      libavfilter     3. 42.103 /  3. 42.103
      libswscale      2.  2.100 /  2.  2.100
      libswresample   0. 17.102 /  0. 17.102
      libpostproc    52.  2.100 / 52.  2.100
    [mpeg2video @ 000000000034b640] 0x0 is invalid
        Last message repeated 13 times
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=138464, dts=138465, size=2351
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=147473, dts=147474, size=2719
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=156482, dts=156483, size=2351
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=165491, dts=165492, size=2719
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=174500, dts=174501, size=7871
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=183509, dts=183510, size=2351
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=192518, dts=192519, size=2719
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=201527, dts=201528, size=2719
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=210536, dts=210537, size=3087
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=219545, dts=219546, size=3823
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=228554, dts=228555, size=2719
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=237563, dts=237564, size=2719
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=246572, dts=246573, size=2535
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=255581, dts=255582, size=2903
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=264590, dts=264591, size=3271
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=273599, dts=273600, size=2903
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=282608, dts=282609, size=2903
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=291617, dts=291618, size=2903
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=300626, dts=300627, size=3087
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=309635, dts=309636, size=3455
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=318644, dts=318645, size=2903
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=327653, dts=327654, size=2903
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=336662, dts=336663, size=2535
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=345671, dts=345672, size=1247
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=354680, dts=354681, size=1063
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=363689, dts=363690, size=1063
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=372698, dts=372699, size=1063
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=381707, dts=381708, size=1063
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=390716, dts=390717, size=1063
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=399725, dts=399726, size=1063
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=408734, dts=408735, size=1063
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=417743, dts=417744, size=1063
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=426752, dts=426753, size=1063
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=435761, dts=435762, size=1063
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=444770, dts=444771, size=1063
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=453779, dts=453780, size=1063
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=462788, dts=462789, size=16887
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=471797, dts=471798, size=3639
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=480806, dts=480807, size=3271
    [mpeg @ 00000000039704a0] Invalid timestamps stream=1, pts=489815, dts=489816, size=2903
    [mpeg @ 00000000039704a0] Estimating duration from bitrate, this may be inaccurate
    Input #0, mpeg, from 'pipe:':
      Duration: N/A, start: 1.000000, bitrate: 448 kb/s
        Stream #0:0[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
        Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc
    Please use -b:a or -b:v, -b is ambiguous
    Stream map '0:2' matches no streams.
    INFO:pyTivo.video.video:[15/Jan/2014 16:02:18] Done sending "J:\Tivo\Brooklyn Nine-Nine\Brooklyn Nine-Nine - The Tagger (Recorded Sep 24, 2013, KDFWDT).TiVo" to
     MICHAEL, 0 bytes, 0.00 Mb/s
    
     
  7. wmcbrine

    wmcbrine Ziphead

    10,360
    22
    Aug 2, 2003
    You'd be better off decrypting them. I'm actually a little confused as to what's happening here -- I'd like to see more of the log, and preferably, with debug on. But, in general, .TiVo files can't be pushed as-is -- only pulled -- so they have to be decrypted to push them. Normally, pyTivo would do this on the fly. Your output here looks like FFmpeg trying to read an encrypted .TiVo file -- which it can do, to a limited extent, and which pyTivo does for the purpose of getting info about the file -- but it looks like this was an actual attempt to reencode, which it shouldn't have been doing at that point. :confused:
     
  8. Joe Siegler

    Joe Siegler New Member

    780
    0
    May 10, 2000
    Garland, TX
    OK, I'll try it again from the TiVo side and see what happens.

    Let me know what other log I need to get at, and I'll be happy to pass it on.
     
  9. wmcbrine

    wmcbrine Ziphead

    10,360
    22
    Aug 2, 2003
  10. wmcbrine

    wmcbrine Ziphead

    10,360
    22
    Aug 2, 2003
    Not a different log, just a more detailed version of that one, by turning on the "debug" flag. (Also, don't edit it down.)
     
  11. Joe Siegler

    Joe Siegler New Member

    780
    0
    May 10, 2000
    Garland, TX
    I'll have to give that a try in the morning. Not near computer, and by the time I get home to where all this stuff is, it'll be after midnight, too tired.

    Tkx for helping, I'll have something else tomorrow.

    Edit: NOTE.. I captured that out of the DOS window that is always running when I'm running pyTiVo. Does it save its log on the HD anywhere? If so, I'm not aware of that (as I've never had need to look at it before).
     
  12. wmcbrine

    wmcbrine Ziphead

    10,360
    22
    Aug 2, 2003
    It depends how you set it up. The command window output is fine... just scroll back a bit more. :)
     
  13. Joe Siegler

    Joe Siegler New Member

    780
    0
    May 10, 2000
    Garland, TX
    Googled for it, and found this to put in the pytivo config file. It seems to work. I'll give the videos a test in the morning when I'm more awake. :)

    Code:
    [loggers] 
    keys=root 
    
    [handlers] 
    keys=console,rotfile 
    
    [formatters] 
    keys=basicform 
    
    [logger_root] 
    level=DEBUG 
    handlers=console,rotfile 
    #handlers=console 
    
    [handler_console] 
    class=StreamHandler 
    formatter=basicform 
    args=(sys.stdout,) 
    
    [handler_rotfile] 
    class=handlers.RotatingFileHandler 
    formatter=basicform 
    args=('C:\pyTivo\debug.log', 'a', 10485760, 5) 
    
    [formatter_basicform] 
    format=%(asctime)s %(levelname)-5s %(name)s: %(message)s 
    
     
  14. djl25

    djl25 C64 hacker

    95
    0
    May 26, 2005
    Providence, RI
    Finally got around to figuring this out. Under Mavericks, I had to turn off Zeroconf in pyTivo's settings, in order to run it at startup as root. It may be because I have Virtualbox installed, which introduces a second (virtual) network adapter.

     
  15. Joe Siegler

    Joe Siegler New Member

    780
    0
    May 10, 2000
    Garland, TX
    OK, here. I cleared out the log, turned on pyTiVo, and then attempted to transfer one of the files that failed. After that, I then transferred a file that worked fine. Then closed out pyTiVo so I could mark this as it's own event log (so to speak - that make sense?)

    The thing about this is that I've been sending .TiVo files back and forth for quite some time now, this is the first I've run into programs that it is having problems with.

    Sending as a file attachment, as the debug log file is like 96k. Too large to post as text here.
     

    Attached Files:

  16. Dan203

    Dan203 Super Moderator Staff Member TCF Club

    37,417
    156
    Apr 17, 2000
    Nevada
    Is there any way to remotely delete a file from a pyTiVo share? I noticed when I press delete on the remote I get a "bong" sound, so I'm guessing no delete command is even sent to the pyTiVo server. Is there maybe a separate HME front end for pyTiVo that allows remote delete?
     
  17. natallica

    natallica Member

    81
    1
    Jan 10, 2005
    Fairfax, VA
    Hi -

    I'm new to PyTivo. I tried PyTivoX, but I was told to get plain PyTivo in order to be able to stream from my Mac to my TiVo Elite.

    I'm having a hard time figuring out what files to download to get PyTivo installed and this thread is really difficult to search through.

    I was led to this page to download:

    https://github.com/wmcbrine/pytivo

    What am I downloading from there? Just the PyTivo.py file?

    I appreciate any and all help!

    Thanks...

    -- N
     
  18. lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    You need to download the entire package. The best place to start is actually here.
     
  19. natallica

    natallica Member

    81
    1
    Jan 10, 2005
    Fairfax, VA
    Nevermind. I found the big ZIP icon that I was missing. I've got the installer now. Thanks!
     
  20. natallica

    natallica Member

    81
    1
    Jan 10, 2005
    Fairfax, VA
    Hi everyone -

    Thanks for the help. I have pyTivo running on my Mac and am able to transfer files to my TiVo Elite.

    Thanks again. This is a really cool piece of software!
     

Share This Page