Skip to content

Instantly share code, notes, and snippets.

@noaione
Created July 27, 2019 07:29
Show Gist options
  • Select an option

  • Save noaione/f5b919a9c594ce4ad7ba0ec51882dc1f to your computer and use it in GitHub Desktop.

Select an option

Save noaione/f5b919a9c594ce4ad7ba0ec51882dc1f to your computer and use it in GitHub Desktop.
Fire Force 03
import vapoursynth as vs
from vapoursynth import core
import fvsfunc as fvf
import havsfunc as haf
import kagefunc as kgf
import n4ofunc as nao
import vsTAAmbk as taa
from vsutil import iterate, get_y, insert_clip
import adjust
src_amz_vbr = nao.src("Fire Force - 03 (Amazon Prime VBR 1080p).mkv", depth=16)
src_amz_hevc = nao.src("Fire Force - 03 (Amazon Prime HEVC 1080p).mkv", depth=16)
src_amz = nao.bplanes([src_amz_vbr, src_amz_hevc], ["max", "both"])
src_amz_ep2 = nao.src("Fire Force - 02 (Amazon VBR 1080p).mkv", depth=16)
death_by_fire = src_amz_ep2.sub.TextFile('masked_Opening.ass')[0:552]
ed_uncen = src_amz_ep2[33206:33275+1]
src_amz = death_by_fire + src_amz
src_amz = insert_clip(src_amz, ed_uncen, 33205)
re_brighten = src_amz[24001:24065]
re_brighten7plus = adjust.Tweak(re_brighten, hue=4.5, sat=1.6, bright=2.1, cont=1.59)[7:]
re_brighten1 = adjust.Tweak(re_brighten, hue=2.5, sat=1.2, bright=1.5, cont=1.05)[1]
re_brighten2 = adjust.Tweak(re_brighten, hue=2.7, sat=1.21, bright=1.65, cont=1.1)[2]
re_brighten3 = adjust.Tweak(re_brighten, hue=2.8, sat=1.25, bright=1.69, cont=1.18)[3]
re_brighten4 = adjust.Tweak(re_brighten, hue=2.5, sat=1.31, bright=1.75, cont=1.29)[4]
re_brighten5 = adjust.Tweak(re_brighten, hue=2.7, sat=1.38, bright=1.82, cont=1.4)[5]
re_brighten6 = adjust.Tweak(re_brighten, hue=2.8, sat=1.46, bright=1.9, cont=1.47)[6]
re_brighten = re_brighten[0] + re_brighten1 + re_brighten2 + re_brighten3 + re_brighten4 + re_brighten5 + re_brighten6 + re_brighten7plus
src_amz = insert_clip(src_amz, re_brighten, 24001)
src_amz.set_output()
[Script Info]
; Script generated by Aegisub 8975-master-8d77da3
; http://www.aegisub.org/
Title: New subtitles
ScriptType: v4.00+
WrapStyle: 0
PlayResX: 1920
PlayResY: 1080
ScaledBorderAndShadow: yes
YCbCr Matrix: TV.709
[Aegisub Project Garbage]
Audio File: Fire Force - 02 (Amazon VBR 1080p).mkv
Video File: Fire Force - 02 (Amazon VBR 1080p).mkv
Video AR Mode: 4
Video AR Value: 1.777778
Video Zoom Percent: 0.500000
Active Line: 1
Video Position: 516
[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Default,Arial,45,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,4.5,4.5,2,30,30,23,1
[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: 0,0:00:00.00,0:00:05.00,Default,,0,0,0,,
Dialogue: 0,0:00:21.20,0:00:23.00,Default,,0,0,0,,{\fad(350,0)\an7\pos(0,0)\fscx100\fscy100\p1\c&H000000&}m -46 -116 l 1920 -116 1920 1080 -46 1080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment