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 17, 2008 #421 of 10413
    menos

    menos New Member

    60
    0
    Nov 13, 2007
    Moore, OK
    Correct.

    Thanks
     
  2. Dec 17, 2008 #422 of 10413
    Meklos

    Meklos New Member

    66
    0
    Nov 22, 2002
    Well, I'm almost there. I'm trying to take an HD OTA show, download it to the PC, run decrypt, comskip and comcut (but not encode). I'm using the tivostream-hd profile. I have even tried adding VideoReDo... but no luck.

    It's successfully finding the commercials, then here's the output on the perl session...

    An 8GB show leaves me with a 45MB _cut.mpg after a stream of 'duplicate frame'


    Here's the output in the kmttg window...

    And it goes on with several hundred more duplicate frame errors...

    I have tried this on a CSI and now this show, same type of results. Is there something I'm missing?

    Any help appreciated!!
     
  3. Dec 17, 2008 #423 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    Meklos, a few posts ago someone mentioned some tweaks to mencoder were needed for it to work properly for them for some video files. Problem is I don't think the specific changes were ever posted so I'm not sure what the fix is. If you add VideoRedo to your configuration then kmttg will use VRD instead of mencoder for doing the cuts and it should work much more reliably.

    NOTE: If setting up to use VRD then you need to edit comskip.ini file so that special cut file for VRD is generated. Read the kmttg documentation for more details.
     
  4. Dec 17, 2008 #424 of 10413
    ehagberg

    ehagberg Member

    93
    0
    Dec 27, 2004
    Montclair, NJ
    I've specified the path for VideoRedo (that's the full path to the VideoRedo.exe binary, right?), but the cuts are still being done with mencoder and failing.

    I changed the compskip.ini to have the necessary output_videoredo=1 setting, so that file was created, but videoredo still wasn't used.

    I notice that the checkbox for VRD QS fix isn't selectable either.
     
  5. Dec 17, 2008 #425 of 10413
    ehagberg

    ehagberg Member

    93
    0
    Dec 27, 2004
    Montclair, NJ
    The tweaks I mentioned seemed to work, but only if I specified a 720x480 scale, rather than keeping the 1920x1080 frame size. I've tried to get them working in such a way that'll preserve the HD quality of the original file, but haven't had success, so I'm going to likely give up and use VideoRedo.

    I see that for VideoRedo, unlike all the other config paths, you are supposed to specify the directory that videoredo lives in, rather than the full path to the binary. Should've read the perl script before asking.
     
  6. Dec 17, 2008 #426 of 10413
    ehagberg

    ehagberg Member

    93
    0
    Dec 27, 2004
    Montclair, NJ
    For anyone who wants to play with mencoder for commercial cutting, here's what worked for me for those flaky streams (or at least those that mencoder didn't like with the default kmttg args):

    mencoder.exe $INFILE.mpg -of mpeg -vf scale=720:480 -oac lavc -ovc lavc -lavcopts acodec=ac3:vcodec=mpeg2video:vbitrate=9800 -mpegopts format=dvd -srate 48000 -ofps 30000/1001 -edl $INFILE.edl -o $INFILE_cut.mpg

    changing the scale (and bitrate to correspond) caused the output files to be not so watchable.
     
  7. Dec 17, 2008 #427 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    No, you should supply the full path to the VRD installation directory where all the various executables can be found, so take VideoRedo.exe out for your setting. Once it has the right path you should see the VRD QS fix option become selectable and thus you will be able to use QS fix and the cuts will be done with VRD rather than mencoder.

    EDIT: I see in your post above that you realized this now. NOTE: It is documented as well if you read the documentation. :)
     
  8. Dec 18, 2008 #428 of 10413
    Meklos

    Meklos New Member

    66
    0
    Nov 22, 2002
    If I do a comcut, do I have to do an encode to get the commercials cut out? The reason I ask, I am using the tivostream-hd profile, doing decode, comskip, comcut and captions, but not encode...


    An 8GB .tivo file is turning into a 3GB _cut.mpg file... ??
     
  9. Dec 18, 2008 #429 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    No, commercial cutting is independent of encoding. The encoding profile selection only applies if you enable the encode check.
    Note that comskip yields very crude results at best for some files and you are really better off using an mpeg editor such as VRD if you want accurate cuts. My guess is in this case comskip is over detecting commercials and cutting out too much. Note that with comskip enabled you can generate a cut file for VRD that you can then open with VRD as a starting point to make cuts manually. Personally I find it quicker and better to skip comskip/comcut and do commercial edits manually, then if encoding desired use FILES option in kmttg to select the edited file for encoding.
     
  10. Dec 18, 2008 #430 of 10413
    Meklos

    Meklos New Member

    66
    0
    Nov 22, 2002
    I have VRD installed on the machine and the path to VRD in the config. Is there a way to call VRD from a commandline to do commercial cuts, or is it interactive only?
     
  11. Dec 18, 2008 #431 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    The way it's configured in kmttg is following comskip if you have comcut enabled it will call VRD in the background to do the cuts (i.e. not interactive). However, I'm suggesting that for accurate edits you need to enter interactive mode.
     
  12. Dec 18, 2008 #432 of 10413
    Meklos

    Meklos New Member

    66
    0
    Nov 22, 2002
    I meant for the actual detection of the commercials themselves. I can open VRD and do the Ad Detective, but I was curious if there was a commandline function to active the Ad Detective on a particular file and have it autocut...

    Sorry for my lack of clarity... I'm suffering from the 'post-lunch lack of blood to the brain' syndrome.
     
  13. Dec 18, 2008 #433 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    Gotcha now. You know when including VRD support I actually added a job type called "adscan" which uses VRD for commercial scanning instead of "comskip". However from limited testing I found comskip generally did better than VRD ad detective so I left comskip as the default option to use for commercial detection. If you want to try it, uncomment (remove the leading #) lines 6137-6145 in latest kmttg.pl that look like this:
    Code:
             #if ($VRD && -f "$VRD\\AdScan.vbs") {
             #   $familyId += 0.1;
             #   my $vprjFile = $edlFile;
             #   $vprjFile =~ s/\.edl$/.VPrj/;
             #   &adscan($VARIABLE{'tivoName'}, $mpegFile, $vprjFile, $familyId);
             #} else {
                $familyId += 0.1;
                &comskip($VARIABLE{'tivoName'}, $mpegFile, $edlFile, $familyId);
             #}
    
    Then when you have "comskip" enabled it will actually use VRD Ad detective instead.

    NOTE: I haven't done much testing of that functionality so can't guarantee anything, but it's worth a shot. If it does work OK for you perhaps in next update I'll add an option to choose VRD ad detective instead of comskip for commercial detection.
     
  14. Dec 18, 2008 #434 of 10413
    Meklos

    Meklos New Member

    66
    0
    Nov 22, 2002
    Will do some testing and let you know. There will be quite a bit of broadcast TV for me to chug through, and I'd like to automate as much of the commercial-removal process that I can.

    Thanks!
     
  15. Dec 22, 2008 #435 of 10413
    ehagberg

    ehagberg Member

    93
    0
    Dec 27, 2004
    Montclair, NJ
    Something I just noticed recently, after getting past trying to bother using mencoder for commercial cutting and just using VideoRedo instead... is that even for those programs that mencoder ends up creating watchable video, running t2extract against that video shows that mencoder had no respect for the CC data stream as it's turned to garbage.

    Removing commercials with VideoRedo and then t2extract against those files results in subtitles that are just fine.
     
  16. Dec 26, 2008 #436 of 10413
    falc122727

    falc122727 Member

    147
    0
    Jan 21, 2004
    Great Program. However, a few issues with my first use.

    1) Transfer Speed. The 90 minute HD program took almost 3 hours to transfer: TiVo size=11359.68 MB elapsed=02:48:40 (9.42 Mbps). Is this speed normal? I'm on a wired network. I have no experience at all with TTG as I've always used Tytools on hacked TiVos.

    2) Picture Quality: The decrypted mpg video has tiny horizontal lines visible, especially during rapid movements (see attached screen cap). Could this be a function of the decryption?
     

    Attached Files:

  17. Dec 26, 2008 #437 of 10413
    Meklos

    Meklos New Member

    66
    0
    Nov 22, 2002
    Looks like something to do with interlacing to me...
     
  18. Dec 26, 2008 #438 of 10413
    moyekj

    moyekj Well-Known Member

    11,150
    33
    Jan 23, 2006
    Mission...
    1) Yes, that's pretty typical for THD HD transfer speeds. With S3s they are still a little faster than THD units and I can get around 13 Mbps sustained under normal conditions.
    2) Decrypting does nothing to affect picture quality so the problem is with source recording.
     
  19. Dec 26, 2008 #439 of 10413
    falc122727

    falc122727 Member

    147
    0
    Jan 21, 2004
    Thanks for the quick response moyekj

    1) I guess I have to get used to the massive file sizes of HD.

    2) The video is absolutely clear on my TiVo. Does TTG do any video processing or is it purely a copy of the raw file from the TiVo? I've tried multiple players VLC, WMP, and ZoomPlayer, and multiple codecs, but I still get the same interlacing effect. I downloaded the same file with the Tivodesktop (slower transfer than kmttg by the way) and still have the problem. Any ideas?
     
  20. Dec 26, 2008 #440 of 10413
    beady

    beady New Member

    60
    0
    Oct 30, 2006
    LI, NY
    Is there any way to use kmttg to automatically convert the decrypted Tivo file to mpeg with mp2 audio? I have a Popcorn Hour A-110 and can't hear audio after decrypting a file from my S3. When I run a program called MPEG Streamclip on the decrypted file and select "Convert to MPEG with MP2 Audio" the sound suddenly works. It does not appear that MPEG Streamclip has a command line interface.
     

Share This Page