modelscope/FunClip
Local FunASR video editing in Gradio: cut by transcript or speaker and export subtitles
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
FunClip is a Python application that uses speech recognition as the index for video editing. funclip/launch.py starts the Gradio 4 browser UI; funclip/videoclipper.py exposes separate recognition and clipping stages. FunASR sits on a PyTorch/torchaudio stack, with MoviePy 1.0.3 and Pillow on the output side. The recognition result supplies timestamps, and where supported, speaker labels. FunClip uses those to map text or speaker selections back to source footage and generate subtitles.
There are two distinct backend boundaries. For ASR, the opt-in MOSS path delegates transcription and diarization to a separately served vLLM endpoint with an OpenAI-compatible transcription API. For highlight selection, OrcaRouter and Cheaper Inference take transcripts and prompts over OpenAI-compatible chat APIs; TwelveLabs Pegasus instead analyzes the video. Pegasus returns timed segments in the format already accepted by the AI Clip action, so selection can change without changing how the resulting cuts are rendered.
Key Capabilities & Differentiators
Chinese Paraformer is the default for precise text-led clipping; -l en selects English Paraformer. SeACo-Paraformer hotwords help with names and domain terms, and CAM++ speaker IDs let editors select one speaker's turns. FunClip can cut multiple selections and produce SRT subtitles for both the full video and the selected clips. In v2.2.1, the built-in Pillow RGBA renderer uses a bundled font to preserve the selected subtitle color through encoding without requiring ImageMagick for the standard path.
Fun-ASR-Nano is a transcription option, while SenseVoice offers multilingual ASR with emotion and audio-event tags. MOSS adds end-to-end segmentation and diarization at segment-level timing: it supports SRT export, speaker-based clipping, and LLM timestamp clipping, but does not replace Paraformer for exact phrase boundaries. MOSS labels such as spkS01 are anonymous within a recording. They do not verify identity or carry across recordings, and external VAD or speaker chunking should not be added to that path because it can break label consistency.
Trade-offs & Limitations
FunClip fits speech-led editing better than a timeline-first workflow when the editor starts with a quote, topic, or speaker rather than a timecode. The main constraint is timestamp granularity, not just transcript quality: Nano is useful for transcription, while Paraformer is the better fit for exact text cuts. Transcript-only AI selection can miss scene changes and on-screen action; Pegasus covers those inputs at the cost of sending video to an external service. Silence removal and inverse interval selection are listed as unfinished, so don't plan a workflow around them.
For offline CPU or edge transcription without video clipping, the FunASR llama.cpp/GGUF runtime avoids the Gradio and video-rendering stack. Local FunClip ASR and clipping can keep media on the host once model weights are available, but a remote MOSS service receives audio and external LLM gateways receive transcripts and prompts. MIT covers the application code; model and provider terms still need separate review.
Hardware & Deployment Guide
Use an isolated Python environment; the setup example uses Python 3.12. Install a platform-matched PyTorch/torchaudio pair, then requirements.txt, and run python -m pip check. Keep funasr>=1.4.9, Transformers 4.x, and Gradio 4 with pydantic>=2,<2.11 and starlette<1.0; the latter constraints guard against Gradio schema and template incompatibilities. python funclip/launch.py starts the UI at localhost:7860. Size ASR inference and video rendering separately using representative media and expected concurrency; there is no fixed VRAM figure. Source archives omit model weights, which are fetched separately on startup.
v2.1.1 tightened fresh-install compatibility, v2.2.0 added the optional MOSS vLLM path, and v2.2.1 changed subtitle rendering and published source snapshots with SHA-256 checksums. For MOSS, start the service separately; the default endpoint is http://127.0.0.1:8898/v1, and optional bearer credentials come from MOSS_API_KEY. If scripting stage-2 video output, use commit 7c63759 or later rather than the v2.2.1 archive: with explicit --output_file, success means both MP4 and SRT were written, existing outputs are not overwritten, and an unmatched selection exits nonzero without writing either file.
videoclipper.py separates recognition from clipping; the documented stage-2 file and exit guarantees require commit 7c63759 or later.Editors and small teams turning interviews, talks, or courses into subtitled clips, with Chinese or English phrase selection and an optional AI pass for highlight suggestions.
You only need edge transcription, rely on silence removal or inverse interval selection, or need frame-level visual editing as your primary workflow.
Quick Start & Installation
git clone https://github.com/modelscope/FunClip.git cd FunClip python3.12 -m venv .venv . .venv/bin/activate python -m pip install -r requirements.txt python -m pip check python funclip/launch.py --help
Comparison vs. Top Voice, Vision & Video Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| FunClip ★ | 6.7k | +27 | Python | MIT | Local FunASR video editing in Gradio: cut by transcript or speaker and export su |
| voice-pro | 13.5k | +34 | Python | GPL-3.0 | Self-hosted Gradio studio for transcription, translation, and dubbing |
| stable-diffusion-webui | 165.4k | +65 | Python | AGPL-3.0 | Gradio WebUI for local Stable Diffusion generation, editing, and parameter sweep |
| ComfyUI | 149.9k | +945 | Python | GPL-3.0 | A node-graph engine for building and running multimodal AI workflows locally |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/modelscope/FunClip.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about FunClip
Should I integrate Paraformer or MOSS for speaker-led editing?
Do I need a GPU, and how should I size a shared installation?
Can I use FunClip commercially and keep client media on premises?
When is FunClip a better fit than the FunASR GGUF runtime?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy