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. Mar 13, 2009 #521 of 10412
    chazas

    chazas Member

    148
    0
    Jan 18, 2007
    I was having problems with 2.7, so I decided to try KMTTG.

    I can't get beyond the conversion stage. Every time ffmpeg.exe crashes. I have this vague recollection that I tried another conversion program at one point that relied on the ffmpeg.exe and it didn't work either.

    Any suggestions?
     
  2. Mar 13, 2009 #522 of 10412
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    The pre-defined encoding profiles in kmttg all do use ffmpeg but it's possible to create a custom encoding profile using a different encoder if you wish. That being said the fact that both TD and ffmpeg encoders are having trouble with your source file suggests there may be an issue with it. Have you verified that source file plays fine all the way through on your computer? If .TiVo file plays fine when you decrypt it to .mpg does it still play fine on your computer? Once it's decrypted to .mpg you can also try any number of encoders, for example Handbrake.

    If you have VideoRedo I suggest running through QuickStream Fix before encoding to see if that helps (you can do that via kmttg if you wish).
     
  3. Mar 13, 2009 #523 of 10412
    chazas

    chazas Member

    148
    0
    Jan 18, 2007
    Thanks. This particular file wasn't necessarily a problem with TD (I don't know, I never tried to convert it). I picked it as a test for KMTTG because it was a small file.

    Last year due to earlier frustrations with TD I tried using VideoReDo (trial) to strip the .tivo wrapper and then Handbrake to convert. That worked fine for every file I tried, even ones that TD messed up, though I found having to use 3 programs/steps completely frustrating, and at that time wasn't willing to pay for VRD. I never got around to trying the VRD autoprocessor program, plus it intimidated me.;)

    I'm not at home now, but I can try playing the .tivo file when I get home. I'll also try another show or two and see what happens. I guess the thing do to from there would be to see if I can get another trial run at VRD for the QuickStream fix and see if that makes everything work.
     
  4. Mar 14, 2009 #524 of 10412
    MikeAndrews

    MikeAndrews Registered abuser

    14,222
    1
    Jan 17, 2002
    Northern...
    ARRGH!!!

    Why do I have to suffer CHRONIC problems with truncated downloads.

    I have to download repeatedly and the if show is long it's impossible to get teh full file. (I have one HD movie now that's 11GB. I've only tried 6 times to get the whole thing transferred. I have some successful 11Gb files on the server. )

    Many shows stop downloading at exactly 4,194,300 KB!

    I get the curl error with hundred of lines of com;lalint and "Failed writing body 1275 != 116384"

    I have the Tivo and the Windows PC on the same 100mb switch with CAT 6 cables!

    I'll admit I have the same problem with TiVo Desktop.

    Is there any way to fix that?
     
  5. Mar 14, 2009 #525 of 10412
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    netringer, that error means curl is unable to write to the destination drive.
    A few things to check:
    * anti-virus software running that is imposing a 4GB limit on files - Kaspersky for example is infamous for doing this
    * Enough disk space remaining in your download folder
    * The destination drive is using NTFS and not fat32
     
  6. Mar 14, 2009 #526 of 10412
    MikeAndrews

    MikeAndrews Registered abuser

    14,222
    1
    Jan 17, 2002
    Northern...
    Hmmm. The drive is on a 1TB Time Capsule mounted over the LAN. It's formatted OS X HSFS, AFAIK, but serves over SMB, sop there's no isse with FAT or NTFS.

    I'll have to work on having enough local disk space for curl to use and then copying the file afterwards in a seperate operation.
     
  7. Mar 14, 2009 #527 of 10412
    MikeAndrews

    MikeAndrews Registered abuser

    14,222
    1
    Jan 17, 2002
    Northern...
    It just did it again. Exactly 4,194,300 KB.

    I was thinking it goes to local C:\TEMP first but the drive is NTFS and has 15GB free. :mad:

    I'll go back to trying to get kmttg working on my Macbook. No luck there.
     
  8. Mar 14, 2009 #528 of 10412
    Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    If you're having trouble getting kmttg to work on your mac, try iTivo. It should just install and run.

    However, I'm not clear on what's causing the truncation. It really sounds like there's some tool on your computer (like a virus checker) that is killing the write at 4G.
     
  9. Mar 15, 2009 #529 of 10412
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    ------------------
    v0.5k (03/15/2009)
    ------------------
    ENHANCEMENTS
    * Added new encoding profiles for popular Handbrake encoder. Handbrake command
    line executable now included in win32 zip file. Several of the main
    Handbrake profiles were added but it's easy to add your own as well if
    desired.

    * Handbrake profiles start with hb_ prefix and ffmpeg profiles were renamed
    to use ff_ prefix to make it easy to distinguish between them.

    * New configuration option to specify location of HandBrakeCLI added.

    *IMPORTANT*: Because the encoding profile names change if you have auto transfers
    that use encoding profiles you have to update them. You can do this as follows:
    1. Auto Transfers -> Configure...
    2. Select a title in the list
    3. Update the encode cyclic profile name
    4. Click on the UPDATE button
    5. Repeat above steps as needed for each title
    6. OK the form
     
  10. Mar 18, 2009 #530 of 10412
    spocko

    spocko TiVo HD

    428
    1
    Feb 4, 2009
    I had the same issue, ffmpeg would get part way through the encode and then crash. This happened when using the SVN-r15216 version of ffmpeg that is included in the win32 tools package. I believe this is a ffmpeg problem. Today I tried the latest 0.5 version of ffmpeg and it appears to have fixed the crashes. The .enc encoding profiles for ffmpeg have to be modified to use "-me_method" instead of the deprecated "-me" option, but otherwise they seem to work as is.

    Here is where I found a win32 build of ffmpeg ver 0.5:
    http://fb2k.net/ffmpeg-0.5.zip
    I don't know if this is a "good" build or not, but it's the only one I could find.

    Another potential solution is to use a Handbrake encoding profile instead of ffmpeg, since the latest 0.5k version of kmttg adds Handbrake support.

    Suggestions to Moyekj:
    - Update the version of ffmpeg included in the win32 tools package
    - Add some mpeg4 ASP encoding profiles, since h.264 is too CPU intensive for some people
     
  11. Mar 24, 2009 #531 of 10412
    qtip96

    qtip96 New Member

    24
    0
    Jan 16, 2009
    I can't get Auto Transfers to work with kmttg running on WHS. If I run a transfer manually, everything works fine.

    Here is what I notice in the log:

    Sun 3/22/2009 09:43 PM *ERROR* Output Dir does not exist: W:\Tivo\temp
    Sun 3/22/2009 09:43 PM *ERROR* Mpeg Dir does not exist: W:\Tivo\temp
    Sun 3/22/2009 09:43 PM *ERROR* Mpeg Cut Dir does not exist: W:\Tivo\temp
    Sun 3/22/2009 09:43 PM *ERROR* Encode Dir does not exist: W:\Tivo
    Sun 3/22/2009 09:43 PM Stopping kmttg service
    Sun 3/22/2009 09:43 PM *ERROR* Failed to stop kmttg service (state=Running)

    Yes, the path exists and it works just fine running it manually. Anyone have suggestions?
     
  12. Mar 25, 2009 #532 of 10412
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    Is W: a network share by any chance? I saw posted in another thread recently that Windows services cannot access network shares without special configuration.

    Not sure what WHS is exactly but for Vista some special configuration of the service is needed as detailed in documentation:

    SETTING UP KMTTG AS A SERVICE IN WINDOWS VISTA

    Vista with it’s extra security takes more work to get kmttg running as a service. I was able to get it up and running as follows:

    * Run kmttg as “Run As Administrator”
    * Auto Transfers->Service->Enable to create the registry entries
    * Close kmttg
    * Control Panel->Administrative Tools->Services
    * Scroll down and find kmttg entry
    * Right click on kmttg and stop service if it is running
    * Right click on kmttg and select Properties
    * Choose Log On tab and select “Local System account”
    * OK the form
    * Right click on kmttg and start the service
    * It should now be running as expected (inspect auto.log file in the same folder as kmttg.pl to check)

    NOTE: I don't personally run kmttg as a service and don't do any testing of it in that mode unfortunately but hopefully others that do run as a service can chime in.
     
  13. Mar 25, 2009 #533 of 10412
    Devx

    Devx New Member

    274
    0
    Jun 1, 2006
    Atlanta, GA
    Not to go too far OT here but in general services running under Windows cannot access network shares because the share is not setup under that login account and that account typically does not have proper permissions to access the share. However it's possible to configure a service such that it logs in using credentials of an actual user on the system. In that case the service will have access to all of the shares that the user can access. It's easiest to setup an account with administrator privileges to do this but almost any account will work as long as the proper privileges are setup. This applies to all NT 5.0+ client and server based versions of Windows and should apply to Windows Home Server (WHS) as well although the steps might be different.
     
  14. Mar 25, 2009 #534 of 10412
    qtip96

    qtip96 New Member

    24
    0
    Jan 16, 2009
    Yep, W: is a network share. WHS = Windows Home Server (aka Windows 2003 Server).
     
  15. Mar 25, 2009 #535 of 10412
    qtip96

    qtip96 New Member

    24
    0
    Jan 16, 2009
    Hrm -- this makes perfect sense. So I should I just change the kttms service account to a user with access to those shares?
     
  16. Mar 25, 2009 #536 of 10412
    Devx

    Devx New Member

    274
    0
    Jun 1, 2006
    Atlanta, GA
    You can but remember to login to that account and make sure the shares are setup and accessible before con figuring that account as a service account.
     
  17. Mar 26, 2009 #537 of 10412
    qtip96

    qtip96 New Member

    24
    0
    Jan 16, 2009
    Hey thanks for the help -- everything is being downloaded, decoded, and run through VideoRedo with no problems. The only thing left is the encoding and its running into an error:

    Thu 3/26/2009 08:31 AM *ERROR* Encoding command not found/executable:


    I created a new ffmpeg encoding profile and it works fine from the GUI. I've quit and started kmttg up again with the same results. Any thoughts?
     
  18. Mar 27, 2009 #538 of 10412
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    I'll have to check when I get a chance (been very busy with paying job lately) but it's possibly a bug in kmttg in service mode.
    Interesting though that you mention you actually got VideoRedo running in service mode? I and others haven't been able to do that.

    EDIT: Didn't see anything obviously wrong in the code and I just confirmed running as a service including encoding worked fine. When you execute Auto Transfers->Run in GUI does the encoding part work?
     
  19. Mar 27, 2009 #539 of 10412
    chazas

    chazas Member

    148
    0
    Jan 18, 2007
    Thanks. I've tried Handbrake in the new(ish) version and also paid for VideoReDo so I could do QSF. The same several files still don't convert properly - they skip and the audio and video are out of synch. Arrgh.

    Moyekj: Agreed, if you could add some mpeg4 profiles that would be great, h.264 takes longer in my experience and is unnecessary for my Zune. Maybe I'll try the Zune profile instead....
     
  20. Mar 27, 2009 #540 of 10412
    moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    Note that there are 5 non H.264 profiles already so it would be pretty easy to copy one of these and create your own custom one(s) if you don't like one of these existing ones:
    ff_ipod_high_res.enc:mpeg4 container, 640x480 xvid video, aac audio
    ff_ipod_low_res.enc:mpeg4 container, 320x240 xvid video, aac audio
    ff_psp.enc:mpeg4 container, 320x240 mpeg4 video, aac audio
    ff_zen.enc:Creative Zen: avi container, 320x240 xvid video, mp3 audio
    ff_zune.enc:Zune: asf container, 320x240 wmv video, wma audio
     

Share This Page