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 2, 2014 #6241 of 10413
    Hyrax

    Hyrax New Member

    112
    0
    Sep 1, 2007
    Does 'adscan/adcut' actually work for you? I've found that both adscan and comskip make enough mistakes that I need to manually review and edit where I want the cuts. There are almost always a minute or two cut from every show (and a lot more from sports events) that should not be cut. I must be doing something wrong if it works nearly perfectly for you.
     
  2. Jan 2, 2014 #6242 of 10413
    moyekj

    moyekj Well-Known Member

    11,151
    34
    Jan 23, 2006
    Mission...
    I've never heard of either one working even close to perfectly for anyone, at least not without tweaking. Personally I find it quicker to bypass automated ad detection completely and manually find the cuts myself using VRD editing. I also make sure to make the cuts on I-Frames only such that VRD doesn't have to re-encode around any of the cut points.
     
  3. Jan 2, 2014 #6243 of 10413
    ALbino

    ALbino Lurker Series 2

    109
    0
    Jun 24, 2002
    How can you tell in VRD if it's an I-Frame?
     
  4. Jan 2, 2014 #6244 of 10413
    moyekj

    moyekj Well-Known Member

    11,151
    34
    Jan 23, 2006
    Mission...
    From VRD GUI enable View->Display On Screen Information and in top left corner VRD will show the frame type (I for I-Frames). Plus what I do is under Tools->Options->Navigation I set unshifted right/left arrows to "Move next I-Frame" and shifted right/left arrows to "Move 0.5 Seconds". With that unshifted arrow setup I can jump only between I-Frames when using left/right arrow keys. So when editing I will drag the selection point bar to get close to commercial point, then use left/right arrow keys to fine tune to the exact I-Frame to cut on.
     
  5. Jan 2, 2014 #6245 of 10413
    ThAbtO

    ThAbtO TiVoholic by the bay

    6,739
    9
    Apr 6, 2000
    SF Bay Area
    I use up/down for frames, left/right for 1 sec, pgup/dn for 30 sec, mouse wheel for 1/2 sec.
     
  6. Jan 2, 2014 #6246 of 10413
    cherry ghost

    cherry ghost Active Member

    5,281
    6
    Sep 13, 2005
    Chicago
    I gave up on Comskip about 6 months ago and just use Mpg2Cut2 now to manually cut.
     
  7. Jan 2, 2014 #6247 of 10413
    lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    It doesn't work perfectly and I never said it did, but so far, AFAICT, it has not cut anything it shouldn't have, merely left stuff that could have been cut.

    I use kmmttg mostly for unattended auto transfer-push to a remote TiVo 2. I am hoping to use adscan/adcut to reduce the network traffic and thus the time it takes for the xfer.

    For my local archiving purposes, I'll probably only use kmttg for the xfer to the PC and creation of the metadata and then run VRD manually.
     
  8. Jan 2, 2014 #6248 of 10413
    lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    For manual purposes, I have found adscan to be an excellent starting point.
     
  9. Jan 3, 2014 #6249 of 10413
    moyekj

    moyekj Well-Known Member

    11,151
    34
    Jan 23, 2006
    Mission...
    kmttg is UTF8 encoding title to make the web query which is the logical way to do things and the default imdb query understands.

    So Charlie's Angels would become:
    Charlie%27s+Angels

    So kmttg default imdb query would become the following which works:
    www.imdb.com/find?s=all&q=Charlie's+Angels

    There must be a syntax where epguides.com accepts a proper url encoding. For request of just getting rid of spaces that wouldn't be sufficient as the ' encodes to %27, etc.
     
  10. Jan 3, 2014 #6250 of 10413
    lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    Let me preface this with the fact that I loathe Win 8, but I suppose these problems exist in prior versions.

    Anyway, to the issue. I am unable to get VRD to run when invoked by the kmttg service. Here is what I am seeing in the log:

    Code:
    2014_01_03_11:04:41 NOTE: D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo: size=1336.57 MB elapsed=0:02:41 (69.64 Mbps)
    2014_01_03_11:04:41 ---DONE--- job=download output=D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo
    2014_01_03_11:04:44 NOTE: container=mpeg, video=mpeg2video
    2014_01_03_11:04:44 >> Running qsfix on D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo ...
    2014_01_03_11:04:44 C:\WINDOWS\system32\cscript.exe //nologo C:\kmttg\VRDscripts\qsfix.vbs "D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo" "C:\kmttgmpegs\Top Chef.S11E12.Mississippi Mud Bugs.mpg.qsfix" "/l:C:\Users\J. L. Sutherland\AppData\Local\Temp\VRDLock2972422086245256262.tmp" /m /c:mpeg /v:mpeg2video 
    2014_01_03_11:04:46 ERROR: qsfix failed (exit code: 3 ) - check command: C:\WINDOWS\system32\cscript.exe //nologo C:\kmttg\VRDscripts\qsfix.vbs "D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo" "C:\kmttgmpegs\Top Chef.S11E12.Mississippi Mud Bugs.mpg.qsfix" "/l:C:\Users\J. L. Sutherland\AppData\Local\Temp\VRDLock2972422086245256262.tmp" /m /c:mpeg /v:mpeg2video 
    2014_01_03_11:04:46 ERROR: ? Unable to open file/project: D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo
    2014_01_03_11:04:48 ERROR: mpeg file not found: C:\kmttgmpegs\Top Chef.S11E12.Mississippi Mud Bugs.mpg
    2014_01_03_11:04:50 NOTE: OVERWRITING EXISTING FILE: D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.mpg
    2014_01_03_11:04:50 ERROR: VRD combine Ad Cut & Encode option selected but .Vprj file doesn't exist: C:\kmttgmpegs\Top Chef.S11E12.Mississippi Mud Bugs.VPrj
    I have the kmttg service set to run on the same account that the system is running. I have tried disabling both Avasti and the Windows fire wall with bo change. I have run VRD "As Administrator" multiple times. I'm obviously doing something wrong.

    Note: My local changes to kmttg to use .tivo file w/o the separate dcrypt step are not in place.
     
  11. Jan 3, 2014 #6251 of 10413
    moyekj

    moyekj Well-Known Member

    11,151
    34
    Jan 23, 2006
    Mission...
    Sounds like VRD in service mode cannot see/access file for some reason:
    D:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo

    Is volume D a network drive? If so try specifying location in kmttg as //host/path instead.

    I'm assuming in GUI mode it works properly with above file? Does changing location of .TiVo files to C volume allow it to work in service mode or same error?

    Other long shot thing to try is enable "Allow multiple VideoRedo jobs at once" setting in kmttg which will run VRD in non-silent mode (so you will see VRD windows appearing). Doubt it will help but worth a shot.
     
  12. Jan 3, 2014 #6252 of 10413
    BH9244

    BH9244 Member

    119
    0
    Feb 10, 2009
    I'm sure someone will promptly point out that I have missed something obvious so apologies in advance if that is the case. But I'm interested in whether there is a means to export listings in kmttg such as the To-Do List etc.. Thanks
     
  13. Jan 3, 2014 #6253 of 10413
    ALbino

    ALbino Lurker Series 2

    109
    0
    Jun 24, 2002
    Very cool! Thanks.
     
  14. Jan 3, 2014 #6254 of 10413
    lpwcomp

    lpwcomp Active Member

    8,081
    2
    May 6, 2002
    John's...
    It is a local SATA drive on this machine.

    Yes, it works fine in the GUI. Changing to C drive made no difference.

    This is in the VRD log for a kmttg GUI initiated run:

    Code:
    2014-01-03 18:13:46 Decoder support lib: 7.0 build 205.58, ippvcg9_l.lib
    2014-01-03 18:13:46 Image   support lib: 7.0 build 205.58, ippvcg9_l.lib
    2014-01-03 18:13:47 VideoReDo TVSuite started. Licensed to: JA-M073HG-GGCYVA, Version: 4.21.6.674 - Dec 12 2013, AVP On (00cf0070-4}
    2014-01-03 18:13:47 Starting up with silent and batch: 1  0
    2014-01-03 18:13:47 Destruct CVideoReDoDlgAutoProxy
    2014-01-03 18:17:00 Decoder support lib: 7.0 build 205.58, ippvcg9_l.lib
    2014-01-03 18:17:00 Image   support lib: 7.0 build 205.58, ippvcg9_l.lib
    2014-01-03 18:17:00 VideoReDo TVSuite started. Licensed to: JA-M073HG-GGCYVA, Version: 4.21.6.674 - Dec 12 2013, AVP On (00cf0070-4}
    2014-01-03 18:17:00 Starting up with silent and batch: 0  367d7a8
    2014-01-03 18:17:01 TS ReadProgramMapTables, seeking to: 467158568
    2014-01-03 18:17:01 TS ReadProgramMapTables, seeking to: 934317136
    2014-01-03 18:17:01  
               ***** Loading: C:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo
    
    2014-01-03 18:17:01 Setting Batch QSF flag.
    2014-01-03 18:17:01 Opening: C:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo in QuickStream Fix Mode.


    Was already enabled. Tried with it disabled. No change.

    Seeing this in the VRD log:

    Code:
    2014-01-03 17:20:58 VideoReDo TVSuite started. Licensed to: JA-M073HG-GGCYVA, Version: 4.21.6.674 - Dec 12 2013, AVP On (00cf0070-4}
    2014-01-03 17:20:58 Starting up with silent and batch: 0  239c988
    2014-01-03 17:20:58 Tivo reader open error: 0x80071771, file: C:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo
    2014-01-03 17:20:58 Tivo reader open error: 0x80071771, file: C:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo
    2014-01-03 17:20:58 COM open error for file: C:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo, Error: Tivo file open error, please check your media access key.
    Is it possible that there is some weird timing problem wherein the server initiated VRD job is reading the .tivo file before it is actually complete?

    I'm also curious about difference in the two commands.

    This is from the GUI log:
    Code:
    C:\WINDOWS\system32\cscript.exe //nologo C:\kmttg\VRDscripts\qsfix.vbs "C:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo" "C:\kmttgmpegs\Top Chef.S11E12.Mississippi Mud Bugs.mpg.qsfix" /l:C:\Users\JL5282~1.SUT\AppData\Local\Temp\VRDLock9047896989165215547.tmp /m /c:mpeg
    This is from auto.log.0:

    Code:
    C:\WINDOWS\system32\cscript.exe //nologo C:\kmttg\VRDscripts\qsfix.vbs "C:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo" "C:\kmttgmpegs\Top Chef.S11E12.Mississippi Mud Bugs.mpg.qsfix" "/l:C:\Users\J. L. Sutherland\AppData\Local\Temp\VRDLock7546112818664612495.tmp" /m /c:mpeg /v:mpeg2video 
    When I bring up the VRD Gui and open the .tivo file, I get this in the VRD log:

    Code:
    2014-01-03 18:03:23 TS ReadProgramMapTables, seeking to: 467158568
    2014-01-03 18:03:23 TS ReadProgramMapTables, seeking to: 934317136
    2014-01-03 18:03:23  
               ***** Loading: C:\Video\Top Chef.S11E12.Mississippi Mud Bugs.TiVo
    
    2014-01-03 18:03:24 Using display driver: VMR9
    2014-01-03 18:03:24 VMR 9 (Windowless), MEDIASUBTYPE_YV12 
    2014-01-03 18:03:24 VMR 9 (Windowless), MEDIASUBTYPE_YV12 
    
    Followed by the rest of the processing messages.
     
  15. Jan 3, 2014 #6255 of 10413
    moyekj

    moyekj Well-Known Member

    11,151
    34
    Jan 23, 2006
    Mission...
    With current release you can explicitly export Season Passes and Channel lineups to CSV files. Adding CSV export for ToDo list would be fairly easy to add.
     
  16. Jan 3, 2014 #6256 of 10413
    BH9244

    BH9244 Member

    119
    0
    Feb 10, 2009
    Having that capability would be nice for the Now Playing Lists as well if that's also a possibility.. Thanks for considering it..
     
  17. Jan 3, 2014 #6257 of 10413
    moyekj

    moyekj Well-Known Member

    11,151
    34
    Jan 23, 2006
    Mission...
    For NPL you can crudely get a copy by selecting all entries in table (Ctrl-A in Windows) and then copying to clipboard (Ctrl-C in Windows) and pasting into some document. I'll have to think about NPL export to CSV.

    Just curious though why NPL and ToDo lists would be useful in spreadsheet form, especially since they are so dynamic?
     
  18. Jan 3, 2014 #6258 of 10413
    BH9244

    BH9244 Member

    119
    0
    Feb 10, 2009
    For me it would be useful in the event of a hardware failure to know what was stored on the unit or scheduled to record.
     
  19. Jan 3, 2014 #6259 of 10413
    moyekj

    moyekj Well-Known Member

    11,151
    34
    Jan 23, 2006
    Mission...
    Don't think so, or I would have had a lot more issue reports, and I've never seen this specific problem myself, plus in GUI mode the timing should be almost identical.

    Are you able to process any file with VRD in service mode? It's looking like a permissions problem of some sort where VRD can't read your files while in service mode. You can test without kmttg having to re-download .TiVo files by temporarily turning off "Overwrite existing files" option. You may also have to clear auto.history entries so that auto matches aren't skipped.
     
  20. Jan 4, 2014 #6260 of 10413
    elprice7345

    elprice7345 Member TCF Club

    145
    0
    Sep 28, 2009
    Houston, TX
    I'm trying to add hard subtitles to a video using kmttg to pull to my TiVo Premiere through pyTivo.

    I would like to re-encode the video once into a format, including the hard subs, so pyTivo doesn’t have to re-encode it again when the video is pulled

    My original video is currently in an mkv container with soft subtitles. MediaInfo for original file is attached.

    I used MKVExtractGUI2 to extract the subs to an srt file.

    I then tried to alter the kmttg encoding file moyekj provided here: http://www.tivocommunity.com/tivo-vb/showthread.php?p=9816706#post9816706 and combine it with a pyTivo transcoding profile.

    My encoding profile:
    Code:
    # Description (single line, keep short)
    <description>
    convert mkv to TiVo mpeg2 with hardcoded subs, AC3 audio, MP2 video
    
    # 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 -threads CPU_CORES -acodec ac3 -vcodec mpeg2video -b 28500k -maxrate 30000k -bufsize 4096k -ab 448k -ar 48000 -copyts -map 0:0 -map 0:1 -fflags genpts -f dvd OUTPUT
    
    # Encoded output file extension
    <extension>
    mpg
    
    The video processes correctly and looks fine, but still doesn’t have subtitles. MediaInfo for resulting file is attached.

    What am I missing?
     

    Attached Files:

Share This Page