Skip to content

Instantly share code, notes, and snippets.

@AlucardSama04
AlucardSama04 / triaq x264 patch.diff
Created December 28, 2019 14:56
triaq x264 patch.diff
diff --git a/Makefile b/Makefile
index fb1fdc08..677bfce7 100644
--- a/Makefile
+++ b/Makefile
@@ -400,7 +400,7 @@ OPT0 = --crf 30 -b1 -m1 -r1 --me dia --no-cabac --direct temporal --ssim --no-we
OPT1 = --crf 16 -b2 -m3 -r3 --me hex --no-8x8dct --direct spatial --no-dct-decimate -t0 --slice-max-mbs 50
OPT2 = --crf 26 -b4 -m5 -r2 --me hex --cqm jvt --nr 100 --psnr --no-mixed-refs --b-adapt 2 --slice-max-size 1500
OPT3 = --crf 18 -b3 -m9 -r5 --me umh -t1 -A all --b-pyramid normal --direct auto --no-fast-pskip --no-mbtree
-OPT4 = --crf 22 -b3 -m7 -r4 --me esa -t2 -A all --psy-rd 1.0:1.0 --slices 4 --fgo 8 --fade-compensate 0.5
+OPT4 = --crf 22 -b3 -m7 -r4 --me esa -t2 -A all --psy-rd 1.0:1.0 --slices 4 --fgo 8 --fade-compensate 0.5 --aq2-strength 0.5 --aq3-mode 2
@AlucardSama04
AlucardSama04 / x264 Fullhelp
Created December 15, 2019 05:03
x264 Fullhelp
x264 core:158 r2984M 3759fcb
Syntax: x264 [options] -o outfile infile
Infile can be raw (in which case resolution is required),
or YUV4MPEG (*.y4m),
or Avisynth if compiled with support (yes).
or libav* formats if compiled with lavf support (yes) or ffms support (no).
Outfile type is selected by filename:
.264 -> Raw bytestream
.mkv -> Matroska
@AlucardSama04
AlucardSama04 / bored.py
Last active October 16, 2019 18:23
Bored
number = int(input("Enter any number from 1 to 9: "))
year = int(input("Enter your year of birth: "))
def main(number, year):
no1 = number*2+5
no2 = no1*50+1769
no3 = str(no2 - year)
age = no3[1:3]
print(f'Your age is: {age}')
@AlucardSama04
AlucardSama04 / AviSynth exemple.avs
Created March 17, 2019 06:22
Exemplu de Script AviSynth
src = "G:\[HorribleSubs] Sword Art Online - Alicization - 22 [1080p].mkv"
FFVideoSource(src)
ConvertToYV12()
EdgeCleaner(hot=true) #Dering
AutoDeblock2() #Deblocking
pf = RemoveGrain(mode=17).FluxSmooth_FluxSmoothST(7,7) #PreFilter for SMDegrain
@AlucardSama04
AlucardSama04 / MkzBot.js
Last active June 14, 2019 20:35
MkzBot.js
const Discord = require("discord.js");
var Client = new Discord.Client();
const token = "";
Client.on("ready", () => {
console.log("Mi-e frică!");
Client.user.setActivity(`www.animeronews.tk`);
});
b add deband-threshold +50
B add deband-threshold -50
Ctrl+b cycle deband
@AlucardSama04
AlucardSama04 / mpv.conf
Created October 31, 2018 17:22
mpv.conf
# High quality video rendering for fast computer.
profile=opengl-hq
deband=no
#Tweaks
cursor-autohide=100
keep-open=no
#Priority
slang=en,eng