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

New program for 1 step TTG downloads, decryption, encoding - kmttg

Discussion in 'TiVo Home Media Features & TiVoToGo' started by moyekj, Mar 15, 2008.

  1. Jan 4, 2013 #4561 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    I just posted a new release v0p9g which should fix this issue. Previously kmttg was relying on Bonjour or TiVo Beacon to get TSN for your TiVos (which is required for most Remote functions). With this update the TSN is now obtained upon login to middlemind server. (Also means this will now work as well when running kmttg outside your LAN).
     
  2. Jan 4, 2013 #4562 of 10412
    sean584995

    sean584995 New Member

    12
    0
    Dec 24, 2012
    Folks, Looks like I'm cannot download movies to my PC using kmttg from TIVO that were recorded on HBO - says something about copyright protection. Is that a limitation of this software? Is there any workaround?? Thanks.
     
  3. Jan 4, 2013 #4563 of 10412
    lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    It is the TiVo enforcing the copy protection flag applied by your Cable provider. Most companies copy protect premium channel content like HBO, some do it on just about everything. Content so flagged cannot be transferred. It can be streamed.
     
  4. Jan 5, 2013 #4564 of 10412
    jcthorne

    jcthorne Active Member

    2,720
    2
    Jan 28, 2002
    Houston

    Has anyone set this up and used it? What needs to be running on the tivo? Looks very useful but do not understand fully what its supposed to do. Never heard of 'pytivo stream' before.

    Would like some more information on how this works and how its capabilty might be used. The 1.1GB buffer is why I gave up on streambaby long ago.
     
  5. Jan 5, 2013 #4565 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    It's a brand new discovery I made recently with RPC (thus for series 4 units only) on how to launch TiVoCast HME application using a custom URL. Thus in this implementation I launch TiVoCast HME and point it to a pyTivo video URL which accomplishes HME streaming without the pesky 1.1GB max buffer limit. With TiVoCast HME player it buffers the entire video no matter what size it is.
    To get it to work all you need is:
    1. A series 4 TiVo
    2. pyTivo running with at least 1 video share defined
    3. Video you want to stream has to reside within a pyTivo video share folder structure and it has to be either mpeg2 program stream or a TiVo compatible mp4.
    4. kmttg configured to point to your pyTivo.conf

    In best case scenario it would work for videos that need to be transcoded by pyTivo, but I haven't been able to get that working.
     
  6. Jan 5, 2013 #4566 of 10412
    sean584995

    sean584995 New Member

    12
    0
    Dec 24, 2012
    Thanks. I suppose that means those shows cannot be saved to a file but can be streamed to other devices to watch them?
     
  7. Jan 5, 2013 #4567 of 10412
    lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    They can be streamed Premiere-to-Premiere and I think Premiere to TiVo Stream (and thus to other devices). Note that, even with the Stream, this is for immediate viewing and you cannot load them to a mobile devce for later viewing.
     
  8. Jan 5, 2013 #4568 of 10412
    spocko

    spocko TiVo HD

    427
    1
    Feb 4, 2009
    Works for me now, thanks!
     
  9. Jan 5, 2013 #4569 of 10412
    lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    +1

    Do I need an up to date ffmpeg to use the pyTivo stream ability?
     
  10. Jan 5, 2013 #4570 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    No. pyTivo stream doesn't work with transcoded videos so it doesn't matter.
     
  11. Jan 5, 2013 #4571 of 10412
    lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    Tried it and got the following error:

    streamFile - JSONObject["vHost"] is not a JSONObject.
     
  12. Jan 5, 2013 #4572 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    Looks like a problem parsing pyTivo output on video file details - perhaps there is more than one "vHost" entry in response. Make sure you are using recent version of wmcbrine pyTivo.
    If you can please execute this in a browser and post the resulting xml in between code tags or by attaching a file to a post in this thread:
    Code:
    http://localhost:9032/TiVoConnect?Command=TVBusQuery&Container=[shareName]&File=/[fileName]
    Substitute [shareName] for pyTivo video share name.
    Substitute [fileName] for name of file you are trying to stream with a path relative to top video share folder. (Note that if file name has special characters and/or spaces they need to be url encoded so it may be easier if you just rename the file to something very simple for testing with).
     
  13. Jan 6, 2013 #4573 of 10412
    lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    Code:
    <TvBusMarshalledStruct:TvBusEnvelope xs:schemaLocation="http://tivo.com/developer/xml/idl/TvBusMarshalledStruct TvBusMarshalledStruct.xsd http://tivo.com/developer/xml/idl/TvPgdRecording TvPgdRecording.xsd http://tivo.com/developer/xml/idl/TvBusDuration TvBusDuration.xsd http://tivo.com/developer/xml/idl/TvPgdShowing TvPgdShowing.xsd http://tivo.com/developer/xml/idl/TvDbShowingBit TvDbShowingBit.xsd http://tivo.com/developer/xml/idl/TvBusDateTime TvBusDateTime.xsd http://tivo.com/developer/xml/idl/TvPgdProgram TvPgdProgram.xsd http://tivo.com/developer/xml/idl/TvDbColorCode TvDbColorCode.xsd http://tivo.com/developer/xml/idl/TvPgdSeries TvPgdSeries.xsd http://tivo.com/developer/xml/idl/TvDbShowType TvDbShowType.xsd http://tivo.com/developer/xml/idl/TvPgdChannel TvPgdChannel.xsd http://tivo.com/developer/xml/idl/TvDbTvRating TvDbTvRating.xsd http://tivo.com/developer/xml/idl/TvDbRecordQuality TvDbRecordQuality.xsd http://tivo.com/developer/xml/idl/TvDbBitstreamFormat TvDbBitstreamFormat.xsd" xs:type="TvPgdRecording:TvPgdRecording"><recordedDuration>P0DT1H45M1S</recordedDuration><vActualShowing/><vBookmark/><recordingQuality value="75">HIGH</recordingQuality><showing><showingBits value="0"/><time>2012-06-16T00:00:00</time><duration>P0DT1H45M1S</duration><program><vActor><element>Shimura|Takashi</element><element>Kochi|Momoko</element><element>Takarada|Akira</element><element>Hirata|Akihiko</element><element>Sakai|Sachio</element><element>Murakami|Fuyuki</element><element>Yamamoto|Ren</element></vActor><vAdvisory>
          </vAdvisory><vChoreographer>
          </vChoreographer><colorCode value="4">COLOR</colorCode><description>A fire-breathing behemoth terrorizes Japan after an atomic bomb awakens it from its centuries-old sleep.</description><vDirector><element>Honda|IshirĂ´</element></vDirector><vExecProducer>
          </vExecProducer><vProgramGenre><element>Science Fiction</element></vProgramGenre><vGuestStar>
          </vGuestStar><vHost>
          </vHost><isEpisode>false</isEpisode><movieYear>1954</movieYear><mpaaRating value="8">NR</mpaaRating><vProducer><element>Tanaka|Tomoyuki</element></vProducer><series><isEpisodic>false</isEpisodic><vSeriesGenre>
            </vSeriesGenre><seriesTitle>Gojira</seriesTitle><uniqueId>MV276463</uniqueId></series><showType value="5">SERIES</showType><starRating value="4">2.5</starRating><title>Gojira</title><vWriter><element>Honda|IshirĂ´</element><element>Kayama|Shigeru</element></vWriter></program><channel><displayMajorNumber>69</displayMajorNumber><displayMinorNumber>0</displayMinorNumber><callsign>TCM</callsign></channel></showing><startTime>2012-06-16T00:00:00</startTime><stopTime>2012-06-16T01:45:01.320000</stopTime></TvBusMarshalledStruct:TvBusEnvelope>
    The version of pyTivo I was running did produce two vhost entries (modified TvBus.tmpl with a full <vActualShowing> section) but I switched to a fresh install of the latest version and get the same error.
     
  14. Jan 6, 2013 #4574 of 10412
    wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    Everything that starts with a "v" can have more than one entry. Perhaps more on point, in debug mode, with transcoded videos, pyTivo adds the transcoding parameters as vHost. Maybe this isn't being escaped properly?

    Edit: Or maybe it just doesn't like the colons?
     
  15. Jan 6, 2013 #4575 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    I should have looked at the pyTivo code since I assumed vHost always had video information, didn't know it was just in debug mode. (I always have debug mode on as I like seeing the extra info). So I'll have to update my code to not rely on vHost for video info and perhaps use ffmpeg to get that myself and only use pyTivo xml for the title, subtitle and description.
     
  16. Jan 6, 2013 #4576 of 10412
    moyekj

    moyekj Well-Known Member

    11,140
    31
    Jan 23, 2006
    Mission...
    v0p9h version released with fix to the above discussed pyTivo stream issue.
     
  17. Jan 6, 2013 #4577 of 10412
    lpwcomp

    lpwcomp Active Member

    8,075
    2
    May 6, 2002
    John's...
    Excellent! Works great, even with my kmttg mods applied. Thanks for the quick response!
     
  18. Jan 15, 2013 #4578 of 10412
    cherry ghost

    cherry ghost Active Member

    5,276
    5
    Sep 13, 2005
    Chicago
    which file(s) need to be edited if the Ad Cuts are off?
     
  19. Jan 15, 2013 #4579 of 10412
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,724
    8
    Apr 6, 2000
    SF Bay Area
    Starting with KMTTG, there is .TiVo file, after decode, its .mpg.

    That's what you edit, in for example, VideoReDo.
     
  20. Jan 15, 2013 #4580 of 10412
    cherry ghost

    cherry ghost Active Member

    5,276
    5
    Sep 13, 2005
    Chicago
    I should have mentioned that I don't use VideoRedo.

    After running download/decrypt, QS Fix, Ad Detect, Ad Cut, I'm left with a .mpg, _cut.mpg, .txt, .xcl, and .edl. I notice that the first cut took out the first 1:52 of the show rather than the first 00:10. I'm assuming I can make some adjustments to the non .mpg files and re-run Ad Cut on the .mpg to produce a new _cut.mpg with the proper 00:10 cut.
     

Share This Page