LeBrickster

Installing and using KTGMC

Dec 22nd, 2021 (edited)
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.37 KB | None | 0 0
  1. Before you get started, make sure you have the following in your machine:
  2.  
  3. A 64-bit CPU
  4. A 64-bit Copy of Windows
  5. An NVIDIA card with CUDA cores
  6. The lastest drivers for your card
  7.  
  8. If you have an AMD card, this guide is not for you, as KTGMC works using CUDA technology, and will not work without it.
  9.  
  10. If you have those 4 prerequisites met, then proceed to follow this video: https://www.youtube.com/watch?v=C4PyyQoz6eo
  11.  
  12. This video will introduce you on getting AviSynth+ set up, alongside the relevant plugins, and software. Do not follow this guide for KTGMC, until you get everything from this video working. Once you understand everything as shown in the video, you can then move onto installing KTGMC.
  13.  
  14. To install KTGMC, you first need a special version of AviSynth+. You can download it from here: https://github.com/nekopanda/AviSynthPlus/releases/download/r2827/AvisynthNeo-r2827.zip
  15.  
  16. Within the 7z archive, are x64 and x86 folders. In the x64 folder. copy the AviSynth.dll file to C:\Windows\System32, and overwrite the existing one. Within the x64 folder is also a "system" folder with a file called DevIL.dll. Also put this in C:\Windows\System32, overwriting the old one. For the plugins64+ folder, copy the folder into C:\Program Files (x86)\AviSynth+, and overwrite any files.
  17.  
  18. For x86, the steps are much the same, except instead of C:\Windows\System32, it's C:\Windows\SysWOW64.
  19.  
  20. After you have the custom AviSynth+ build installed, you then need to get KTGMC, which can be gotten here: https://github.com/nekopanda/AviSynthCUDAFilters/releases/download/0.4.6/KTGMC-0.4.6.7z
  21.  
  22. Within the KTGMC archive are x64 and x86 archives. Installation is simple here. Copy the x64 files to C:\Program Files (x86)\AviSynth+\plugins64+, and the x86 files to C:\Program Files (x86)\AviSynth+\plugins+
  23.  
  24. Once you have KTGMC installed, you'll then need a video to deinterlace. If you want to, say, deinterlace an interlaced DVD, rip it using a program called MakeMKV. You can get it from here: https://www.makemkv.com/
  25.  
  26. Once you have your content ripped, you'll then need an AVS script. I have made my own script which you can use and edit. You can download it here: https://cdn.discordapp.com/attachments/515137059086925844/938285891942752297/ktgmc_script.avs
  27.  
  28. You'll need to edit the script to reflect the path and name of your mkv files. You'll also want to comment out the "Crop" command, since the crop settings presented in the example script will not apply to each and every DVD.
  29.  
  30. Once you do that, open up the script in AvsPMod, and confirm that things are working as they should. If they are, go to Video, and then head on over to the crop editor. From there, crop out the black bars on the side of your video, and if there is junk at the bottom of the screen, feel free to crop that, as well.
  31.  
  32. Once you do that, the crop command should be placed near the end of the script. You can then save the script, and bring it on over to VirtualDub2, where we will proceed to encode the video.
  33.  
  34. You'll want to go to the Video tab, and then go to compression. Look for the x264 8-bit option. Here, you will want to set the following settings:
  35.  
  36. (Encoding) Preset: VerySlow (Placebo doesn't really have any benefit, and is just slower)
  37. CRF Value: 13 (DVDs are already compressed, so you'll want to avoid adding more compression onto the image)
  38. SAR Width: 160 (for 4:3 NTSC content. If your content is widescreen, then you'll need to seek out different values)
  39. SAR Height: 177 (for 4:3 NTSC content. If your content is widescreen, then you'll need to seek out different values)
  40.  
  41. Once you have the encoder settings set, you'll also want to go to the Audio tab, and disable audio. We'll remux the audio into the video later, so don't worry about the lack of audio.
  42.  
  43. From there, go to File, and Save Video. In the drop down for selecting file types, choose MP4 (MPEG-4 Part 14), and then Save. From there, your deinterlaced video will render out to an MP4 file. This process may take a while, so go do something else in the mean time.
  44.  
  45. Once the render is completed (which you'll know, once the Status window is gone), you'll now want to add in Audio, Chapter Markers, and Subtitles. To do this, you'll need to download MKVToolNix GUI, which can be obtained here: https://www.fosshub.com/MKVToolNix.html?dwl=mkvtoolnix-64-bit-63.0.0-setup.exe
  46.  
  47. Once you have installed the program, you'll want to drag your rendered MP4 file into the "Source Files" area of the program. Then, you'll want to drag in the ripped MKV file from earlier. If a popup comes up asking about adding files via drag and drop, click on the "Add as a new source files to the current multiplex settings" option, and then OK.
  48.  
  49. Now move your attention to the Tracks, chapters, and tags window. In this Window, uncheck the line that says "MPEG1/2", as that is the original DVD video you ripped, in its still interlaced form. Once you uncheck it, click on the "Start multiplexing" button, at the bottom of the program. The program will make an MKV file next to your rendered mp4 file, with audio, and anything else from the original MKV file.
  50.  
  51. And that's it! You've successfully deinterlaced a DVD using KTGMC, and remuxed the original audio, chapters, and subtitles, back into it!
  52.  
  53. I hope this text guide can be of some sort of help (this kind of stuff is a bit confusing without visuals, I have to admit). If you have any questions, please ask, and I'll see if I can help you, in any way!
Add Comment
Please, Sign In to add comment