video-to-4k
Skill210 starsChanged 2 days agoMITView on GitHub
Upscales a single low-resolution video to 4K with Video2X (Real-ESRGAN), then encodes to unified 3840×2160 H.265 Main10 40Mbps + AAC 320kbps MP4. Source frame rate is preserved (no fps=60 duplication, no RIFE). Already-4K sources skip Video2X and go straight to FFmpeg. Use when the user wants video-to-4k, 4K upscale, UHD export, Video2X, Real-ESRGAN, H.265 Main10, or convert an SD/HD clip to 4K.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- godot-fun/gaiword for word, first seen Nov 15, 2026
Other versions1 project uses a version of this.
Word for word · 1
- godot-fun/gai★ 210100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/AGENTS.mdAGENTS.md
- ai-text-to-speechSkill
- audio-denoiseSkill
- audio-fadeSkill
- audio-loudness-normalizationSkill
- audio-sample-rate-standardizeSkill
- audio-splitSkill
- audio-to-oggSkill
- audio-to-textSkill
- audio-to-wavSkill
- audio-trimSkill
- audio-volume-adjustSkill
- file-naming-normalizationSkill
- git-commit-messageSkill
- image-inpaint-regionSkill
- image-region-remove-key-color-appSkill
- image-remove-backgroundSkill
- image-remove-white-backgroundSkill
- image-resizeSkill
- image-sprite-sheet-splitSkill
- image-to-pngSkill
- image-to-textSkill
- image-trimSkill
- storyboard-av-mixSkill
- storyboard-shot-to-htmlSkill
- storyboardSkill
- storyboard-ttsSkill
- video-4k-normalizationSkill
- video-bgmSkill
- video-compress-to-sizeSkill
- video-cutSkill
- video-merge-gpuSkill
- video-mergeSkill
- video-publishSkill
- video-remove-audioSkill
- video-to-60fpsSkill
- video-to-mp4Skill
- video-to-ogvSkill
- video-to-wavSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
When this skill applies, read and follow dependency-manager — run scripts as documented, install missing tools into .dependency/.
- Very specific: line 36
Run convert.py through .dependency/python/python.
- Very specific: line 38
Use the bundled script — do not hand-write equivalent video2x / ffmpeg commands.
- Very specific: line 65
Use video2x (no .exe) or the AppImage path on Unix.
- Distinctive: line 113
Use the bundled script only.
- Very specific: line 116
Default model is general (realesrgan-plus).
- Distinctive: line 117
Do not force fps. Keep the source frame rate.
≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Video to 4K
Convert a supported video to a unified 4K master:
| Spec | Value |
| Resolution | 3840×2160 |
| Frame rate | Source fps kept (no fps= filter, no RIFE) |
| Video | H.265 Main10 (libx265, yuv420p10le) |
| Video bitrate | 40 Mbps |
| Audio | AAC 320 kbps |
| Container | MP4 (.mp4, hvc1 tag) |
Pipeline
- Probe with ffprobe (width, height, fps, audio).
- Already 4K? (
width ≥ 3840andheight ≥ 2160) → skip Video2X. - Below 4K → Video2X Real-ESRGAN upscale (scale 2 or 4) to intermediate under
video-to-4k/upscaled/. - Always FFmpeg final encode →
video-to-4k/at the unified specs above.
Rules
When this skill applies, read and follow dependency-manager — run scripts as documented, install missing tools into .dependency/.
- Run
convert.pythrough.dependency/python/python. Never use hostpython/ffmpeg/video2x. - Never overwrite sources. Outputs go under
video-to-4k/(final) andvideo-to-4k/upscaled/(Video2X intermediate). - Use the bundled script — do not hand-write equivalent
video2x/ffmpegcommands. - One file per run — pass
--videowith a single file; repeat for each clip in a batch.
Setup (first run)
FFmpeg + Python
Populate ffmpeg and python under .dependency/ per dependency-manager.
Video2X (CLI)
Download the CLI release (not the Qt6 installer) from video2x releases and extract to .dependency/video2x/:
| Platform | Release asset |
| Windows | video2x-windows-amd64.zip → video2x.exe |
| Linux | Video2X-x86_64.AppImage (or distro package) → register as bin |
Register in .dependency/manifest.json:
"video2x": {
"populated": true,
"bin": ".dependency/video2x/video2x.exe"
}Use video2x (no .exe) or the AppImage path on Unix. Requires a Vulkan GPU and AVX2 CPU. Docs: Command Line.
Quick Start
.dependency/python/python .ai/video-to-4k/convert.py --video path/to/clip.mp4Example:
assets/video/clip.mp4
→ assets/video/video-to-4k/upscaled/clip.mkv (Video2X, only if below 4K)
→ assets/video/video-to-4k/clip.mp4 (final master)Already-4K source → only video-to-4k/clip.mp4 (FFmpeg only).
Anime / cartoon content (Real-ESRGAN anime model):
.dependency/python/python .ai/video-to-4k/convert.py --video clip.mp4 --animeDefaults
| Setting | Default | Notes |
| Upscaler | Real-ESRGAN realesrgan-plus | General / live-action |
--anime | realesr-animevideov3 | Anime / illustration |
| Scale | Auto 2 or 4 | Smallest factor that meets or exceeds 4K |
| Intermediate | High-bitrate HEVC MKV in video-to-4k/upscaled/ | Kept for re-encode; delete manually or --clean-upscaled |
| Final | Always re-encode | Even if source already matches specs |
Common Flags
--video · -o / --output · --anime · --gpu · --clean-upscaled
.dependency/python/python .ai/video-to-4k/convert.py --video clip.mp4
.dependency/python/python .ai/video-to-4k/convert.py --video clip.mp4 --gpu 0 --clean-upscaled
.dependency/python/python .ai/video-to-4k/convert.py --video clip.mp4 -o out/clip.mp4Never overwrite source files. Input must be a single video file (--video), not a directory. Supported inputs: .mp4, .mkv, .mov, .avi, .webm, .wmv, .flv, .m4v, .mpeg, .mpg, .ts, .mts, .m2ts, .3gp, .ogv.
Agent Notes
- Use the bundled script only.
- Missing Python / FFmpeg / Video2X → populate
.dependency/, setpopulated: true, retry the same command. - Tell the user where
video-to-4k/(andvideo-to-4k/upscaled/if used) outputs are; they swap assets manually. - Default model is general (
realesrgan-plus). Pass--animefor anime/cartoon. - Do not force fps. Keep the source frame rate. Need 60fps interpolation → video-to-60fps first (RIFE at source resolution).
- Pipeline / FFmpeg / Video2X details: reference.md
Tests
From repo root:
.dependency/python/python .ai/video-to-4k/test_convert.pyManual CLI examples: cli/video-to-4k.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

