Upscale a video to any target resolution with two hard rules:
Given source (src_w, src_h) and target (t_w, t_h):
r = t_h / src_hr < 2: pure lanczos to target.n >= 1 so pre_h = t_h / 4^n >= 270, choose pre_h closest to src_h. Then do one lanczos to pre_w x pre_h, followed
by n consecutive x4 passes.
bash <skill_dir>/install.sh
bash <skill_dir>/smartupscale.sh <input.mp4> -t 1080p
bash <skill_dir>/smartupscale.sh <input.mp4> -t 2160p
bash <skill_dir>/smartupscale.sh <input.mp4> -t 1920x1080 -o <out.mp4>
Targets: 480p, 540p, 720p, 1080p, 1440p, 2160p/4k, 4320p/8k, or explicit WxH.
medium / crf 15, audio copied from source through every pass. t_h / 4^n is not an integer; smartupscale.sh reports the actual size.
共 2 个版本