lispking/video-skills / manim-video-teacher
manim-video-teacher
Verified专注于使用 Manim 生成动画教学视频的完整流程与专业建议。适用于用户用中文提示语让 Codex 生成脚本、分镜、Manim 代码、渲染命令或优化教学视频质量与节奏,并输出 MP4。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 5.1 KB |
| scripts/concat_audio.py | script | 1.3 KB |
| scripts/make_cover.py | script | 1.5 KB |
| scripts/mux_av.py | script | 1019 B |
| scripts/pipeline.py | script | 3.8 KB |
| scripts/tts_generate.py | script | 2.4 KB |
scripts/concat_audio.py
View on GitHub#!/usr/bin/env python3
import argparse
import os
import subprocess
import tempfile
def parse_args() -> argparse.Namespace:
parser = argparse.ArgumentParser(
description="Concatenate audio files with ffmpeg concat demuxer",
)
parser.add_argument("--inputs", nargs="*", help="List of audio files")
parser.add_argument("--list-file", help="Path to a concat list file")
parser.add_argument("--output", default="voice.mp3")
return parser.parse_args()
def build_list_file(paths: list[str]) -> str:
tmp = tempfile.NamedTemporaryFile("w", delete=False, encoding="utf-8")
for p in paths:
tmp.write(f"file '{os.path.abspath(p)}'\n")
tmp.close()
return tmp.name
def main() -> None:
args = parse_args()
list_file = args.list_file
temp_created = False
if not list_file:
if not args.inputs:
raise SystemExit("Provide --list-file or --inputs")
list_file = build_list_file(args.inputs)
temp_created = True
cmd = [
"ffmpeg",
"-f",
"concat",
"-safe",
"0",
"-i",
list_file,
"-c",
"copy",
args.output,
]
subprocess.run(cmd, check=True)
if temp_created:
os.unlink(list_file)
if __name__ == "__main__":
main()
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |