You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Anime Scripter is a powerful tool for enhancing and manipulating videos with a wide range of options. It supports functionalities such as interpolation, upscaling, deduplication, denoising, sharpening, scene change detection, depth map generation, and more. Users can customize the processing pipeline to meet their specific requirements using a comprehensive set of parameters.
2. Command-Line Arguments
Argument
Type
Default
Description
--version
flag
-
Outputs the script version
--benchmark
flag
-
Enable benchmarking (no video output, performance testing only)
--offline
str
"none"
Download models based on user selection
--ae
flag
False
Indicates if the script is run from the After Effects interface
--preview
flag
False
Open localhost and request a preview frame from TAS
--realtime
flag
False
Open FFPLAY and watch the encoded video in real time
Offline Mode Options
"none": Default state, does not download anything
"all": Downloads all available models
Single Option (e.g., "rife4.20"): Downloads the specified model
Multiple Options (e.g., "rife4.20 rife4.18 shufflecugan-tensorrt"): Downloads the specified models
3. Input and Output
Argument
Type
Default
Description
--input
str
-
Absolute path of the input video(s). Multiple paths should be separated by semicolons (;).
--output
str
-
Output string or absolute path for the processed video
NOTE:--input supports (".mp4", ".mkv", ".mov", ".avi", ".webm") containers as well as .txt, inputs in .txt should be separated by a new line.
In order to download and process anime episodes, make sure to use the keyword "anime".
Examples
Multiple Input Files
--input "G:\TheAnimeScripter\input.mp4;G:\TheAnimeScripter\test.mp4"# Or if the input is a txt, this is how the process should look like
--input "G:\TheAnimeScripter\test.txt"# Contents of TXT:"G:\TheAnimeScripter\test1.mp4"# separate by a new line here"G:\TheAnimeScripter\test2.mp4"
Processing Options
Upscaling
Argument
Type
Default
Description
--upscale
flag
-
Enable upscaling
--upscale_factor
int
2
Factor for upscaling
--upscale_method
str
"ShuffleCugan"
Upscaling method
--custom_model
str
""
Path to a custom model file (.pth or .onnx)
--upscale_skip
flag
-
Skip processing duplicates for faster perceived upscaling
Upscale Methods
"shufflecugan" / "shufflecugan-tensorrt"
"compact" / "ultracompact" / "superultracompact" (with -directml or -tensorrt variants)
Note: The output pixel format (-pix_fmt) can dynamically switch between yuv420p, yuv420p10le, and yuv444p10le based on --bit_depth and --encode_method.
Performance Settings
Argument
Type
Default
Description
Choices
--half
string
True
Enable FP16 for improved performance
True, False
--buffer_limit
int
50
Set the limit for decoding and encoding buffers
--static
flag
True
Force static engine generation and bypass the arbitrary set limitations of TAS
--decode_threads
int
4
The amount of threads utilized for decoding
Note: Interpolation TRT, Depth TRT, Segment TRT all already are set to static engine generation due to set limitations within the models themselves.
Usage Examples
Note: Replace .\input\test.mp4 with a full or relative path to a video file or folder. The --output argument is optional, as the script can automatically generate a file name based on the input.
When using the packaged main.exe file, replace python .\main.py with main.exe in the following examples.