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 31, 2013 #4661 of 10413
    moyekj

    moyekj Well-Known Member

    11,144
    32
    Jan 23, 2006
    Mission...
    Interesting. So if you skip QS Fix completely for these files do they get out of A/V sync down the road?

    Perhaps try an ffmpeg demux, followed by and ffmpeg remux to see what happens. I supply a kmttg encoding profile for each below:

    Starting with .mpg file using FILES tab run "encode" task with this profile:
    ff_demux.enc
    Code:
    # Description (single line, keep short)
    <description>
    ffmpeg mpeg2 demux
    
    # Encode command or script (single line)
    # Known keywords: FFMPEG, HANDBRAKE, MENCODER, PERL, INPUT, OUTPUT, PWD, CPU_CORES, SRTFILE
    <command>
    FFMPEG -y -i INPUT -vcodec copy OUTPUT -acodec copy OUTPUT.ac3 
    
    # Encoded output file extension
    <extension>
    m2v
    
    Then starting with .m2v file using FILES tab run "encode" task with this profile:
    ff_remux.enc
    Code:
    # Description (single line, keep short)
    <description>
    ffmpeg mpeg2 remux
    
    # Encode command or script (single line)
    # Known keywords: FFMPEG, HANDBRAKE, MENCODER, PERL, INPUT, OUTPUT, PWD, CPU_CORES, SRTFILE
    <command>
    FFMPEG -y -fflags genpts -i INPUT -i INPUT.ac3 -vcodec copy -acodec copy -f dvd OUTPUT
    
    # Encoded output file extension
    <extension>
    remux.mpg
    
     
  2. Jan 31, 2013 #4662 of 10413
    cherry ghost

    cherry ghost Active Member

    5,279
    6
    Sep 13, 2005
    Chicago

    I haven't tried that. I've always run QS Fix because I then use Ad Cut and encode.

    I'll try the encodes you provided.

    Thanks
     
  3. Jan 31, 2013 #4663 of 10413
    cherry ghost

    cherry ghost Active Member

    5,279
    6
    Sep 13, 2005
    Chicago
    Ok, those worked. The demux gave me a .m2v that was only 24:47, but the remux brought it back to a full hour.


    Odd that this has only happened for shows on FX.
     
  4. Jan 31, 2013 #4664 of 10413
    moyekj

    moyekj Well-Known Member

    11,144
    32
    Jan 23, 2006
    Mission...
    That is strange. I would check the remux mpg to see if it's in proper A/V sync though before going any further. I think I looked at using ffmpeg to demux then remux as a QS Fix alternative but from what I recall didn't have much success getting an in sync result. ProjectX on the other hand gave me good results. Of course VideoRedo is really the best option and is what I use.
     
  5. Jan 31, 2013 #4665 of 10413
    cherry ghost

    cherry ghost Active Member

    5,279
    6
    Sep 13, 2005
    Chicago
    Transferred to my TiVo and the A/V sync is off. Not that big of a deal, it's only one channel. Maybe I'll try Ad Cut / encode without QS Fix first.
     
  6. Feb 1, 2013 #4666 of 10413
    elprice7345

    elprice7345 Member TCF Club

    145
    0
    Sep 28, 2009
    Houston, TX
    The situation:
    • I search for a show in the Remote--> Search tab
    • I select a row
    • Click the WL button
    • Enter my kewords and select Auto Record
    I get the following errors:
    java.lang.NullPointerException
    at com.tivo.kmttg.gui.wlOptions.promptUser(wlOptions.java:120)
    at com.tivo.kmttg.gui.remotegui.createWishlist(remotegui.java:2636)
    at com.tivo.kmttg.gui.remotegui$46.actionPerformed(remotegui.java:1466)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$200(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

    Am I doing something wrong or is this a bug?
     
  7. Feb 1, 2013 #4667 of 10413
    moyekj

    moyekj Well-Known Member

    11,144
    32
    Jan 23, 2006
    Mission...
    It looks like a bug with recent releases. I attempted to add WL categories but it wasn't working so I backed it out, but neglected to back it out completely. It will be fixed in new release coming probably tomorrow. Thanks for posting the problem.
     
  8. Feb 2, 2013 #4668 of 10413
    moyekj

    moyekj Well-Known Member

    11,144
    32
    Jan 23, 2006
    Mission...
    v0p9k version just released.
    In addition to recent requests and fixes discussed in this thread it contains:
    - "Use comskip GUI to review detected commercials" option where you can use comskip visual editor to review/modify detected commercials. Useful if you don't have VideoRedo.
    - "Try scheduling on all TiVos" option for RPC remote "Record" button such that if recording can't be scheduled due to conflicts on originally targeted TiVo, then it attempts to schedule on other available TiVos successively.

    Consult release_notes Wiki for full details.
     
  9. Feb 3, 2013 #4669 of 10413
    sanjonny

    sanjonny New Member

    202
    0
    Nov 2, 2008
    Hateto be a pain, but i am just now able to get back on the board, its been a bad week. Does this include the changes in the beta -kbeta3 you posted recently for me to try or are those still separate and i need to test them? I should have plenty of time later today and just wanted to ask.
     
  10. Feb 3, 2013 #4670 of 10413
    moyekj

    moyekj Well-Known Member

    11,144
    32
    Jan 23, 2006
    Mission...
    It's all in this release.
     
  11. Feb 3, 2013 #4671 of 10413
    murgatroyd

    murgatroyd Don't stop believin'

    25,395
    0
    Jan 5, 2002
    Berkeley CA
    I'm just getting started with kmttg on a iBook G4 running OS X 10.4.11. I was hoping to use the Mac as a store-and-forward device, eventually moving files over to my XP desktop for further processing with VideoRedo.

    I have "metadata" and "decrypt" selected. The transfers seem to be fine (much more robust than using the XP, especially using TiVoDesktop). The metadata job runs fine.

    Then I get the following error:

    I've searched and I can't find what exit code 138 means.

    Is kmttg looking for the tivodecode executable or the file to be processed in the wrong place? (Have I screwed up my paths in the configs?)

    If not, what am I doing wrong?

    If I burn the encrypted .TiVo files to disk and transfer them to the XP desktop (yes, I need to debug samba too :p ), they play fine.

    Question 2: is there a video player for a PPC Mac that will play unencrypted files? I'd really like to check that my transferred files will play before I delete the original files off the TiVoHD.

    Thanks.
     
  12. Feb 3, 2013 #4672 of 10413
    moyekj

    moyekj Well-Known Member

    11,144
    32
    Jan 23, 2006
    Mission...
    Most common problem with tivodecode failing is if you are downloading .TiVo files in Transport Stream format. Turn off TS downloads in kmttg or "fast transfers" in TiVo Desktop since tivodecode can't handle them.

    I would recommend VideoLAN VLC as a video player to play unencrypted files.
     
  13. Feb 3, 2013 #4673 of 10413
    murgatroyd

    murgatroyd Don't stop believin'

    25,395
    0
    Jan 5, 2002
    Berkeley CA
    Oh, good grief. I meant to ask about a program on the Mac that would play .TiVo files that were NOT decrypted yet. [facepalm]

    I know and like VLC on both platforms, thanks.

    Edited to add: forgot to say above that I am using kmttg v0p9d on the Mac. Off now to check what's happening with the newer versions....

    As far as I know, I did install the version of tivodecode for a PPC Mac, but I'll double check that also.
     
  14. Feb 3, 2013 #4674 of 10413
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,733
    8
    Apr 6, 2000
    SF Bay Area
    I don't think there is any player that plays .tivo files, except for VideoReDo in windows, with Tivo Desktop (partially or in whole) installed.
     
  15. Feb 3, 2013 #4675 of 10413
    murgatroyd

    murgatroyd Don't stop believin'

    25,395
    0
    Jan 5, 2002
    Berkeley CA
    I went to the 'config' menu in kmttg and the TS downloads box is not checked.

    Okay, now I'm really confused. On my XP, the folder 'MyTiVoRecordings' is full of .tivo files, and if I launch them from Explorer, or from TiVo Desktop, then Windows Media Player plays them. Since TiVo Desktop is installed, all the right codecs are present, and knows my MAK, so it knows it has permission to show me the files.

    But my understanding was that TiVo Desktop on the Mac is crippled and thus you don't have that function on that platform.
     
  16. Feb 3, 2013 #4676 of 10413
    moyekj

    moyekj Well-Known Member

    11,144
    32
    Jan 23, 2006
    Mission...
    Windows Media Player and VideoRedo both use TiVoDirectShowFilter (installed as part of TiVo Desktop) for decrypting TiVo files - it's part of Windows DirectShow which is unique to windows platform. You can actually use graphedit (a utlility where you can chain together DirectShow decoders, demuxers and filters) in Windows to decrypt Tivo files as well as long as TiVo DirectShowFilter is installed. In any case, it's a Windows only thing.

    Perhaps if you post more of the kmttg output for the download and tivodecode failure it may shed more light. Also, it's useful to try a short 3-5 minute recording to experiment with. You can also examine .TiVo files with "mediainfo" (available on Mac platform) which might shed some light as to what is contained in your .TiVo files that are not decrypting.
     
  17. Feb 3, 2013 #4677 of 10413
    murgatroyd

    murgatroyd Don't stop believin'

    25,395
    0
    Jan 5, 2002
    Berkeley CA
    Forgive me if this is a dumb question, but -- don't the tivodecode exit codes mean anything? I've searched for a translation but can't find anything except for if the code is 0 there aren't any errors (which seems intuitively obvious).
     
  18. Feb 3, 2013 #4678 of 10413
    murgatroyd

    murgatroyd Don't stop believin'

    25,395
    0
    Jan 5, 2002
    Berkeley CA
    Logging in from the Mac now. Here's the output from mediainfo for one of the demo recordings that ships with the TiVo.

    Code:
    General
    Complete name                            : /Users/jan/Movies/Tivo Recordings/5. Connecting with Broadband (04_24_2007).TiVo
    Format                                   : MPEG-PS
    File size                                : 282 MiB
    Duration                                 : 2mn 35s
    Overall bit rate mode                    : Variable
    Overall bit rate                         : 15.2 Mbps
    
    Video
    ID                                       : 224 (0xE0)
    Format                                   : MPEG Video
    Commercial name                          : HDV 720p
    Format version                           : Version 2
    Format profile                           : Main@High
    Format settings, BVOP                    : Yes
    Format settings, Matrix                  : Default
    Duration                                 : 2mn 29s
    Bit rate mode                            : Variable
    Bit rate                                 : 14.4 Mbps
    Maximum bit rate                         : 18.0 Mbps
    Width                                    : 1 280 pixels
    Height                                   : 720 pixels
    Display aspect ratio                     : 16:9
    Frame rate                               : 60.000 fps
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Compression mode                         : Lossy
    Bits/(Pixel*Frame)                       : 0.261
    Stream size                              : 258 MiB (92%)
    Color primaries                          : BT.709
    Transfer characteristics                 : BT.709
    Matrix coefficients                      : BT.709
    
    Audio
    ID                                       : 189 (0xBD)-128 (0x80)
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Mode extension                           : CM (complete main)
    Format settings, Endianness              : Big
    Muxing mode                              : DVD-Video
    Duration                                 : 2mn 35s
    Bit rate mode                            : Constant
    Bit rate                                 : 448 Kbps
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Sampling rate                            : 48.0 KHz
    Bit depth                                : 16 bits
    Compression mode                         : Lossy
    Stream size                              : 8.31 MiB (3%)
    
    General
    
    Error messages from kmttg to follow.

    Code:
    >> Getting Now Playing List from TiVo HD ...
    /usr/bin/curl --anyauth --globoff --user tivo:MAK --insecure --cookie-jar /tmp/cookie7947585349373131201.tmp --url https://192.168.1.69/TiVoConnect?Command=QueryContainer&Container=/NowPlaying&Recurse=Yes&AnchorOffset=0 --output /tmp/NPL4527550475053489805.tmp 
    NPL job completed: 0:00:11
    ---DONE--- job=playlist tivo=TiVo HD
    55 SHOWS, 123 GB USED
    
    5. Connecting with Broadband
    Recorded Tue 04/24/2007 12:00 PM, Duration=3 mins, EpisodeNumber=005
    Part 5 of 5  (2007)  Go beyond DVR with revolutionary only-on-TiVo features like Movie Downloads, Home Movie Sharing, Digital Photos, and more when you connect your box to your home network.  And it's unbelievably easy. 
    >> CREATING /Users/jan/Movies/Tivo Recordings/decrypted/5. Connecting with Broadband (04_24_2007).mpg.txt ...
    /usr/bin/curl --anyauth --globoff --user tivo:MAK --insecure --cookie-jar /tmp/cookie7202658822167967848.tmp --url https://192.168.1.69:443/TiVoVideoDetails?id=8674 --output /tmp/meta1784021384085791665.tmp 
    metadata job completed: 0:00:00
    ---DONE--- job=metadata output=/Users/jan/Movies/Tivo Recordings/decrypted/5. Connecting with Broadband (04_24_2007).mpg.txt
    SKIPPING DOWNLOAD, FILE ALREADY EXISTS: /Users/jan/Movies/Tivo Recordings/5. Connecting with Broadband (04_24_2007).TiVo
    >> DECRYPTING /Users/jan/Movies/Tivo Recordings/5. Connecting with Broadband (04_24_2007).TiVo ...
    /Applications/kmttg/tivodecode/tivodecode --mak MAK --no-verify --out "/Users/jan/Movies/Tivo Recordings/decrypted/5. Connecting with Broadband (04_24_2007).mpg" "/Users/jan/Movies/Tivo Recordings/5. Connecting with Broadband (04_24_2007).TiVo" 
    tivodecode failed (exit code: 138 ) - check command: /Applications/kmttg/tivodecode/tivodecode --mak MAK --no-verify --out "/Users/jan/Movies/Tivo Recordings/decrypted/5. Connecting with Broadband (04_24_2007).mpg" "/Users/jan/Movies/Tivo Recordings/5. Connecting with Broadband (04_24_2007).TiVo" 
    
     
  19. Feb 3, 2013 #4679 of 10413
    moyekj

    moyekj Well-Known Member

    11,144
    32
    Jan 23, 2006
    Mission...
    Nothing abnormal looking about the .TiVo file. Have you tried downloads of real programs besides these TiVo ones? For my Elite the THX Optimizer Video doesn't download properly.

    Just to test if tivodecode runs properly try the following from command line:
    /Applications/kmttg/tivodecode/tivodecode -h
     
  20. Feb 4, 2013 #4680 of 10413
    murgatroyd

    murgatroyd Don't stop believin'

    25,395
    0
    Jan 5, 2002
    Berkeley CA
    Interesting. I only used the TiVo demos as a test case because they were the shortest recordings on my drive. (I recall reading somewhere, probably on this forum, that other people had not been able to transfer their THX videos; I thought that was by design.)

    I've downloaded plenty of broadcast shows, and IIRC I was able to use tivodecode on the XP to decode them. I'll retest one of the shorter shows and see if that's really the case.

    I get 'Bus error'.

    If I cd to /Applications/kmttg/tivodecode/ then 'ls' shows:

    COPYING ChangeLog README tdcat tivodecode

    While in that directory, if I type

    'tivodecode -h'

    I get 'command not found'.

    Thinking that I might have an extra directory in the path (i.e. testing for another nested directory /Applications/kmttg/tivodecode/tivodecode/) I tried to cd to tivodecode and got:

    tivodecode: Not a directory

    Should I uninstall kmttg and the tools and start over again with the new version?

    Edited to add: thanks for your help -- I know it's a pain debugging stuff on old systems like mine.
     

Share This Page