Skip to main content

Cxalio CLI toolkit — practical tools for media post-production workflows and easy system administration.

Project description

Cxalio Studio Tools

语言 / Languages: 中文 | English

包含 5 个命令行工具和一个通用的 CLI 应用框架。

工具

Media Killer

Media Killer 通过解析 TOML 预设文件,为媒体文件创建批量转码任务,并调用 ffmpeg 执行。

通过 -g|--generate 参数可以生成预设文件模板:

mediakiller -g "新的预设.toml"

使用时,在命令之后指定多个预设文件和需要转码的文件(或文件夹):

mediakiller "预设1.toml" "预设2.toml" "媒体文件1.mp4" "媒体文件2.mov" "媒体文件夹/" ...

mediakiller 会自动识别预设文件并对源文件路径进行展开和递归搜索。

详细信息参见 Media Killer 帮助文档

Media Scout

Media Scout 分析常见的影视后期工程文件,从中提取原始素材路径。输出到 stdout,方便重定向。

目前支持解析的格式:

  • 经典 XML 项目文件(Final Cut Pro 7 XML).xml
  • FCPXML 项目文件(Final Cut Pro X / 11 XML).fcpxml / .fcpxmld
  • 剪辑决定表(EDL).edl
  • DaVinci Resolve 元数据表格 .csv
  • 纯文本文件列表 .txt
mediascout "project.fcpxml" > sources.txt

输入 mediascout -h 查看详细选项。详细信息参见 Media Scout 帮助文档

Media Killer 依赖于 Media Scout 中的工程文件探测功能。

FFpretty

FFpretty 是一个简单的 ffmpeg 包装。它直接透传所有参数给 ffmpeg,并提供 Rich 进度条显示。

ffpretty -i input.mp4 -c:v libx264 output.mp4

FFpretty 屏蔽了所有来自 ffmpeg 的输出;出错时需手动检查 ffmpeg 的错误信息。

Jpegger

Jpegger 是一个批量图片处理工具。支持色彩空间转换、按比例缩放、多格式输出(JPEG / PNG / WebP 等)。

jpegger input_dir/ output_dir/ --format webp --scale 50%

HostsKeeper

HostsKeeper 是一个 hosts 文件管理工具。它从多个来源获取 hosts 内容(本地文件、远程 URL),合并去重后写入系统 hosts 文件。支持按规则筛选内容与自动更新,并自动刷新 DNS 缓存(Windows / macOS)。

HostsKeeper 需要管理员权限才能修改 hosts 文件。

详细信息参见 HostsKeeper 帮助文档

应用框架

所有工具均构建在 cx_tools.app 应用框架之上,该框架提供统一的 CLI 应用生命周期管理:

  • IApplication — 应用生命周期接口(startrunstop
  • IAppEnvironment — 运行环境抽象,提供 Rich console、SIGINT 处理、say() / whisper() 分级输出、管理员权限检测
  • SafeError — 统一异常处理,Rich 样式展示可恢复的应用错误
  • AppContext — 统一参数解析模式(from_arguments() 工厂方法)

安装

pip install cxalio-studio-tools
# 建议使用 pipx 独立安装
pipx install cxalio-studio-tools

要求 Python >= 3.12, < 3.15。

链接

返回项目首页:cx-studio-tk

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cxalio_studio_tools-0.9.0.tar.gz (171.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cxalio_studio_tools-0.9.0-py3-none-any.whl (194.2 kB view details)

Uploaded Python 3

File details

Details for the file cxalio_studio_tools-0.9.0.tar.gz.

File metadata

  • Download URL: cxalio_studio_tools-0.9.0.tar.gz
  • Upload date:
  • Size: 171.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cxalio_studio_tools-0.9.0.tar.gz
Algorithm Hash digest
SHA256 9b87afda64aa0a589700ab52ced0681a7f6b5d51a390294b18671db649b3c0c4
MD5 867f8e8acb01f649472408298d8044dc
BLAKE2b-256 580fa7b6ad854727e8b2039c35b1f742ff570ea4895730fdafbc3ee07256c6f6

See more details on using hashes here.

File details

Details for the file cxalio_studio_tools-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: cxalio_studio_tools-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 194.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cxalio_studio_tools-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ca5887a7bd25e3ea305a58ae8b0e720129b5390f91acb1067ae17c9411975ecc
MD5 fb742434a7b8ee40c6b82efe7c87a81f
BLAKE2b-256 4c22cf5caa26bfe51f6a9428069f77c26e43e797989cd6afe83ab51579636bcf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page