Last active
September 6, 2021 07:20
-
-
Save pandamoon21/0ee86ea8a1be729fe3563d287b6bc609 to your computer and use it in GitHub Desktop.
Custom avisynth+ for personal use.
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
red = $FF7C7C | |
green = $B2FF7C | |
blue = $8F97FF | |
yellow = $FFFF00 | |
orange = $FFB97C | |
magenta = $FF77FF | |
violet = $C787FF | |
cyan = $7DF9FF | |
white = $FFFFFF | |
azure = $86C8FF | |
river = $3498DB | |
alizarin = $E74C3C | |
nasupurple = $5F27CD | |
function myFFInfo2(clip c, string "bonusText", int "bonus_text_color") { | |
bonusText = default(bonusText, "") | |
bonus_text_color = default(bonus_text_color, $FFFF00) | |
Width(c) < 1024 ? Eval(""" | |
text_size = 16 | |
bonus_text_size = 25 | |
bonus_text_pos = 54 | |
""") : Eval(""" | |
text_size = 18 | |
bonus_text_size = 40 | |
bonus_text_pos = 40 | |
""") | |
varprefix = FFVAR_PREFIX | |
c.frameevaluate(""" | |
fftempstring = "" | |
varprefix = """" + varprefix + """" | |
""") | |
frameevaluate("""fftempstring = fftempstring + "Frame Number: " + string(current_frame) + " of " + string(framecount()) + "\n" """, after_frame=true) | |
frameevaluate("""fftempstring = fftempstring + "Picture Type: " + FFPictType(eval(varprefix + "FFPICT_TYPE")) + "\n" """, after_frame=true) | |
frameevaluate("""fftempstring = fftempstring + "CFR Time: " + FFFormatTime(round((current_frame * 1000) / framerate())) + "\n" """, after_frame=true) | |
frameevaluate("""fftempstring = fftempstring + "ColorSpace: " + FFColorSpace(eval(varprefix + "FFCOLOR_SPACE")) + "\n" """, after_frame=true) | |
frameevaluate("""fftempstring = fftempstring + "Color Range: " + FFColorRange(eval(varprefix + "FFCOLOR_RANGE")) + "\n" """, after_frame=true) | |
frameevaluate("""fftempstring = fftempstring + "Cropping: " + FFCropping(eval(varprefix + "FFCROP_LEFT"),eval(varprefix + "FFCROP_TOP"),eval(varprefix + "FFCROP_RIGHT"),eval(varprefix + "FFCROP_BOTTOM")) + "\n" """, after_frame=true) | |
frameevaluate("""fftempstring = fftempstring + "SAR: " + FFSampAR(eval(varprefix + "FFSAR_NUM"),eval(varprefix + "FFSAR_DEN")) + "\n" """, after_frame=true) | |
scriptclip("subtitle(fftempstring, y=5, lsp = 1)", after_frame=true) | |
Subtitle(bonusText, size=bonus_text_size, y=bonus_text_pos, text_color=bonus_text_color, align=8, lsp = 1) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment