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. Dec 15, 2009 #1641 of 10413
    theodolite

    theodolite New Member

    8
    0
    Dec 3, 2009
    Yes, it is ok to create a file with Chinese name.
    Another question, how to test download command by curl? I use the command in the kmttg log and replace the "MAK" to my MAK, but it returns bad request?
     
  2. Dec 15, 2009 #1642 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    Most likely you are getting Server Busy message from your TiVo web server if you check kmttg error message or just open the failed .TiVo file with a text editor. If it gets to a point where you see that a lot a reboot of the TiVo clears it up. Seems to be worse for some people compared to others. I have seen that before for my S3s, but very infrequently.
     
  3. Dec 15, 2009 #1643 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    Try putting quotes around the url. If it still fails post the error message here. That is a good idea to run from command line to see if you can get it working that way.
     
  4. Dec 15, 2009 #1644 of 10413
    waynomo

    waynomo My One Time TCF Club

    12,059
    36
    Nov 9, 2002
    Seven...
    Okay sounds like that is it. I didn't realize I could open the file. I just assumed I would get the usual binary gibberish. (at least to me.) :D So I now see that at least one other person posted the contents of the file.

    <h2>Bad Request</h2>
    Unable to initialize videomgr pipeline: err 0x1d0012

    The problem is fairly intermittent. So not a big issue. Seems like it would be easy to put some code in to test for that error or if the size wasn't correct or time was only a few seconds, etc. to restart the transfer and overwrite the original file. (Try like three times and then give up maybe.) Just a thought. You probably have bigger fish to fry at this point in time.

    I still love the program and will continue using it.
     
  5. Dec 16, 2009 #1645 of 10413
    theodolite

    theodolite New Member

    8
    0
    Dec 3, 2009
    I made some tests:

    (1) Record a show from CNN, the name is in English with space(%20). I can download, decrypt and encode. But the output mp4 file doesn't have sound in QuickTime Player. I'll try the encode parameter later.

    (2) /usr/bin/curl --anyauth --globoff --user tivo:MAK --insecure --cookie-jar /tmp/XXX.tmp --url "UNREADABLE_URL_IN_PRECENT" --output "CHINESE_PATH"
    If I run this manually, the output file name is Chinese but shows Authorization Failed (invalid response).

    (3) /usr/bin/curl --anyauth --globoff --user tivo:MAK --insecure --cookie-jar /tmp/XXX.tmp --url "URL_FROM_BROWSER_WITH_CHINESE" --output "CHINESE_PATH"
    This seems works and the file name is in Chinese correctly. I also test to decrypt this output and works.

    So I think there are two possible causes, first is quotes and the URL, in Chinese or not.
    Second might be the environment variables that is different when runs the command in terminal or from your jar file.

    Hope this information helps.
     
  6. Dec 16, 2009 #1646 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    OK, let's take curl out of the equation for a moment. If you enable "metadata" and "decrypt" task does it create proper .mpg.txt metadata file name with Chinese characters? That will establish if Java is able to handle Chinese characters in the first place in your setup.

    From Windows Vista I just tried a Spanish recording with special characters which worked fine (note file name with the accented e):
    Code:
    >> CREATING C:\home\kmttg\Jos&#233; Luis sin Censura (12_16_2009).TiVo.txt ...
    C:\home\kmttg\curl\curl.exe --retry 3 --anyauth --globoff --user tivo:MAK --insecure --cookie-jar C:\DOCUME~1\moyekj\LOCALS~1\Temp\cookie7191237761432949348.tmp --url https://192.168.1.100:443/TiVoVideoDetails?id=2667437 --output C:\DOCUME~1\moyekj\LOCALS~1\Temp\meta7956910070790471788.tmp 
    metadata job completed: 00:00:00
    ---DONE--- job=metadata output=C:\home\kmttg\Jos&#233; Luis sin Censura (12_16_2009).TiVo.txt
    >> DOWNLOADING C:\home\kmttg\Jos&#233; Luis sin Censura (12_16_2009).TiVo ...
    C:\home\kmttg\curl\curl.exe --retry 3 --anyauth --globoff --user tivo:MAK --insecure --cookie-jar C:\DOCUME~1\moyekj\LOCALS~1\Temp\cookie5353030244853184483.tmp --url http://192.168.1.100:80/download/Jos%20Luis%20sin%20Censura.TiVo?Container=%2FNowPlaying&id=2667437 --output "C:\home\kmttg\Jos&#233; Luis sin Censura (12_16_2009).TiVo" 
    C:\home\kmttg\Jos&#233; Luis sin Censura (12_16_2009).TiVo: size=25.46 MB elapsed=00:03:51 (0.92 Mbps)
    ---DONE--- job=download output=C:\home\kmttg\Jos&#233; Luis sin Censura (12_16_2009).TiVo
    
     
  7. Dec 17, 2009 #1647 of 10413
    theodolite

    theodolite New Member

    8
    0
    Dec 3, 2009
    The metadata file's name is correct.
     
  8. Dec 17, 2009 #1648 of 10413
    lex3001

    lex3001 New Member

    54
    0
    Feb 13, 2005
    I'd like to use this program to transfer over a hundred shows that my kids watch from my old series 2 to my new HD TiVo. I have a couple questions.

    1. I see I can download the shows and the metadata. If I use the pyTivoAutoPush that you referenced, will it upload the metadata to the new TiVo automatically or just the video file? MAK is the same for both by the way.

    2. Can HD TiVo natively store files in a better compression format? Would it be worth re-encoding the files from the Series 2 which are in MPEG2 into something else? If so, what?

    Thanks!
     
  9. Dec 17, 2009 #1649 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    1. Don't really need to use the AutoPush program. You can use the kmttg "push" task to do each push. (Make sure you configure pyTivo setup to push to your HD TiVo).
    i.e. Simply enable the metadata, decrypt and push tasks and then select the titles from your series 2 TiVo you want to process.
    NOTE: If you use pyTivo "push" instead of "pull" the dates on the files you push will be the dates you push them, not the original recording date. If you want to preserve recording date you will have to use pyTivo "pull" instead.

    2. Since these are SD mpeg2 files I wouldn't bother re-encoding to another format. mpeg2 is still the best native file format to play back on the TiVo.
     
  10. Dec 17, 2009 #1650 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    Then I don't really know what the trouble is. You confirmed that the same curl command kmttg uses works from a command line shell, so not sure why it doesn't produce proper file name when called from java. Note that java is simply making a system call using Runtime.getRuntime().exec(String[] command) so not sure why curl does not spit out the correct file name when invoked that way...
    If you have access to a Windows machine perhaps try running kmttg from there to see if it makes a difference.
     
  11. Dec 18, 2009 #1651 of 10413
    theodolite

    theodolite New Member

    8
    0
    Dec 3, 2009
    I've installed Windows XP SP2, JRE 6 update 17 and use the same version of KMTTG v0p7f. It works fine on Windows. It seems I have to run on windows and copy the result to my Mac. However, still thanks your help.
     
  12. Dec 18, 2009 #1652 of 10413
    jemkeith

    jemkeith New Member

    3
    0
    Feb 18, 2005
    I recently changed TiVo's (both are series 2). Now when I decrypt a video, the resulting mpg video seems to be 480 X 480 instead of 720 X 480. I have to tell VLC that the aspect ratio is 4:3. This happens whether or not I use VideoReDo to do the decrypt. Both WMP and VLC play the mpg file in the wrong ratio. WMP plays the TiVo file in the correct aspect ratio.
    I never had a problem before and when I convert a TiVo file from my old TiVo, the aspect ratio on the mpg is correct.
    I'm sure there is a setting somewhere that I can't find. Can you all help?
     
  13. Dec 19, 2009 #1653 of 10413
    Beantownbeanie

    Beantownbeanie New Member

    138
    0
    Apr 23, 2004
    Atlanta
    Hi,
    I had a HD camera that had my vacation movies. I wanted to view them so I did the usual...not realize I had my settings to throw out the mp whatever after conversion. Well the conversions all came out to 1KB and my original movies are gone.
    Anybody know where they went? I did the usual search and they are not in the trash...so where did they go? Is there any chance to recover them?
     
  14. Dec 19, 2009 #1654 of 10413
    headroll

    headroll Let em' Roll

    1,165
    1
    Jan 20, 2003
    Long...
    I have found that the ff_zune profile is not working properly. When files are placed in a directory visible by the Zune software, it attempts to further convert before transferring to the Zune, and fails in the process.

    Has anyone had any sucess with this profile or another to move files to the zune?

    -Roll
     
  15. Dec 19, 2009 #1655 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    I think I remember seeing somewhere where latest Zune went the way of Apple iPod format, so perhaps try one of the ipod formats to see if they work. Or if you know the exact specs of what zune expects post them here and we can come up with a profile.
     
  16. Dec 19, 2009 #1656 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    No, the delete from Java is permanent unfortunately (does not send to Recycle Bin).
     
  17. Dec 19, 2009 #1657 of 10413
    headroll

    headroll Let em' Roll

    1,165
    1
    Jan 20, 2003
    Long...
    Zune Specs ... any help is appreciated

    Windows Media Video (WMV)

    Video Settings:

    Codec: Windows Media Video 9
    Simple Profile – up to 320×240, 10 frames per second and 1.5 Mbps
    Main Profile – up to 720×480, 30 frames per second and 3 Mbps
    Main Profile – 720×576 pixels resolution (up to 25 frames per second) and ?? Mbps
    Constant Bit Rate (CBR) or Variable Bit Rate (VBR)

    Audio Settings:

    Codec: Windows Media Audio 9.0 or higher
    Up to 192 kbps audio bit rate, 44.1 kHz sample rate, stereo, CBR

    Note: High-Definition (HD) WMV files will sync with transcoding


    MPEG-4 (MP4/M4V)

    Video Settings:

    Part 2 Simple Profile with AAC audio
    Up to 2.5 Mbps peak video rate
    720×480 pixels resolution (up to 30 frames per second)
    720×576 pixels resolution (up to 25 frames per second)

    Note: High-Definition (HD) MPEG-4 files will sync with transcoding

    H.264 Video

    Video Settings:

    Baseline Profile with AAC Audio
    Up to 2.5 Mbps peak video bit rate
    720×480 pixels resolution (up to 30 frames per second)
    720×576 pixels resolution (up to 25 frames per second)

    High-Definition (HD) H.264 files will sync with transcoding
     
  18. Dec 19, 2009 #1658 of 10413
    moyekj

    moyekj Well-Known Member

    11,148
    33
    Jan 23, 2006
    Mission...
    ffmpeg won't encode to WMV9 so WMV is out. Try the following mpeg4:
    ff_zune_mp4.enc
    Code:
    # Description (single line, keep short)
    <description>
    mpeg4 container, 720x480 30fps xvid video, 2 chan 48KHz/128Kbps aac audio
    
    # Encode command or script (single line)
    # Known keywords: FFMPEG, HANDBRAKE, MENCODER, PERL, INPUT, OUTPUT, PWD, CPU_CORES, SRTFILE
    <command>
    FFMPEG -y -i INPUT -threads CPU_CORES -vcodec libxvid -maxrate 2000k -qmin 3 -qmax 5 -bufsize 5096k -g 300 -acodec libfaac -ac 2 -ab 128k -ar 48000 -s 720x480 -r 29.97 -b 1500k -f mp4 OUTPUT
    
    # Encoded output file extension
    <extension>
    mp4
    
    EDIT: There was a typo in above. It should be -ab 128k instead of -ab 128. I also added 48KHz sample rate.
     
  19. Dec 19, 2009 #1659 of 10413
    nickhaas33

    nickhaas33 New Member

    38
    0
    Dec 11, 2006
    For those that have videoredo, is it worth the extra money for the TVsuite version? I see KMTTG supports videoredo pretty extensively, and wondering if I just get the "plus" version, if I will be cheating myself out of some good functionality just to save $25.
    I like this new Java based version by the way!
    Thanks very much.
     
  20. Dec 19, 2009 #1660 of 10413
    nickhaas33

    nickhaas33 New Member

    38
    0
    Dec 11, 2006
    Might be able to recover the file(s) with a utility from the makers of CCleaner called recuva.
    http://www.piriform.com/recuva
     

Share This Page