New program for 1 step TTG downloads, decryption, encoding - kmttg

Discussion in 'TiVo Home Media Features & TiVoToGo' started by moyekj, Mar 15, 2008.

  1. Oct 27, 2019 #12461 of 12537
    Snowball3

    Snowball3 Member

    49
    1
    Oct 4, 2018
    Thank you for explaining that to me mlippert. I do have videoredo so I may have to ask more on that subject later. Whenever I use windows reg I seem to have problems.

    My current issue with kmttg is that I seem to be having a problem with shows that don't have any titles? For example I have several shows recorded (on the same day) and they will be like a game show or something. So it will read for ex:

    Game Show 10/27/2019
    Game Show 10/27/2019
    Game Show 10/27/2019
    Game Show 10/27/2019

    So I will highlight all those shows to transfer over but only one show from that date will transfer over. I think it is believing that the shows are all the same and only takes one of the episodes but they are all different episodes. Because like if I had 5 shows for Monday, 5 shows for Tuesday, and 5 shows for Wednesday for example. That's fifteen shows I will highlight to transfer over but only one show from each date Monday, Tuesday, and Wednesday will transfer over.

    I have my settings to decrypt, create a .ts file, and delete the .tivo file after recording. But it never even attempts to record the other shows on the same date.

    Does anyone know how to change this so it records everything on that date or everything I have highlighted? If I highlight it I am unsure why it is not recording when it works with other shows that have different names for each episodes. Sorry for the long explanation. Thank you if you can help!
     
  2. Oct 27, 2019 #12462 of 12537
    mlippert

    mlippert Active Member

    268
    53
    Apr 2, 2010
    Massachusetts
    I have a suspicion as to what is the problem. I think the issue may be the way you have told kmttg to name the videos when they are downloaded.

    Report back here with what the File | Configure... | File Naming field has in it.
    I've set mine to be:
    Code:
    [mainTitle] ["- s" season]["e" episode " - "][episodeTitle " "]["(" movieYear ") "]([month]_[mday]_[year], [channel])
    You could try setting yours to that.

    Also do this: for 2 of your videos that are the same name on the TiVo, download the metadata text file.
    Select the file then type Ctrl-R (or select Download Metadata from the File menu). Then find the .txt file and rename it (ie if it were named "Game Show 10_27_2019.txt" change it to "Game Show 10_27_2019-num1.txt")
    Then select the 2nd of the same shows and download it's metadata file. You can post the contents of those 2 files here in [ CODE ] blocks. What I'm expecting to see is different contents in the 2 files.
     
  3. Oct 27, 2019 #12463 of 12537
    ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    10,881
    736
    Apr 6, 2000
    SF Bay Area
    The show may be downloading but they may be overwriting or skipping because you have the same file names. You should set in filenaming of Config, to something like "[title].[month].[day].[year].[hour].[min]"..... Don't use /, \, : [colon], + [Plus], <, >, ?, [double quote] characters, or you can run into problems. It is safe to use . [period], comma,- [dash], (, ), {, }, [, ], ^, !, ' [single quote], ; [semi-colon].
     
  4. Oct 27, 2019 #12464 of 12537
    mlippert

    mlippert Active Member

    268
    53
    Apr 2, 2010
    Massachusetts
    I just ran into an issue w/ kmttg v2.4o on Windows 7.

    I downloaded a PS mpg file from my Tivo and decrypted it and ran qsfix and Ad Detect as always.
    I got these 3 files:
    Code:
    Young Sheldon - s03e05 - A Pineapple and the Bosom of Male Friendship (Oct_24_2019, WBZDT).mpg
    Young Sheldon - s03e05 - A Pineapple and the Bosom of Male Friendship (Oct_24_2019, WBZDT).TiVo
    Young Sheldon - s03e05 - A Pineapple and the Bosom of Male Friendship (Oct_24_2019, WBZDT).VPrj
    I used VideoReDo version 6 which I just upgraded to to adjust the cut points in the .VPrj file
    and then I added the .mpg to kmttg Files as I always have.
    I selected ONLY the Ad Cut and captions checkboxes at the top
    kmttg created 2 unexpected files:
    Code:
    Young Sheldon - s03e05 - A Pineapple and the Bosom of Male Friendship (Oct_24_2019, WBZDT).srt
    Young Sheldon - s03e05 - A Pineapple and the Bosom of Male Friendship (Oct_24_2019, WBZDT)_cut.ts
    I was expecting it to create:
    Code:
    Young Sheldon - s03e05 - A Pineapple and the Bosom of Male Friendship (Oct_24_2019, WBZDT)_cut.srt
    Young Sheldon - s03e05 - A Pineapple and the Bosom of Male Friendship (Oct_24_2019, WBZDT)_cut.mpg
    Here's the log window output
    Code:
    container=mpegts, video=mpeg2video
    >> Running adcut on F:\kmttgRecordings\Young Sheldon - s03e05 - A Pineapple and the Bosom of Male Friendship (Oct_24_2019, WBZDT).mpg ...
    C:\Windows\system32\cscript.exe //nologo C:\kmttg\VRDscripts\adcut.vbs "F:\kmttgRecordings\Young Sheldon - s03e05 - A Pineapple and the Bosom of Male Friendship (Oct_24_2019, WBZDT).VPrj" "F:\kmttgRecordings\Young Sheldon - s03e05 - A Pineapple and the Bosom of Male Friendship (Oct_24_2019, WBZDT)_cut.ts" /l:C:\Users\mjl\AppData\Local\Temp\VRDLock1716277185658510909.tmp /c:mpegts /v:mpeg2video
    adcut job completed: 0:01:12
    ---DONE--- job=adcut output=F:\kmttgRecordings\Young Sheldon - s03e05 - A Pineapple and the Bosom of Male Friendship (Oct_24_2019, WBZDT)_cut.ts
    Intended video file not found, looking for alternate input file...
    >> Running ccextractor on F:\kmttgRecordings\Young Sheldon - s03e05 - A Pineapple and the Bosom of Male Friendship (Oct_24_2019, WBZDT).mpg ...
    "C:\Program Files\CCExtractor\ccextractorwin.exe" "F:\kmttgRecordings\Young Sheldon - s03e05 - A Pineapple and the Bosom of Male Friendship (Oct_24_2019, WBZDT).mpg"
    ccextractor job completed: 0:00:16
    ---DONE--- job=captions output=F:\kmttgRecordings\Young Sheldon - s03e05 - A Pineapple and the Bosom of Male Friendship (Oct_24_2019, WBZDT).srt
    I'm just now noticing the 1st line in the log above that says container-mpegts That may be the culprit, why would kmttg think the ps .mpg file is a transport stream file?

    [edit] I wonder if it could be a VideoReDo v6 issue?
     
    Last edited: Oct 27, 2019
  5. Oct 27, 2019 #12465 of 12537
    ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    10,881
    736
    Apr 6, 2000
    SF Bay Area
    These files are normal operation. VRD makes most of these files. VPrj is from VRD adDetect, a text file which marks all the points. The .MPG is a product from decrypt, and other operations from VRD, when you edit a video file, it should not overwrite the file its currently editing, instead it makes a secondary file to affect changes. _cut.xxx is the product from adCut. .srt is product from CCextractor
     
  6. Oct 27, 2019 #12466 of 12537
    mlippert

    mlippert Active Member

    268
    53
    Apr 2, 2010
    Massachusetts
    Yes I understand that, the problem is that it isn't doing what is expected.
    I was just giving the preconditions to the problem, which is that the cut file should have been a PS .mpg file and the captions file should have been produced FROM that cut file NOT from the original uncut file.
     
  7. Oct 27, 2019 #12467 of 12537
    ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    10,881
    736
    Apr 6, 2000
    SF Bay Area
    You should have used adCut on the .VPrj file instead.
     
  8. Oct 27, 2019 #12468 of 12537
    Snowball3

    Snowball3 Member

    49
    1
    Oct 4, 2018
    You all are so helpful! Thank you so much! Everyone responds so fast and offer so much good information. I have asked for help in other forums on other websites where they never even replied lol. So you guys are for sure the best!

    On Kmttg I had it configured so my file naming settings were "[title] ([monthNum])_[mday]_[year])

    I never actually set it to that I think it just comes like that preset? I copied and pasted User ThAbt0 suggestion of "[title].[month].[day].[year].[hour].[min]" and replaced the file naming with that. If that didn't work I was going to try User Mlippert's suggestion of

    "[mainTitle] ["- s" season]["e" episode " - "][episodeTitle " "]["(" movieYear ") "]([month]_[mday]_[year], [channel])"

    But with the first option of "[title].[month].[day].[year].[hour].[min]" I picked a game show and highlighted 5 episodes that were recorded on the same day and transferred them as a trial run. Usually when I did that only one would transfer for that day. But this time after changing the setting I had success! All 5 transferred over. Thank you for taking the time to help me! I am hopeful with this file naming/saving setting that anything I highlight will transfer over and not leave anything behind that I didn't catch. Glad there is a place like this I can go to for help!
     
  9. Oct 27, 2019 #12469 of 12537
    ThAbtO

    ThAbtO TiVoholic by the bay TCF Club

    10,881
    736
    Apr 6, 2000
    SF Bay Area
    Adding the [hour] and [min] includes the date and time it was recorded and smaller chance of duplicate file names.

    I use a similar scheme myself, all the date and time, etc. I added myself from the pulldown option line.
     
  10. Oct 28, 2019 #12470 of 12537
    mlippert

    mlippert Active Member

    268
    53
    Apr 2, 2010
    Massachusetts
    @Snowball3 I'm glad you figured out it was the file naming. The naming scheme I mentioned that I use, uses the season/episode number to distinguish downloads, although you can add the hour and minute to be doubly sure just in case. I use it because it lets you see if the show was a series or a movie and gives you useful information just in the file name. (you can see an example of series naming above for an episode of Young Sheldon.) (And the files are named in a way that Plex server understands, but that isn't relevant to you.)
     
  11. Oct 28, 2019 #12471 of 12537
    mlippert

    mlippert Active Member

    268
    53
    Apr 2, 2010
    Massachusetts
    Thanks @ThAbtO
    I wouldn't have expected it, but yes adding the .VPrj instead of the .mpg did make kmttg do the right thing.

    This is still a regression, because I've been adding the .mpg file probably for the last 6-7 years at it worked just fine (at some point Kevin had said it didn't matter which file you started with, so I chose to always add the .mpg).

    It seems that running Ad Cut on the .mpg incorrectly identifies it as container=mpegts instead of container=mpeg. And it does that whether you are running starting w/ Ad Cut or you started with Ad Detect (ie you select the .mpg and check Ad Detect and Ad Cut)
    .
     
  12. Oct 29, 2019 #12472 of 12537
    Snowball3

    Snowball3 Member

    49
    1
    Oct 4, 2018
    Thank you mlippert and ThAbto and everyone else. Without your help I would have spent countless frustrating hours trying to figure this all out! Yes setting things in the file save settings to be so precise is exactly what I needed. It must be the ocd in me to have everything so ordered perfectly. Not to mention all the files that weren't transferring! Its just too bad I finally figure out all this stuff and just as I do my tivo is having all these rebooting problems. Lol just my luck as soon as I figure this out and it looks like I need to buy a tivo again!
     
  13. Nov 1, 2019 #12473 of 12537
    Joe3

    Joe3 Active Member

    693
    187
    Dec 12, 2006
    Boston MA
    Very frustrated and in need of help. The meta "check marked," the dycrpt "check marked," and the add cut "check marked no longer seems to produce a workable file for add cut.
    No _cut.mpg.mpg. Comskip just hangs forever.

    At the bottom of the file .log. I get this message:

    Could not open video codec

    Been at it for hours. This renders kmttg useless to me.

    Always worked before this.

    Please, what have I done wrong and can you help solve this problem??
    Thanks in advance.

    ################################################################
    Generated using Comskip 0.81.051
    Time at start of run:
    Fri Nov 01 11:47:47 2019
    ################################################################
    Mpeg: D:\\Will and Grace - s11e01 - Eat, Pray, Love, Phone, Sex (Oct_24_2019).mpg
    Exe C:\Users\joep3\Desktop\comskip\comskip.exe
    Logo: D:\\Will and Grace - s11e01 - Eat, Pray, Love, Phone, Sex (Oct_24_2019).logo.txt
    Ini: C:\Users\joep3\Desktop\comskip\comskip.ini

    Detection Methods to be used:
    1) Black Frame
    2) Logo - Give up after 2000 seconds
    3) Resolution Change
    4) Aspect Ratio


    ComSkip throttles back from -0001 to -0001.
    The time is now 1147 so it's full speed ahead!

    Settings
    --------
    [Main Settings]
    ;the sum of the values for which kind of frames comskip will consider as possible cutpoints: 1=uniform (black or any other color) frame, 2=logo, 4=scene change, 8=resolution change, 16=closed captions, 32=aspect ration, 64=silence, 255=all.
    detect_method=43
    ;Set to 10 to show a lot of extra info, level 5 is also OK, set to 0 to disable
    verbose=10
    ;Frame not black if any of the pixels of the frame has a brightness greater than this (scale 0 to 255)
    max_brightness=60
    maxbright=1
    ;Frame not pure black if a small number of the pixels of the frame has a brightness greater than this. To decide if the frame is truly black, comskip will also check average brightness (scale 0 to 255)
    test_brightness=40
    ;
    max_avg_brightness=25
    ;
    max_commercialbreak=600
    ;
    min_commercialbreak=25
    ;
    max_commercial_size=125
    ;
    min_commercial_size=4
    ;
    min_show_segment_length=250
    ;
    max_volume=500
    ;
    max_silence=100
    ;
    non_uniformity=500
    [Detailed Settings]
    min_silence=12
    noise_level=5
    brightness_jump=200
    fps=25
    validate_silence=1
    validate_uniform=1
    validate_scenechange=1
    global_threshold=1.05
    disable_heuristics=4
    [CPU Load Reduction]
    thread_count=2
    play_nice_start=-1
    play_nice_end=-1
    play_nice_sleep=10
    [Input Correction]
    max_repair_size=200
    ms_audio_delay=5
    volume_slip=40
    variable_bitrate=1
    lowres=0
    [Aspect Ratio]
    ar_delta=0.08
    cut_on_ar_change=1
    [Global Removes]
    padding=0
    remove_before=0
    remove_after=0
    added_recording=14
    delete_show_after_last_commercial=0
    delete_show_before_first_commercial=0
    delete_show_before_or_after_current=0
    delete_block_after_commercial=0
    min_commercial_break_at_start_or_end=39
    always_keep_first_seconds=0
    always_keep_last_seconds=0
    [USA Specific]
    intelligent_brightness=0
    black_percentile=0.0076
    uniform_percentile=0.003
    score_percentile=0.71
    [Main Scoring]
    length_strict_modifier=3
    length_nonstrict_modifier=1.5
    combined_length_strict_modifier=2
    combined_length_nonstrict_modifier=1.25
    ar_wrong_modifier=2
    excessive_length_modifier=0.01
    dark_block_modifier=0.3
    min_schange_modifier=0.5
    max_schange_modifier=2
    logo_present_modifier=0.01
    punish_no_logo=1
    [Detailed Scoring]
    punish=0
    reward=0
    punish_threshold=1.3
    punish_modifier=2
    reward_modifier=0.5
    [Logo Finding]
    border=10
    give_up_logo_search=2000
    delay_logo_search=0
    logo_max_percentage_of_screen=0.12
    ticker_tape=0
    ticker_tape_percentage=0
    ignore_side=0
    subtitles=0
    logo_at_bottom=0
    logo_threshold=0.75
    logo_filter=0
    aggressive_logo_rejection=0
    edge_level_threshold=5
    edge_radius=2
    edge_weight=10
    edge_step=1
    num_logo_buffers=50
    use_existing_logo_file=1
    two_pass_logo=1
    [Logo Interpretation]
    connect_blocks_with_logo=1
    logo_percentile=0.92
    logo_fraction=0.4
    shrink_logo=5
    shrink_logo_tail=0
    before_logo=0
    after_logo=0
    where_logo=0
    min_black_frames_for_break=1
    [Closed Captioning]
    ccCheck=0
    cc_commercial_type_modifier=4
    cc_wrong_type_modifier=2
    cc_correct_type_modifier=0.75
    [Live TV]
    live_tv=0
    standoff_retries=-1
    standoff_time=0
    standoff_size=0
    standoff_initial_size=0
    standoff_initial_wait=0
    require_div5=0
    div5_tolerance=-1
    incommercial_frames=1000
    [Output Control]
    output_default=1
    output_chapters=0
    output_plist_cutlist=0
    output_zoomplayer_cutlist=0
    output_zoomplayer_chapter=0
    output_vcf=0
    output_vdr=0
    output_projectx=0
    output_avisynth=0
    output_videoredo=0
    output_videoredo3=1
    videoredo_offset=2
    output_btv=0
    output_edl=1
    edl_offset=0
    output_edlp=0
    output_bsplayer=0
    output_edlx=0
    output_cuttermaran=0
    output_mpeg2schnitt=0
    output_womble=0
    output_mls=0
    output_mpgtx=0
    output_dvrmstb=0
    output_dvrcut=0
    output_ipodchap=0
    output_framearray=0
    output_debugwindow=0
    output_tuning=0
    output_training=0
    output_false=0
    output_aspect=0
    output_demux=0
    output_data=0
    output_srt=0
    output_smi=0
    output_timing=0
    output_incommercial=0
    delete_logo_file=0
    cutscene_frame=0
    cutscene_dumpfile=""
    cutscene_threshold=10
    cutscenefile1=""
    cutscenefile2=""
    cutscenefile3=""
    cutscenefile4=""
    cutscenefile5=""
    cutscenefile6=""
    cutscenefile7=""
    cutscenefile8=""
    windowtitle="Comskip - %s"
    cuttermaran_options="cut=\"true\" unattended=\"true\" muxResult=\"false\" snapToCutPoints=\"true\" closeApp=\"true\""
    mpeg2schnitt_options="mpeg2schnitt.exe /S /E /R25 /Z %2 %1"
    avisynth_options="LoadPlugin(\"MPEG2Dec3.dll\") \nMPEG2Source(\"%s\")\n"
    dvrcut_options="dvrcut \"%s.dvr-ms\" \"%s_clean.dvr-ms\" "
    [Sage Workarounds]
    sage_framenumber_bug=0
    sage_minute_bug=0
    enable_mencoder_pts=0

    Could not open video codec
     
    Last edited: Nov 1, 2019
  14. Nov 3, 2019 #12474 of 12537
    Borg D20

    Borg D20 New Member

    2
    0
    Mar 7, 2019
    Possibly a derp-level question, but I can't find an answer to it: is there any way for kmttg (or pyTivo in a pinch, but I'd prefer kmttg now that I've been messing with it) to pull CC2/CC3 captions, versus/along with CC1, for a given show? It's not exactly a dealbreaker, but it's literally the one reason why I still have 44 episodes of a telenovela on my Premiere (TBH, this was the reason I even set up the Premiere in the first place back in March) and haven't pulled them off yet...
     
  15. Nov 4, 2019 #12475 of 12537
    mlippert

    mlippert Active Member

    268
    53
    Apr 2, 2010
    Massachusetts
    So the video that kmttg (and pytivo) downloads is all you get. However since the CC1 is in that stream I would believe that CC2/CC3 would also be there, you just need to extract it.
    I don't know about getting kmttg to extract it automatically, but kmttg uses ccextractor (at least on windows) to extract the closed captions. A quick look at the ccextractor docs makes me think it can extract the cc2 captions.
    See Command Line Usage
    So I think if you just download and decrypt and qsfix the video, you can extract the captions you want. (I can extract the cc1 captions even after cutting out ads w/ VideoReDo, so I'd guess you could do that for the cc2 captions as well).
     
  16. Nov 4, 2019 #12476 of 12537
    Lurker1

    Lurker1 Well-Known Member

    715
    318
    Jun 4, 2004
    I have been a happy kmttg user for many years. I now need to install it on a new Ubuntu 19.10 box, and I am confused about installing Java. The standard packages don't seem to work any more. This thread is over 600 pages and I can't find what version(s) of jdk/jfx/etc. to install, and where to get them. Help?
     
  17. Nov 4, 2019 #12477 of 12537
    mlippert

    mlippert Active Member

    268
    53
    Apr 2, 2010
    Massachusetts
    Hmm, I wonder if you need to install Oracle Java 8, which seems is harder now with the licensing changes. Anyway see if this helps How to install Oracle Java 8 on Ubuntu 19.04

    [edit to add] I just found this
    on kmttg / Wiki / linux_installation
     
    snerd likes this.
  18. Nov 4, 2019 #12478 of 12537
    leswar

    leswar leswar

    205
    17
    Apr 14, 2005
    Vero Beach
    Don't know if this would work but have you tried selecting CC2 as your main output in Tivo's CC settings?
     
  19. Nov 4, 2019 #12479 of 12537
    Borg D20

    Borg D20 New Member

    2
    0
    Mar 7, 2019
    Apparently ccextractor does allow for pulling cc2 natively, but there's no way to force it as an argument from within kmttg itself that I can see. Which probably figures at this point. I may have to at least attempt a manual run just to see what happens.

    It already is because of a couple of shows. It just doesn't help with this particular issue.
     
  20. Nov 4, 2019 #12480 of 12537
    Lurker1

    Lurker1 Well-Known Member

    715
    318
    Jun 4, 2004
    snerd, mlippert and kpeters59 like this.

Share This Page