示例#1
0
# Sources
JP_BD = FileInfo(r'BDMV/[BDMV][210224][Majo no Tabitabi][Blu-Ray BOX下巻]/BDMV/STREAM/00003.m2ts',
                 (24, -24), idx=lambda x: source(x, force_lsmas=True, cachedir=''),
                 preset=[PresetBD, PresetAAC])
JP_BD_NCED = FileInfo(r'BDMV/[BDMV][アニメ][210127][MAJO_NO_TABITABI_1][Blu-Ray BOX 上]/BDMV/STREAM/00016.m2ts',
                     (24, -24), idx=lambda x: source(x, force_lsmas=True, cachedir=''))
JP_WEB = FileInfo(fr'WebSrc/Wandering Witch Elaina E{EP_NUM} [1080p][AAC][JapDub][GerSub][Web-DL].mkv',
                  (None, None), idx=lambda x: source(x, force_lsmas=True, cachedir=''))
JP_BD.name_file_final = VPath(f"premux/{JP_BD.name} (Premux).mkv")
JP_BD.a_src_cut = VPath(f"{JP_BD.name}_cut.aac")
JP_BD.do_qpfile = True


# Chapter creation
CHAPTERS = MplsReader(r"BDMV/[BDMV][210224][Majo no Tabitabi][Blu-Ray BOX下巻]", lang=JAPANESE) \
    .get_playlist()[1].mpls_chapters[int(EP_NUM)-13].to_chapters()
CHAP_NAMES: Sequence[Optional[str]] = ['Intro', 'OP', 'Part A', 'Part B', 'ED']

# ED Variables
edstart = 32367
ed_offset = 2


def pre_corrections() -> Union[vs.VideoNode, Tuple[vs.VideoNode, ...]]:
    """
    There were a couple animation 'fixes' in the BDs that I'm reverting here.
    Alongside that, they also introduced a couple of errors occasionally which I also fix here.
    Comments with examples of what I'm changing/fixing included if big enough.
    """
    import lvsfunc as lvf
示例#2
0
# Sources
JP_BD = FileInfo(r'BDMV/130522_JOSHIRAKU_VOL6/BDMV/STREAM/00000.m2ts', (24, 34791),
                 idx=lambda x: source(x, cachedir=''),
                 preset=[PresetBD, PresetAAC, PresetChapXML])
JP_BD_NCOP = FileInfo(r'BDMV/120926_JOSHIRAKU_VOL1/BDMV/STREAM/00001.m2ts', (24, -24),
                      idx=lambda x: source(x, cachedir=''))
JP_BD_NCED = FileInfo(r'BDMV/120926_JOSHIRAKU_VOL1/BDMV/STREAM/00002.m2ts', (24, -24),
                      idx=lambda x: source(x, cachedir=''))
JP_BD_03 = FileInfo(r'BDMV/121024_JOSHIRAKU_VOL2/BDMV/STREAM/00000.m2ts', (24, 2182),
                    idx=lambda x: source(x, cachedir=''))
JP_BD.name_file_final = VPath(fr"premux/{JP_BD.name} (Premux).mkv")
JP_BD.a_src_cut = VPath(f"{JP_BD.name}_cut.aac")
JP_BD.do_qpfile = True

# Chapter handling
CHAPTERS = MplsReader(r"BDMV/130522_JOSHIRAKU_VOL6", lang=JAPANESE).get_playlist()[0].mpls_chapters[0].to_chapters()
CHAP_NAMES: Sequence[Optional[str]] = ['OP', 'Part A', 'Part B', 'Part C', 'ED', 'Preview']
CHAPTERS = CHAPTERS[:6]


# OP/ED Variables
opstart = 0
edstart = 31889
op_offset = 2
ed_offset = 1


def filterchain() -> Union[vs.VideoNode, Tuple[vs.VideoNode, ...]]:
    """Main filterchain"""
    import havsfunc as haf
    import lvsfunc as lvf
示例#3
0
    idx=lambda x: source(x, force_lsmas=True, cachedir=''),
    preset=[PresetBD, PresetAAC])
JP_BD_NCED = FileInfo(
    r'BDMV/[BDMV][アニメ][210127][MAJO_NO_TABITABI_1][Blu-Ray BOX 上]/BDMV/STREAM/00016.m2ts',
    (24, -24),
    idx=lambda x: source(x, force_lsmas=True, cachedir=''))
JP_WEB = FileInfo(
    fr'WebSrc/Wandering Witch Elaina E{EP_NUM}v2 [1080p][AAC][JapDub][GerSub][Web-DL].mkv',
    (None, None),
    idx=lambda x: source(x, force_lsmas=True, cachedir=''))
JP_BD.name_file_final = VPath(f"premux/{JP_BD.name} (Premux).mkv")
JP_BD.a_src_cut = VPath(f"{JP_BD.name}_cut.aac")
JP_BD.do_qpfile = True

# Chapter creation
CHAPTERS = MplsReader(r"BDMV/[BDMV][アニメ][210127][MAJO_NO_TABITABI_1][Blu-Ray BOX 上]", lang=JAPANESE) \
    .get_playlist()[1].mpls_chapters[int(EP_NUM)-1].to_chapters()
CHAP_NAMES: Sequence[Optional[str]] = ['Intro', 'Part A', 'Part B', 'Outro']

# OP/ED Variables
edstart = False
ed_offset = 0


def pre_corrections() -> Union[vs.VideoNode, Tuple[vs.VideoNode, ...]]:
    """
    There were a couple animation 'fixes' in the BDs that I'm reverting here.
    Alongside that, they also introduced a couple of errors occasionally which I also fix here.
    Comments with examples of what I'm changing/fixing included if big enough.
    """
    import lvsfunc as lvf