stouputils.applications package#
Application-specific utilities and tools.
This module provides higher-level utilities for specific application needs:
Automatic Documentation:
Automatic documentation generation with Sphinx (
sphinx_docs()) or Zensical (zensical_docs()).Support for multi-version documentation
GitHub Pages integration
Markdown to RST conversion
Upscaler:
Utilities to upscale images and videos using external tools (defaults to
waifu2x-ncnn-vulkanandffmpeg).Image utilities:
upscale(),upscale_images(),upscale_folder(),convert_frame(), and helpers to manage temporary folders and resume partial work.Video utilities: extract frames with
ffmpeg, upscale frames, recombine frames into a final video (preserves audio), compute recommended bitrates using YouTube recommendations, and avideo_upscaler_cli()convenience entry point for batch processing.Configuration and installer helpers:
Config, release lists likeWAIFU2X_NCNN_VULKAN_RELEASESandFFMPEG_RELEASES, andYOUTUBE_BITRATE_RECOMMENDATIONSmapping for bitrate selection.
Example usage:
# Upscale images
from upscaler import upscale, upscale_folder
# Upscale videos (CLI helper)
import upscaler as upscaler
upscaler.video_upscaler_cli("input", "progress", "output")
Subpackages#
- stouputils.applications.automatic_docs package
- stouputils.applications.upscaler package