This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fixdupfield( clip c, int "thr" ) | |
{ | |
thr = default(thr,4) | |
s = c.separatefields() | |
m = mt_lutxy(s.selecteven, s.selectodd, "x y - abs "+string(thr)+" - 255 *") | |
\ .removegrain(4,-1).mt_expand.mt_inpand.mt_inpand.removegrain(4,-1) | |
conditionalfilter(m,c.nnedi3,c,"YPlaneMax","==","0") | |
mergechroma(c) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#IfWinActive,ahk_class wxWindowNR,sashWindow | |
!`::ControlClick,wxWindowNR12 | |
#IfWinActive |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export script_name = 'Delete keyframe' | |
export script_description = 'Delete keyframe from a loaded "keyframe format v1" file' | |
aegisub.register_macro script_name, script_description, (subs) -> | |
local kf_file | |
error 'Load video first.' if not aegisub.frame_from_ms 0 | |
info_section_scanned = false | |
for line in *subs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!python3 | |
import sys, re, bisect, collections, argparse | |
def run(): | |
parser = HelpfulParser() | |
parser.add_argument('qpfile', type=argparse.FileType('r'), | |
help='the source qp file') | |
parser.add_argument('timecodesfile', type=argparse.FileType('r'), | |
help='the source timecodes v1 file') | |
parser.add_argument('chaptersfile', type=argparse.FileType('w'), nargs='?', default=sys.stdout, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <shlwapi.h> | |
#include <strsafe.h> | |
#pragma optimize("gsy", on) | |
#pragma comment(linker, "/ENTRY:start") | |
#pragma comment(linker, "/NODEFAULTLIB:no") | |
void reuseRunningInstance(HWND hST) { | |
int argc; |