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. Sep 16, 2013 #5741 of 10413
    lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    I understand completely. The issue is that iTunes (and pyTivo for display purposes) treats the OAD as a full GMT timestamp so it gets adjusted to the local timezone. That's why I run a modified version of pyTivoMetaThis that sets the OAD time to 23:00:00. Of course, that doesn't help in this case, since it is coming from the TiVo.

    If a time is going to be set, I would suggest using a time later than 06:00:00 as that would still result in the wrong day being displayed for at least half of NA. Then again, anyone in Australia has the opposite problem.
     
  2. Sep 16, 2013 #5742 of 10413
    markp99

    markp99 TakoKichi TCF Club

    11,130
    16
    Mar 21, 2002
    Nashua, NH
    Two Quick Questions:

    1. What encoding profile is recommended for moving recordings from one TiVo to another?

    2. Are AdDetect & AdCut required to be used together - only?
     
  3. Sep 16, 2013 #5743 of 10413
    moyekj

    moyekj Well-Known Member

    11,142
    31
    Jan 23, 2006
    Mission...
    1. Don't encode at all - leave as .TiVo or .mpg
    2. No
     
  4. Sep 16, 2013 #5744 of 10413
    sar840t2

    sar840t2 Member

    179
    4
    Mar 1, 2003
    Edmonds,...
    Firstly, thanks to moyekj for kmttg - I just started using it last night to download, decrypt, and encode some shows to .TiVo, then .mpg, then to MP4 (it's still chugging away while I'm at work). Very nice work!

    As a separate project, I would also like to be able to get DVD VOB files (already decrypted) into a .TiVo file. To complicate matters I would like the resulting .TiVo file to either include the Closed Captions, or the English subtitles track burned in (I know the standalone version of handbrake can burn a subtitles track).

    I'd rather not use .mp4 as an interim file type and then have TiVo Desktop (or kmttg?) re-encode on the fly when I copy such shows to the TiVo for playback.

    Can kmttg do this? Any pointers?

    Thanks ... Mike
     
  5. Sep 16, 2013 #5745 of 10413
    lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    Might I ask why you want them in .tivo form?
     
  6. Sep 16, 2013 #5746 of 10413
    moyekj

    moyekj Well-Known Member

    11,142
    31
    Jan 23, 2006
    Mission...
    For pointers on using handbrake or ffmpeg to burn in subs (after you generate a captions file using ccextractor):
    http://www.tivocommunity.com/tivo-vb/showthread.php?p=9771080#post9771080

    You don't need it to be .TiVo to transfer to a TiVo. A .mpg (mpeg2) file is fine.

    So for example you can make a custom encoding profile for kmttg such as ff_dvd_sub.enc with following contents:
    Code:
    # Description (single line, keep short)
    <description>
    mpeg2 with hardcoded subs from .srt file
    
    # Encode command or script (single line)
    # Known keywords: FFMPEG, HANDBRAKE, MENCODER, PERL, INPUT, OUTPUT, PWD, CPU_CORES, SRTFILE
    <command>
    FFMPEG -y -i INPUT -i SRTFILE -scodec mov_text -acodec copy -vcodec copy -fflags genpts -f dvd OUTPUT
    
    # Encoded output file extension
    <extension>
    mpeg
    
    So the steps would be (assuming you have ccextractor setup in kmttg already):
    1. After creating above profile in kmttg "encode" folder start kmttg and select it as the encoding profile to use.
    2. From kmttg FILES tab add your DVD file and enable "captions" and "encode" tasks.

    That way the "captions" task will create the .srt file used in the "encode" task.

    Now you can transfer the resulting .mpeg file with hard subs to a TiVo using TD or pyTivo.

    NOTE: ffmpeg remux with hard subs may have A/V sync issues, so if you have VideoRedo then you should also use "QS Fix" task to clean up the original DVD file before the "captions" and "encode" tasks are run.
     
  7. Sep 16, 2013 #5747 of 10413
    sar840t2

    sar840t2 Member

    179
    4
    Mar 1, 2003
    Edmonds,...
    lpwcomp - I assumed that was the format needed to send it back to the TiVo.

    moyekj - thanks, I will take a closer look at this tonight.
     
  8. Sep 16, 2013 #5748 of 10413
    markp99

    markp99 TakoKichi TCF Club

    11,130
    16
    Mar 21, 2002
    Nashua, NH
    Sorry for the noob question...

    Using KMTTG, I have successfully moved a recording off my Premier. How do I now push that file to my Roamio?

    I can see both units, and the .TiVO file. I'm sure I am missing something obvious!

    Thanks in advance!
     
  9. Sep 16, 2013 #5749 of 10413
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,726
    8
    Apr 6, 2000
    SF Bay Area
    KMTTG uses PyTivo to push. You cannot send back using KMTTG alone. Either Tivo Desktop or PyTivo.
     
  10. Sep 16, 2013 #5750 of 10413
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,726
    8
    Apr 6, 2000
    SF Bay Area
    I doubt I got KMTTG set right on ccextractor.

    Code:
    >> Running ccextractor on I:\Video\I Dream of Jeannie - 130 - I'll Never Forget What's Her Name.mpg ...
    e:\kmttg\ccextractorwin.exe "I:\Video\I Dream of Jeannie - 130 - I'll Never Forget What's Her Name.mpg" 
    Saved 1 queued jobs to file: jobData.dat
    ccextractor job completed: 0:00:08
    ---DONE--- job=captions output=i:\video\I Dream of Jeannie - 130 - I'll Never Forget What's Her Name.srt
    >> ENCODING WITH PROFILE 'ff_dvd_sub' TO FILE i:\video\I Dream of Jeannie - 130 - I'll Never Forget What's Her Name.mpeg ...
    Failed to start command: genpts -f dvd "i:\video\I Dream of Jeannie - 130 - I'll Never Forget What's Her Name.mpeg" 
    Cannot run program "genpts": CreateProcess error=2, The system cannot find the file specified
    
     
  11. Sep 16, 2013 #5751 of 10413
    moyekj

    moyekj Well-Known Member

    11,142
    31
    Jan 23, 2006
    Mission...
    Looking at the above error message seems to me like your are missing FFMPEG keyword in your encoding profile, and perhaps some other things. i.e. If you copied/pasted from my post above looks like you are missing pieces of it.
     
  12. Sep 16, 2013 #5752 of 10413
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,726
    8
    Apr 6, 2000
    SF Bay Area
    CCExtractor did not seem to produce the .srt file to begin with.
     
  13. Sep 16, 2013 #5753 of 10413
    moyekj

    moyekj Well-Known Member

    11,142
    31
    Jan 23, 2006
    Mission...
    You should run mediainfo on the mpeg file to see if it even has captions. Note, if you are using ProjectX for QS Fix it strips out captions, so shouldn't be used when you want captions processing.
     
  14. Sep 16, 2013 #5754 of 10413
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,726
    8
    Apr 6, 2000
    SF Bay Area
    I use VRD QSF. I am trying again with a different video.
     
  15. Sep 16, 2013 #5755 of 10413
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,726
    8
    Apr 6, 2000
    SF Bay Area
    Code:
    >> ENCODING WITH PROFILE 'ff_dvd_sub' TO FILE i:\video\Undercover Boss -  -  - ONeill Clothing 2013.02.22-20.00.mpeg ...
    Failed to start command: genpts -f dvd "i:\video\Undercover Boss -  -  - ONeill Clothing 2013.02.22-20.00.mpeg" 
    Cannot run program "genpts": CreateProcess error=2, The system cannot find the file specified
    
    Got this for trying to encode captions.

    Looks like its trying to find .MPEG file instead of MPG.

    ff_dvd_sub.enc
    Code:
    # Description (single line, keep short)
    <description>
    mpeg2 with hardcoded subs from .srt file
    
    # Encode command or script (single line)
    # Known keywords: FFMPEG, HANDBRAKE, MENCODER, PERL, INPUT, OUTPUT, PWD, CPU_CORES, SRTFILE
    <command>
    FFMPEG -y -i INPUT -i SRTFILE -scodec mov_text -acodec copy -vcodec copy -fflags
     genpts -f dvd OUTPUT
    
    # Encoded output file extension
    <extension>
    mpeg
    
     
  16. Sep 16, 2013 #5756 of 10413
    moyekj

    moyekj Well-Known Member

    11,142
    31
    Jan 23, 2006
    Mission...
    It looks like your problem is that starting at "genpts" it's a new line in your file. The whole command should be 1 line, not 2.
     
  17. Sep 16, 2013 #5757 of 10413
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,726
    8
    Apr 6, 2000
    SF Bay Area
    I concatenated the 2 lines, but the same problem keeps popping up. It keeps looking for .MPEG file instead of .MPG.
     
  18. Sep 16, 2013 #5758 of 10413
    moyekj

    moyekj Well-Known Member

    11,142
    31
    Jan 23, 2006
    Mission...
    The output file will have .mpeg suffix (which I named intentionally to avoid conflict with the input .mpg file). Post the full error you are getting now after you did the concat fix. Also remember you have to refresh kmttg encoding profiles after editing the file, or re-start kmttg else it won't see the change. Should work after that.
     
  19. Sep 16, 2013 #5759 of 10413
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,726
    8
    Apr 6, 2000
    SF Bay Area
    I changed "-f dvd" to "-f mpg" and the video file shrank to 50k, essentially ruined it. I reset that back. The line following "<extension>" is now "mpg" and that seems to take.

    Luckily, I used a video file that I didn't mind ruining.

    I am currently trying on another file I have.

    Code:
    >> Running ccextractor on I:\Video\Undercover Boss - 404 -  - Kampgrounds of America 2013.01.11-20.00.mpg ...
    e:\kmttg\ccextractorwin.exe "I:\Video\Undercover Boss - 404 -  - Kampgrounds of America 2013.01.11-20.00.mpg" 
    Saved 1 queued jobs to file: jobData.dat
    ccextractor job completed: 0:05:20
    ---DONE--- job=captions output=i:\video\Undercover Boss - 404 -  - Kampgrounds of America 2013.01.11-20.00.srt
    OVERWRITING EXISTING FILE: i:\video\Undercover Boss - 404 -  - Kampgrounds of America 2013.01.11-20.00.mpg
    >> ENCODING WITH PROFILE 'ff_dvd_sub' TO FILE i:\video\Undercover Boss - 404 -  - Kampgrounds of America 2013.01.11-20.00.mpg ...
    E:\kmttg\ffmpeg\ffmpeg.exe -y -i "I:\Video\Undercover Boss - 404 -  - Kampgrounds of America 2013.01.11-20.00.mpg" -i "i:\video\Undercover Boss - 404 -  - Kampgrounds of America 2013.01.11-20.00.srt" -scodec mov_text -acodec copy -vcodec copy -fflags genpts -f dvd "i:\video\Undercover Boss - 404 -  - Kampgrounds of America 2013.01.11-20.00.mpg" 
    There are currently no queued jobs to save.
    encoding job completed: 0:00:01
    ---DONE--- job=encode output=i:\video\Undercover Boss - 404 -  - Kampgrounds of America 2013.01.11-20.00.mpg
    
    Video file is now 50k size. There does not seem to be any error this time.

    ff_dvd_sub.enc
    Code:
    # Description (single line, keep short)
    <description>
    mpeg2 with hardcoded subs from .srt file
    
    # Encode command or script (single line)
    # Known keywords: FFMPEG, HANDBRAKE, MENCODER, PERL, INPUT, OUTPUT, PWD, CPU_CORES, SRTFILE
    <command>
    FFMPEG -y -i INPUT -i SRTFILE -scodec mov_text -acodec copy -vcodec copy -fflags genpts -f DVD OUTPUT
    
    # Encoded output file extension
    <extension>
    mpg
    
     
  20. Sep 16, 2013 #5760 of 10413
    moyekj

    moyekj Well-Known Member

    11,142
    31
    Jan 23, 2006
    Mission...
    Changing extension name to .mpg fixing something doesn't make any sense to me. As I mentioned above whenever you update the encode file you need to refresh encoding proflies in kmttg which is probably step you were missing.

    Using a mpg extension is not really a good idea in general since you run the risk of overwriting your input file if the input & output files are set to go to same dir.

    I noticed you now have "-f DVD" which is not a valid ffmpeg option - ffmpeg is case sensitive. It needs to be "-f dvd" as I posted originally.
     

Share This Page