pyTivo - Transcoding server

Discussion in 'TiVo Home Media Features & TiVoToGo' started by armooo, Nov 25, 2006.

  1. Soapm

    Soapm Active Member

    1,666
    9
    May 9, 2007
    Aurora, CO
    I am having trouble with the audio of files encoded with Video Redo being played on my TivoHD and Premier. The sound goes in and out and then garbles (like when you'd turn a reel to reel tape fast by hand). My pyTivo settings were changed to default in the HD Tivo section and here is the mediainfo on one of the files in question; Anyone see a reason this file shouldn't transfer and play just fine to my Tivo's.

    Ps...The files play just fine on the pc using media player classic and I've verified that my debian 9.5 (stretch) video server has ffmpeg 7:3.2.12-1. I'm puzzled why they won't play on either Tivo???

    ps..s ps... Other shows play fine on my Tivo's, the problem seems limited to the shows I've recently processed using Video Redo TVSuite5.

    Code:
    General
    Complete name                            : Patton 360 - s01e01 - Blood & Guts (North Africa, November - December 1942).mp4
    Format                                   : MPEG-4
    Format profile                           : Base Media
    Codec ID                                 : isom (isom/iso2/mp41)
    File size                                : 743 MiB
    Duration                                 : 42 min 35 s
    Overall bit rate mode                    : Variable
    Overall bit rate                         : 2 440 kb/s
    Movie name                               :  E Mng 1-
    Law rating                               : TV-PG (V)
    Encoded date                             : UTC 1904-01-01 00:00:00
    Tagged date                              : UTC 1904-01-01 00:00:00
    Writing application                      : VideoReDo (Lavf56.25.101)
    
    Video
    ID                                       : 1
    Format                                   : MPEG Video
    Format version                           : Version 2
    Format profile                           : Main@Main
    Format settings, BVOP                    : Yes
    Format settings, Matrix                  : Custom
    Format settings, GOP                     : Variable
    Codec ID                                 : 61
    Duration                                 : 34 min 20 s
    Bit rate mode                            : Variable
    Bit rate                                 : 2 781 kb/s
    Maximum bit rate                         : 15.0 Mb/s
    Width                                    : 704 pixels
    Height                                   : 480 pixels
    Display aspect ratio                     : 4:3
    Frame rate mode                          : Constant
    Frame rate                               : 29.970 (30000/1001) FPS
    Standard                                 : NTSC
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Compression mode                         : Lossy
    Bits/(Pixel*Frame)                       : 0.275
    Time code of first frame                 : 00:00:00;00
    Time code source                         : Group of pictures header
    GOP, Open/Closed                         : Open
    GOP, Open/Closed of first frame          : Closed
    Stream size                              : 683 MiB (92%)
    Encoded date                             : UTC 1904-01-01 00:00:00
    Tagged date                              : UTC 1904-01-01 00:00:00
    
    Audio
    ID                                       : 2
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Mode extension                           : CM (complete main)
    Format settings, Endianness              : Big
    Codec ID                                 : ac-3
    Duration                                 : 42 min 35 s
    Bit rate mode                            : Constant
    Bit rate                                 : 192 kb/s
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 31.250 FPS (1536 spf)
    Bit depth                                : 16 bits
    Compression mode                         : Lossy
    Stream size                              : 58.5 MiB (8%)
    Language                                 : English
    Default                                  : Yes
    Alternate group                          : 1
    Encoded date                             : UTC 1904-01-01 00:00:00
    Tagged date                              : UTC 1904-01-01 00:00:00
    
    Text #1
    ID                                       : 1-CC1
    Format                                   : EIA-608
    Muxing mode                              : A/53 / DTVCC Transport
    Muxing mode, more info                   : Muxed in Video #1
    Duration                                 : 34 min 20 s
    Bit rate mode                            : Constant
    Stream size                              : 0.00 Byte (0%)
    Encoded stream size                      : 0.00 Byte (0%)
    
    Text #2
    ID                                       : 1-CC3
    Format                                   : EIA-608
    Muxing mode                              : A/53 / DTVCC Transport
    Muxing mode, more info                   : Muxed in Video #1
    Duration                                 : 34 min 20 s
    Bit rate mode                            : Constant
    Stream size                              : 0.00 Byte (0%)
    Encoded stream size                      : 0.00 Byte (0%)
    
    Text #3
    ID                                       : 1-CC1
    Format                                   : EIA-608
    Muxing mode                              : SCTE 20
    Muxing mode, more info                   : Muxed in Video #1
    Duration                                 : 34 min 20 s
    Bit rate mode                            : Constant
    Stream size                              : 0.00 Byte (0%)
    Encoded stream size                      : 0.00 Byte (0%)
    
    Text #4
    ID                                       : 1-CC3
    Format                                   : EIA-608
    Muxing mode                              : SCTE 20
    Muxing mode, more info                   : Muxed in Video #1
    Duration                                 : 34 min 20 s
    Bit rate mode                            : Constant
    Stream size                              : 0.00 Byte (0%)
    Encoded stream size                      : 0.00 Byte (0%)
    
    Edited to add... Just noticed something, any reason the audio and video duration's would be different?

    File Duration : 42 min 35 s
    Video Duration : 34 min 20 s
    Audio Duration : 42 min 35 s

    Edited again to add: I did one of the shows again with VideoRedo v3 and it works flawlessly, it appears the problem is something to do with VideoRedo TV Suite V5 so I will look for help with that elsewhere. I need a break knowing that I took the last week off to get my Tivo cleared off (and some honey do's) and just learned that that the audio is messed up in all the shows I've done in VideoRedo v5. I'm a little frustrated right now knowing we're talking hundreds of shows, some of which I deleted from the Tivo thinking I had them edited and on my video server...
     
    Last edited: Sep 26, 2018
  2. Oct 2, 2018 #5982 of 6028
    Marconi

    Marconi TiVo Junkie

    451
    0
    Sep 8, 2001
    Page, AZ USA
    Couple of questions/issues. (Note that I'm using Macs.)

    I use pyTiVo (don't know the version - haven't updated in years) primarily for watching episodes of whole series I have archived with KMTTG. Occasionally, however, I'd like to play back a season of something I have on DVD. Let's face it, TiVo playback is superior to any optical player, so I'd like to rip the DVD episodes and serve them to my TiVo with pyTiVo.

    The problem I have with this is that I need the closed captions/subtitles. I'm currently using a ripper that works to add the subtitles to each ripped file, but when I transfer the files to TiVo using pyTiVo, the CCs are lost in the transcoding. I figure it must be a configuration problem on my end.

    The subtitles are definitely there and play fine on my various Mac player apps. Tivo just says there are none. (TiVo also says the audio format is "unrecognized," though the sound plays okay.)

    Can anyone help with what I need to do to get CCs to survive the transcoding process? ( I routinely transfer back recordings that were saved from TiVo and the CCs survive the trip back.)

    Related: I have never been able to download (kmttg) an HD recording and get it to go back via pyTiVo.

    The pyTiVo server settings have spots for both SD and HD settings, though all are blank.
     
  3. Oct 2, 2018 #5983 of 6028
    mattack

    mattack Well-Known Member

    24,833
    566
    Apr 9, 2001
    sunnyvale
    I don't really know the CC problem. totally hand-wavey guess: There will probably be a way you can "reencode" the video/CC streams without actually changing the quality (and much faster). I have RARELY seen CC missing even on a show I downloaded directly from the Tivo.. But I think basically the CC must be there in a different format... and the Tivo only needs to know how to deal with couple of formats it ever deals with in the real world.

    About the HD recording part -- are you able to play those recordings on your Mac fine? If SO, this isn't the problem. If NOT... if they appear to just be audio... then you're hosed because you didn't actually download them correctly. Nowadays, most(*) HD channels are using MPEG 4, so you have to download them from the Tivo in Transport Stream format. But, since Transport Stream downloads CAN have glitches in them (AFAIK, due to bugs on Tivo's end), you want to only use it when necessary.

    (*) The HD broadcast channels are "still" MPEG 2. Which means you can still download them the "old" way. This also means they're much larger (up to ~6 gigs/hour vs around a gig an hour for MPEG 4). Though tangentially, I have a few things, like CNNHD recordings, that I can't download anymore even in Transport Stream format.. They still end up as audio only recordings.
     
    mlippert likes this.
  4. Oct 2, 2018 #5984 of 6028
    Marconi

    Marconi TiVo Junkie

    451
    0
    Sep 8, 2001
    Page, AZ USA
    Yes. It is in transferring them back to a TiVo where it fails.
     
  5. Oct 2, 2018 #5985 of 6028
    mattack

    mattack Well-Known Member

    24,833
    566
    Apr 9, 2001
    sunnyvale
    Then I don't get it, since that part works for me fine (both TS and PS downloads).. and AFAIK, I don't have any extra stuff beyond the initial pytivo download -- except I seem to remember you do an initial download of "tools" (hopefully I'm not confusing this with kmttg).. but beyond that, I haven't added any extra..

    and have used pytivo to transfer SD & HD recordings back.. and used streambaby too (so I can still watch with Tivo UI without taking up the space for the transfer)..
     
  6. Oct 2, 2018 #5986 of 6028
    wmcbrine

    wmcbrine Well-Known Mumbler

    11,650
    784
    Aug 2, 2003
    Subtitles and closed captions are different things. CC is rendered from text by the playback device; DVD subtitles are pre-rendered graphics, stored as a separate stream. TiVos don't support DVD subtitles, unless you reencode the video with the subtitles merged in as a new, single video stream (but then you can't turn the subtitles off).

    Common rip formats have their own ways to encode plain-text subtitles, but the TiVo will only handle CC (or the burned-in kind). pyTivo can't translate these other formats to CC. (Streambaby can display them, using an HME overlay.)
     
    mlippert likes this.
  7. Oct 3, 2018 #5987 of 6028
    Marconi

    Marconi TiVo Junkie

    451
    0
    Sep 8, 2001
    Page, AZ USA
    I had no idea. That explains a lot. Thanks.

    I guess I can stop chasing that wild goose.

    Now if I can just figure out how to burn the subtitles into the video while ripping using Mac DVD Ripper Pro (MDRP).

     
  8. Oct 4, 2018 #5988 of 6028
    mattack

    mattack Well-Known Member

    24,833
    566
    Apr 9, 2001
    sunnyvale
    argh, yes I know that.. sorry.. (I'm argh-ing at myself..)

    Though I swear DVDs also often/usually did have old style CC *also* which you would see if you turned on the TV's CC and not the DVD player's subtitles.
     
  9. Jul 9, 2019 #5989 of 6028
    Soapm

    Soapm Active Member

    1,666
    9
    May 9, 2007
    Aurora, CO
    Hey all, since upgrading my debian video server to buster, I haven't been able to get the web version of pyTivo to connect to my TivoHD Series 3. I'm getting the below error...

    It connects to my series 4 Tivo just fine, I can also pull movies from the video server using the TivoHD. I'm puzzled, did Tivo make a change to the mind server or something???

    PS... The MAK hasn't been changed in the config file and it's the same as my series 4 tivo so I'm sure that's correct.

    Code:
    pyTivo was unable to connect to the TiVo at 192.168.0.xxx.
    
    This is most likely caused by an incorrect Media Access Key. Please return to the Settings page and double check your tivo_mak setting.
    
    <urlopen error [SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:727)>
    ps... ps... KMTTG is working fine with that Tivo???
     
  10. Jul 9, 2019 #5990 of 6028
    wmcbrine

    wmcbrine Well-Known Mumbler

    11,650
    784
    Aug 2, 2003
    The mind server is long dead, at least for our purposes (push).

    You can ignore that; it's just generic advice. In this case, we have an explicit error message, "SSL: UNSUPPORTED_PROTOCOL".

    It doesn't use Python. I can only guess that the problem is due to a change in the Python version that comes with your updated distro. Presumably, the Series 3 (with its old software) is wanting an SSL variant that's no longer supported. But I dunno. I'll look into it, but, I no longer have a working Series 3 myself.
     
    ClearToLand likes this.
  11. Jul 9, 2019 #5991 of 6028
    Soapm

    Soapm Active Member

    1,666
    9
    May 9, 2007
    Aurora, CO
    Is there anything I can do to help you look into it (short of sending you my series 3 Tivo)? Can I make some test or send some logs from my server? I'm not good with Debian but I can follow instructions if you tell me what to do.

    ps... During the update I recall it asking to delete obsolete files, I remember several python's being in that list even though I have a grip of them left. Is it possible to reinstall that flavor?

    Code:
    root@lenny:/# ls /usr/bin/python*
    /usr/bin/python            /usr/bin/python2-config  /usr/bin/python3m
    /usr/bin/python2           /usr/bin/python3         /usr/bin/python-config
    /usr/bin/python2.7         /usr/bin/python3.7       /usr/bin/pythontex
    /usr/bin/python2.7-config  /usr/bin/python3.7m      /usr/bin/pythontex3
     
  12. Jul 9, 2019 #5992 of 6028
    mlippert

    mlippert Active Member

    301
    60
    Apr 2, 2010
    Massachusetts
    @Soapm I'm curious what version of python you are now using to run pytivo. If you run
    Code:
    python --version
    from a terminal window it will tell you.

    @Soapm I wonder what version of pytivo you're running. I guess the question there is where did you get it from and when?

    @wmcbrine you inspired a quick google which found this stackoverflow
    python ssl ssl.SSLError: [SSL: UNSUPPORTED_PROTOCOL] unsupported protocol (_ssl.c:590)

    However, I think you might have addressed this a while back. I see one commit mentioning ssl 6b352c204a2c0bda49bbd9e2edbac1f3789a30bc on 12/23/2014 with a commit message of
    So maybe something else changed or @Soapm is using a particularly old version of pytivo?
     
  13. Jul 9, 2019 #5993 of 6028
    Soapm

    Soapm Active Member

    1,666
    9
    May 9, 2007
    Aurora, CO
    Code:
    root@lenny:/# python --version
    Python 2.7.16
    I use "git pull" to update my pyTivo, unfortunately I don't know how to get the version but it says;

    Code:
    root@lenny:/pyTivo# git pull
    Already up to date.
     
    mlippert likes this.
  14. Jul 9, 2019 #5994 of 6028
    mlippert

    mlippert Active Member

    301
    60
    Apr 2, 2010
    Massachusetts
    @Soapm that info should prove useful in trying to figure this out (I'm not actually looking into it but I think it will help @wmcbrine)

    These 2 commands may also provide useful information about your setup.
    "git remote -v" will tell where your pytivo comes from, and "git show -s" will tell us about the commit that is in your working directory.
     
  15. Jul 9, 2019 #5995 of 6028
    Soapm

    Soapm Active Member

    1,666
    9
    May 9, 2007
    Aurora, CO
    Code:
    root@lenny:/pyTivo# git remote -v
    origin  git://repo.or.cz/pyTivo/wmcbrine.git (fetch)
    origin  git://repo.or.cz/pyTivo/wmcbrine.git (push)
    Code:
    root@lenny:/pyTivo# git show -s
    commit 4e5f85739767287098c977276a4fdb55e1f39735 (HEAD -> master, origin/master, origin/HEAD)
    Author: William McBrine <wmcbrine@gmail.com>
    Date:   Wed May 9 06:02:42 2018 -0400
    
     Still need to skip "_tivo_4K" sections when building list of found TiVos.
     
    mlippert likes this.
  16. wmcbrine

    wmcbrine Well-Known Mumbler

    11,650
    784
    Aug 2, 2003
    No, he's just using a particularly new version of Python, and pyTivo has not been updated to address this SSL problem. I don't need more info, thanks.
     
    ClearToLand likes this.
  17. Oct 1, 2019 #5997 of 6028
    Hcour

    Hcour Well-Known Member

    1,796
    499
    Dec 24, 2007
    Not sure if you take suggestions but, if possible, it would be great if pyTivo could show how much space is free on the Tivo hard drive.
     
  18. Oct 1, 2019 #5998 of 6028
    mattack

    mattack Well-Known Member

    24,833
    566
    Apr 9, 2001
    sunnyvale
    I think I posted about this a while ago. But I have some recordings that I can't transfer BACK to the Tivo with pytivo because there's an error shown.. it's like the video has some sort of error in it. I will try to remember to copy the info the next time I see it.

    But these were absolutely 'raw' recordings downloaded from Tivo (in PS format) and only decoded.. no other modification done.

    I guess I'm wondering how to do a simple "verify/sanity check/convert only if absolutely necessary" kind of step in pytivo? if necessary, I could have it always reencode I guess, but that's way slower than realtime, I presume.
     
  19. Oct 1, 2019 #5999 of 6028
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    50,609
    5,889
    Apr 17, 2000
    Nevada
    Not possible as that information isn't accessible with the http API that pyTivo uses. kmttg uses a newer mind/rpc API that has access to all sorts of information like this, but it requires a certificate which they current hack out of the iOS app. I considered adding mind/rpc support to pyTivo at one point but I was concerned that the certificate would get revoked and it would break the product.
     
  20. Oct 1, 2019 #6000 of 6028
    Dan203

    Dan203 Super Moderator Staff Member TCF Club

    50,609
    5,889
    Apr 17, 2000
    Nevada
    Have you tried running them through VideoReDo QuickStream Fix? It might be able to repair the issue and allow you to transfer them back properly.
     

Share This Page