-
Notifications
You must be signed in to change notification settings - Fork 0
usage
This tutorial walks you through using bananascaler in both CLI mode (for direct execution and scripting) and TUI mode (for interactive folder browsing and configuration).
TUI Mode allows you to browse your filesystem, configure upscale parameters interactively, and launch processes without typing complex terminal commands.
Open a terminal in the folder containing your videos and run:
bananascaler tuiThe file selection screen will load, displaying files and folders in your current working directory.
-
Move Cursor: Use
↑/↓orj/kto move the highlighted cursor bar up and down. -
Enter Folder / Select File: Press
Enteror→on a folder (rendered in blue with a📁icon) to open it. PressEnteron a video file (rendered in green with a🎥icon) to choose it and start the upscaling process. -
Go Back: Press
Backspace,h, or←to navigate to the parent directory. -
Quit: Press
qorEscto close the application.
Before hitting Enter on a video file, you can customize the processing settings using keyboard shortcuts:
-
s(Scale): Cycle the scaling factor (2×➔3×➔4×➔2×). -
g(GPU): Cycle between detected GPUs or CPU mode (GPU 0➔GPU 1➔CPU➔GPU 0). -
m(Model): Cycle the Real-ESRGAN model (realesr-animevideov3-x2➔realesrgan-x4plus➔realesrgan-x4plus-anime).
Once you select a video file, the TUI switches to the Pipeline Dashboard:
- Monitor progress of each of the 3 stages in real-time.
- Press
vto toggle verbose mode (shows raw stdout/stderr fromffmpegandrealesrgan-ncnn-vulkaninside the TUI logs). - Press
qorEscat any time to cancel. The process terminates immediately and automatically sweeps all intermediate temporary frames, preventing disk waste.
To bypass the interactive file manager and start upscaling a specific video file directly, run:
bananascaler <input_file> [flags]By default, this will launch the TUI dashboard for that single video file.
| Flag | Short | Default | Description |
|---|---|---|---|
--output |
-o |
<input>_upscaled.mp4 |
Custom output file path |
--scale |
-s |
2 |
Upscale factor: 2, 3, or 4
|
--gpu |
-g |
0 |
GPU device index (-1 for CPU) |
--model |
-m |
realesr-animevideov3-x2 |
Real-ESRGAN model name |
--verbose |
-v |
false |
Stream raw tool outputs to the terminal |
--no-tui |
false |
Disable the interactive dashboard (uses standard text logger) |
bananascaler vacation.mp4Result: Upscales vacation.mp4 to vacation_upscaled.mp4 at 2× scale factor on GPU 0.
bananascaler intro.mkv --output highres_intro.mkv --scale 4 --gpu 1 --model realesrgan-x4plusResult: Upscales intro.mkv to highres_intro.mkv at 4× scale using the realesrgan-x4plus model on GPU 1.
If you are running bananascaler in automated shell scripts, cron jobs, or on remote servers (via SSH), you should disable the interactive UI to prevent terminal redraw conflicts.
Pass the --no-tui flag to output plain sequential log lines suitable for log files:
bananascaler clip.mp4 --no-tui --scale 3 > upscale.log 2>&1For long-running tasks, run the command in the background:
nohup bananascaler long_movie.mp4 --no-tui --scale 2 --verbose > run.log 2>&1 &You can monitor progress by tailing the log file:
tail -f run.log