core = vs.core make_wraw: bool = False # Create a workraw enc_type = 'Premux' if not make_wraw else 'wraw' EP_NUM = __file__[-5:-3] # Sources JP_clip = FileInfo( f'sources/{EP_NUM}/Jahy-sama wa Kujikenai E{EP_NUM} [1080p][AAC][JapDub][GerEngSub][Web-DL].mkv', idx=lambda x: source(x, force_lsmas=True, cachedir=''), preset=[PresetWEB, PresetAAC]) JP_clip.name_file_final = VPath( f"{enc_type.lower()}/Jahy_{EP_NUM} ({enc_type}).mkv") JP_clip.name_clip_output = VPath(JP_clip.name + '.265') JP_clip.do_qpfile = True # Common variables # OP/ED frames opstart: Union[int, bool] = 2014 edstart: Union[int, bool] = 31746 op_offset: int = 1 ed_offset: int = 1 freeze_ranges: List[List[int]] = [ # [start_frame, end_frame, frame] [opstart, opstart + 18, opstart], [opstart + 87, opstart + 96, opstart + 87], [opstart + 201, opstart + 207, opstart], [opstart + 238, opstart + 244, opstart], ]
# Sources JP_CR = FileInfo( f'sources/{EP_NUM}/Kobayashi-san Chi no Maid Dragon S E{EP_NUM} [1080p][AAC][JapDub][GerEngSub][Web-DL].mkv', idx=lambda x: source(x, force_lsmas=True, cachedir='')) JP_AOD = FileInfo( f'sources/{EP_NUM}/Kobayashi-san Chi no Maid Dragon S E{EP_NUM} [1080p+][AAC][JapDub][GerSub][Web-DL].mkv', idx=lambda x: source(x, force_lsmas=True, cachedir=''), preset=[PresetWEB, PresetAAC]) YT_NCOP = FileInfo( 'sources/【期間限定公開】TVアニメ『小林さんちのメイドラゴンS』ノンテロップオープニング映像-bEb4xT8lnYU.mkv', idx=lambda x: source(x, force_lsmas=True, cachedir='')) YT_NCED = FileInfo( 'sources/【期間限定公開】TVアニメ『小林さんちのメイドラゴンS』ノンテロップエンディング映像-kMWLe37SMBs.mp4', idx=lambda x: source(x, force_lsmas=True, cachedir='')) JP_AOD.name_file_final = VPath(fr"[Premux] Maid Dragon S2 - {EP_NUM}.mkv") JP_AOD.name_clip_output = VPath(JP_AOD.name + '.264') JP_AOD.a_src_cut = VPath(f"{JP_AOD.name}_cut.aac") JP_AOD.do_qpfile = True # Common variables # OP/ED frames opstart: Union[int, bool] = 1582 edstart: Union[int, bool] = False op_offset: int = 1 ed_offset: int = 1 hardsub_sign: List[ Range] = [ # Leftover hardsubbed signs that need a stronger mask (129, 184), (14763, 14950), (23616, 23722), (30563, 30597), (23927, 23991), (16173, 16244), (17328, 17400), (17401, 17472), (18820, 18823), (24009, 24084), (33853, 34044), (12430, 12491),