Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: HOWTO: transfer videos from your TIVO to your Ubuntu desktop or Android using kmttg

  1. #1
    Join Date
    Jul 2007
    Location
    Boston, MA, USA
    Beans
    925
    Distro
    Ubuntu 12.04 Precise Pangolin

    HOWTO: transfer videos from your TIVO to your Ubuntu desktop or Android using kmttg

    The information in this thread has been moved to https://help.ubuntu.com/community/Tr...roidUsingKmttg

    A thread for discussion of the wiki page only can be found here
    http://ubuntuforums.org/showthread.php?t=2012437

    Thread closed.



    Based on http://code.google.com/p/kmttg/. This tutorial uses exclusively open source software although kmttg has alternatives to use some commercial software. It takes a while to go through this tutorial, but it is well worth it at the end.

    INTRODUCTION

    kmttg is a Java based program I (not me the author of this tutorial, a cool developer named Kevin Moye) wrote to facilitate TivoToGo (TTG) transfers that can download, create pyTivo metadata, decrypt, run comskip & comcut (commercial detection and removal), create closed captions files and re-encode multiple shows you select from your Tivos all automatically. The program also has the capability to transfer and process shows automatically from your Tivos based on titles and keywords you setup.

    You can select one or more shows at a time and then with one click of a button the program will download all the selected items, with the options of also automatically creating a metadata file for pyTivo, decrypting .TiVo files to .mpg, running comskip (commercial detection and removal program), and automatically re-encoding to a more portable format using mencoder, ffmpeg or any other command line encoder of your choosing. The program queues up multiple jobs and displays time, size and speed statistics for ongoing jobs.

    Previously I was using different point tools to accomplish this, such as Tivo Desktop or TivoPlayList for downloads, pyTivoMetaGen for generating metadata files, Tivo Decoder UI for decrypting and various GUIs built around ffmpeg for re-encoding. I did not want to pay for or be limited by Tivo Desktop Plus. This is my attempt to simplify and automate these different tasks all into 1 simple GUI.

    INSTALLATION

    1. Install OpenJDK version of Java.
    Code:
    sudo apt-get install openjdk-6-jre
    2. Download kmttg installation zip file from:

    http://code.google.com/p/kmttg/downloads/list

    Obtain version v0p8l or later.

    Code:
    cd ~
    mkdir -p kmttg
    cd kmttg
    wget http://kmttg.googlecode.com/files/kmttg_v0p8r.zip
    unzip kmttg_v0p8r.zip
    3. Install ProjectX video repair.

    Although ProjectX exists in Ubuntu repositories, I do not recommend that particular outdated version. Instead, download a ProjectX_0.91.0.zip file from http://sourceforge.net/projects/proj...ctX_0.91.0.00/ and place it in /home/$USERNAME/kmttg

    Afterwards, unzip downloaded file and create a link:

    Code:
    cd ~/kmttg
    unzip ProjectX_0.91.0.zip
    ln -s Project-X_0.91.0 ProjectX
    4. Download and build tivodecode.

    Code:
    sudo apt-get install build-essential
    cd ~/kmttg
    wget http://kmttg.googlecode.com/files/tivodecode-0.3pre4.tar.gz
    tar xvfz tivodecode-0.3pre4.tar.gz
    cd tivodecode-0.3pre4/
    ./configure
    make
    cd ..
    ln -s tivodecode-0.3pre4 tivodecode
    5. Download comskip and wine and configure comskip to run via wine.
    While comskip is open source software, folks haven't quite figured out how to build it on Linux due to a number of complexities. So, we will use a windows build instead and use wine to execute it. Don't worry, it will all be under the covers.

    Code:
    sudo apt-get install wine
    cd ~/kmttg
    wget http://www.kaashoek.com/files/comskip80_042.zip
    mkdir -p comskip
    cd comskip
    unzip ../comskip80_042.zip
    echo 'wine "$0".exe "$@"' > comskip
    chmod +x comskip
    6. Download HandBrake encoder.

    Code:
    sudo add-apt-repository ppa:stebbins/handbrake-releases
    sudo apt-get update
    sudo apt-get install handbrake-cli handbrake-gtk
    7. Download Atomic Parsley metadata processor.

    Code:
    sudo apt-get install atomicparsley
    CONFIGURATION

    You must know your 10 digit Media Access Key (MAK) for your TIVO. PLEASE do not post your MAK in these forums!

    From http://support.tivo.com/app/answers/detail/a_id/196, question "Unable to transfer video from TiVo DVR to PC"
    NOTE: You can find your Media Access Key in either of these two places:

    From your TiVo DVR: Go to TiVo Central, select Messages & Settings, then Account & System Information, and then Media Access Key.
    Online: Log in to your My TiVo account.
    When I say $USERNAME, I mean your actual username.

    • Run kmttg by typing ~/kmttg/kmttg
    • Enter your MAK
    • Configure your software by selecting File/Configure and selecting Programs tab
    • Check that kmttg auto-detected your handbrake at /usr/bin/HandBrakeCLI
    • Check that kmttg auto-detected your tivodecode at /home/$USERNAME/tivodecode/tivodecode
    • Check that kmttg auto-detected your comskip at /home/$USERNAME/kmttg/comskip/comskip
    • Check that kmttg auto-detected your ProjectX as /home/$USERNAME/kmttg/ProjectX/ProjectX.jar


    You are almost there!

    USE

    • Click Refresh for kmttg to update list of your TIVO programs
    • Select checkboxes ☑ metadata ☑ decrypt ☑ QS Fix ☑ Ad Detect ☑ Ad Cut ☑ encode
    • Select Encoding Profile: hb_television
    • Select your favorite programs and click [START JOBS] on the top left.


    Wait, and then enjoy your videos on your computer or your mobile device.

    Note that encoding profile hb_television is a good place to start but is not a perfect profile. There is truly no perfect encoding profile, so use HandBrake GUI to optimize your encoding experience. A file encoded using hb_television profile won't play on your Android phone or tablet (you would not use a closed source tablet, would you?), so use ff_droid or hb_iphone preset instead for taking your TIVO shows on the road.
    Last edited by Elfy; June 29th, 2012 at 09:51 AM. Reason: updated to kmttg version r

  2. #2
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,616
    Distro
    Ubuntu

    Re: HOWTO: transfer videos from your TIVO to your Ubuntu desktop or Android using kmt

    Nice tutorial

  3. #3
    Join Date
    Oct 2007
    Beans
    16
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: HOWTO: transfer videos from your TIVO to your Ubuntu desktop or Android using kmt

    Very nice tutorial, thanks for posting it!

  4. #4
    Join Date
    Dec 2011
    Beans
    3

    Re: HOWTO: transfer videos from your TIVO to your Ubuntu desktop or Android using kmt

    Thanks for your tutorial but being a linux moron when trying to follow the steps, I copied and pasted them into my terminal session but I got a number of errors and am not really sure how to overcome them.

    First I got, Package sun-java6-fonts is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Unable to locate package sun-java6-bin
    E: Package 'sun-java6-fonts' has no installation candidate

    Then is step 4 missing a mkdir command?

    Ultimately, I got this error when I ran kmttg
    ERROR: java.awt.HeadlessException
    at java.awt.GraphicsEnvironment.checkHeadless(Graphic sEnvironment.java:173)
    at java.awt.Window.<init>(Window.java:476)
    at java.awt.Frame.<init>(Frame.java:419)
    at java.awt.Frame.<init>(Frame.java:384)
    at javax.swing.JFrame.<init>(JFrame.java:174)
    at com.tivo.kmttg.gui.gui.getJFrame(gui.java:106)
    at com.tivo.kmttg.main.kmttg$2.run(kmttg.java:66)
    at java.awt.event.InvocationEvent.dispatch(Invocation Event.java:226)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:647)
    at java.awt.EventQueue.access$000(EventQueue.java:96)
    at java.awt.EventQueue$1.run(EventQueue.java:608)
    at java.awt.EventQueue$1.run(EventQueue.java:606)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:105)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java: 617)
    at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:275)
    at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:200)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:185)
    at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:177)
    at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:138)

    Any help would be so appreciated.

  5. #5
    Join Date
    Jul 2007
    Location
    Boston, MA, USA
    Beans
    925
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOWTO: transfer videos from your TIVO to your Ubuntu desktop or Android using kmt

    Quote Originally Posted by ba70816 View Post
    E: Unable to locate package sun-java6-bin
    E: Package 'sun-java6-fonts' has no installation candidate
    UPD: Below is no longer a good advice. See later posts.


    I suspect you may not have Partner repositories enabled.

    Try clicking on this link:
    apt:sun-java6-fonts?channel=$distro-partner
    apt:sun-java6-bin?channel=$distro-partner

    If that doesn't work, read https://help.ubuntu.com/community/Re...r_Repositories

    Also, step 4 is missing an "tar" command, thank you for noticing!
    I fixed step 4.
    Last edited by michael37; December 23rd, 2011 at 06:56 AM.

  6. #6
    Join Date
    Dec 2011
    Beans
    3

    Re: HOWTO: transfer videos from your TIVO to your Ubuntu desktop or Android using kmt

    Thanks Micheal,
    It seems like all the steps were installed correctly but I still have this error when I run kmttg:
    ERROR: java.awt.HeadlessException
    at java.awt.GraphicsEnvironment.checkHeadless(Graphic sEnvironment.java:173)
    at java.awt.Window.<init>(Window.java:476)
    at java.awt.Frame.<init>(Frame.java:419)
    at java.awt.Frame.<init>(Frame.java:384)
    at javax.swing.JFrame.<init>(JFrame.java:174)
    at com.tivo.kmttg.gui.gui.getJFrame(gui.java:106)
    at com.tivo.kmttg.main.kmttg$2.run(kmttg.java:66)
    at java.awt.event.InvocationEvent.dispatch(Invocation Event.java:226)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:647)
    at java.awt.EventQueue.access$000(EventQueue.java:96)
    at java.awt.EventQueue$1.run(EventQueue.java:608)
    at java.awt.EventQueue$1.run(EventQueue.java:606)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:105)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java: 617)
    at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:275)
    at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:200)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:185)
    at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:177)
    at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:138)

    BTW - the smiley faces are supposed to be the number 8.

    I've searched the problem but can't find the fix, I'm sure it's got to be something simple. I'm running Ubuntu 11.1.

    Any ideas?
    Thanks

  7. #7
    Join Date
    Dec 2011
    Beans
    3

    Re: HOWTO: transfer videos from your TIVO to your Ubuntu desktop or Android using kmt

    I finally got it... I had to run
    sudo apt-get install openjdk-6-jre

    Thanks again so much

  8. #8
    Join Date
    Jul 2007
    Location
    Boston, MA, USA
    Beans
    925
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOWTO: transfer videos from your TIVO to your Ubuntu desktop or Android using kmt

    Quote Originally Posted by ba70816 View Post
    I finally got it... I had to run
    sudo apt-get install openjdk-6-jre

    Thanks again so much
    Amazing, I just discovered this java problem (it occurred on December 15th):
    https://lists.ubuntu.com/archives/ub...er/001528.html

    I will update my instructions with OpenJDK.

  9. #9
    Join Date
    Jul 2007
    Location
    Boston, MA, USA
    Beans
    925
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOWTO: transfer videos from your TIVO to your Ubuntu desktop or Android using kmt

    Updated instructions with latest version of kmttg and added Atomic Parsley section. I guess I forgot about that tool earlier.

  10. #10
    Join Date
    Jul 2006
    Location
    San Francisco Bay Area
    Beans
    256
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: HOWTO: transfer videos from your TIVO to your Ubuntu desktop or Android using kmt

    Thanks for the easy instructions to follow. I've installed it on Precise and it seems to be running.

    However, I just downloaded a program and it seems to is stuck in the remux stage. It got up to 86%, and has been sitting there for a good 10 minutes.

    Does it usually take that long in this step, or did something happen?

    Robert

Page 1 of 3 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •