Package: getnative
GetnativeFind the native resolution(s) of upscaled material (mostly anime)UsageStart by executing:$ getnative [--args] inputFileIfgetnativecould not be found, try executing this:# Linux
$ python -m getnative [--args] inputFile

# Windows
$ py -3 -m getnative [--args] inputFileorStart by executing:$ python -m getnative [--args] inputFileThat's it.RequirementsTo run this script you will need:Python 3.6matplotlibVapoursynthR45+descaleffms2orlsmashorimwri*imwri: ImageMagick7 is required for macOS and LinuxInstallationInstall it via:$ pip install getnativeorDownload all files from githubInstall all dependencies throughpip install -r requirements.txtRecommended Windows InstallationInstall these programs from their websites:Vapoursynth(includes imwri)Once Vapoursynth is installed:vsrepo.py install descale
vsrepo.py install ffms2
vsrepo.py install lsmasInstall getnative (and Python dependencies):pip install getnativeExample OutputInput Command:$ getnative -k bicubic -b 0.33 -c 0.33 -dir "../../Downloads" "../../Downloads/unknown.png"Terminal Output:Using imwri as source filter

500/500

Output Path: /Users/infi/Downloads/results

Bicubic b 0.33 c 0.33 AR: 1.78 Steps: 1
Native resolution(s) (best guess): 873p

done in 13.56sOutput Graph:Output TXT (summary):868		 | 0.0000863251		 | 0.93
 869		 | 0.0000828592		 | 1.04
 870		 | 0.0000734709		 | 1.13
 871		 | 0.0000555885		 | 1.32
 872		 | 0.0000596791		 | 0.93
 873		 | 0.0000011579		 | 51.54
 874		 | 0.0000385670		 | 0.03
 875		 | 0.0000433674		 | 0.89
 876		 | 0.0000548476		 | 0.79
 877		 | 0.0000614557		 | 0.89
 878		 | 0.0000740702		 | 0.83ArgsPropertyDescriptionDefault valueTypeframeSpecify a frame for the analysis.num_frames//3IntkernelResize kernel to be usedbicubicStringbicubic-bB parameter of bicubic resize1/3Floatbicubic-cC parameter of bicubic resize1/3Floatlanczos-tapsTaps parameter of lanczos resize3Intaspect-ratioForce aspect ratio. Only useful for anamorphic inputw/hFloatmin-heightMinimum height to consider500Intmax-heightMaximum height to consider1000Intis-imageForce image inputFalseActiongenerate-imagesSave detail mask as pngFalseActionplot-scalingScaling of the y axis. Can be "linear" or "log"logStringplot-formatFormat of the output image. Specify multiple formats separated by commas. Can be svg, png, tif(f), and moresvgStringshow-plot-guiShow an interactive plot gui window.FalseActionno-saveDo not save files to disk.FalseActionsteppingThis changes the way getnative will handle resolutions. Example steps=3 [500p, 503p, 506p ...]1Intoutput-dirSets the path of the output dir where you want all results to be saved. (/results will always be added as last folder)(CWD)/resultsStringCLI ArgsPropertyDescriptionDefault valueTypehelpAutomatically render the usage information when running-hor--helpFalseActionAbsolute or relative path to the input fileRequiredStringmodeChoose a predefined mode ["bilinear", "bicubic", "bl-bc", "all"]NoneStringuseUse specified source filter (e.g. "lsmas.LWLibavSource")NoneStringWarningThis script's success rate is far from perfect.
If possible, do multiple tests on different frames from the same source.
Bright scenes generally yield the most accurate results.
Graphs tend to have multiple notches, so the script's assumed resolution may be incorrect.
Also, due to the current implementation of the autoguess, it is not possible for the script
to automatically recognize 1080p productions.
Use your eyes or anibin if necessary.ThanksBluBb_mADe, kageru, FichteFoll, stux!, LittlePoxHelp?Joinhttps://discord.gg/UERrfucRFD(Ask in #encode-autism for help)