Skip to content

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 18 Sep 06:46
· 4 commits to master since this release
ae19a29

video2script v0.3.0 — 一个命令,两种用法 + 应用图标 / one command, two modes + app icon

这次的重点 / Highlights

  • 入口合并:不再需要记两个命令。
    Unified entry point — one command for both interfaces:

    命令 / Command 行为 / What happens
    video2script 不带参数 → 启动本地网页界面 / starts the local web GUI
    video2script 会议.mp4 … 命令行转写 / CLI transcription
    video2script --gui 会议.mp4 打开界面并预载该文件 / GUI with the file pre-loaded
    video2script --cli … 强制命令行(脚本里用)/ force CLI in scripts
    video2script --version 打印版本 / print version
  • 应用图标:纯代码生成(Pillow,scripts/make_icon.py)—— 渐变圆角块 + 声波 + 文稿行 + 播放角标;
    16/24/32px 用简化构图单独绘制,小尺寸不糊。图标同时用于窗口图标与网页界面 favicon。
    App icon, generated from code: gradient rounded square, waveform, text lines, play badge, with
    per-size simplified variants for small sizes; used as the window icon and the GUI favicon.

  • 一个可执行文件顶两个:Release 里每个平台只有一个二进制(video2script-windows.exe /
    video2script-macos / video2script-linux),双击 = 界面,拖文件到它上面 = 命令行。
    One binary per platform instead of two.

  • video2script-gui 作为 video2script --gui 的别名保留,老脚本不用改。
    video2script-gui is kept as an alias — existing scripts keep working.

修掉的问题 / Fixed

  • 冻结后的可执行文件里 favicon 返回 0 字节:PyInstaller 下模块在 PYZ 里,__file__ 不再指向真实路径,
    改为优先用 sys._MEIPASS 定位打包资源;并加了一条“图标必须存在且非空”的测试。
    Favicon/icon requests returned 0 bytes from frozen builds — asset lookup now goes through
    sys._MEIPASS, with a regression test asserting the icons are present and non-empty.

下载哪个 / Which file

文件 / Asset 平台 说明
video2script-windows.exe Windows 双击 = 网页界面;把视频拖到它上面 = 命令行
video2script-macos macOS 未签名,首次运行右键 → 打开
video2script-linux Linux 先 chmod +x
video2script-0.3.0-py3-none-any.whl 任意 pip install(CLI + GUI 都在)
video2script-0.3.0.tar.gz 任意 源码包

模型权重不打进可执行文件:首次运行会下载到 ~/.cache/video2script/models
(small ≈ 0.5 GB、medium ≈ 1.5 GB;说话人模型 ≈ 35 MB,仅 --diarize 时)。
huggingface.co 不可达时自动改用 hf-mirror.com。

许可证 / License

限制商用。 PolyForm Noncommercial License 1.0.0:
个人 / 学习 / 研究 / 非营利 / 学校 / 公共机构可用;商业使用需单独授权
(提 issue 或联系 @Weidows)。第三方组件(Whisper 权重、faster-whisper、
PyAV、onnxruntime、sherpa-onnx)各自保留原许可证。

README ·
中文说明 ·
CHANGELOG