Skip to content
Projects

avisii1680769-cell/livestream-clip-editor

View on GitHub

About

🎬 电商直播切片短视频全自动剪辑引擎 & AI Agent Skill · Jump-cut 精华跳剪 + 双逼单收尾 + 1.25x 提速 + 工业级防同质化去重 + 比特流SEI脱敏

Design & Media

How these counts are measured

Measured star growth

in 24h
0
in 7 days
0
in 15 days
+1
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README_EN.md

Original

🎬 livestream-clip-editor

Local Livestream Video Clipping Engine & AI Agent Skill for E-Commerce

Sentence Stitching · 1.25x Pitch-Preserved Speedup · Manual EDL Selection · Optional Picture/Audio Adjustments · Local Quality Checks

License: MIT Python FFmpeg Claude Code

中文文档 · Report Bug / Request Feature

Livestream Clip Editor Demo
Local media workflow · Sentence stitching · 1.25x pitch-preserved speedup · Manual EDL selection · Technical output checks


💡 Overview

livestream-clip-editor is an open-source local workflow for assembling selected sections of livestream recordings into short clips. It combines media inspection, Chinese speech transcription, a manually edited EDL, FFmpeg rendering, and technical output checks.

The scripts reduce repetitive command-line work while leaving clip selection and final review with the operator. Optional picture/audio adjustments alter the source presentation and should be reviewed on the exported file. Metadata cleanup applies to selected fields only; it does not guarantee anonymity or platform acceptance.


🌟 Key Capabilities

  1. EDL Jump-Cut Stitching: Use faster-whisper timestamps as a guide to arrange manually selected intervals; unselected sections are omitted during concatenation.
  2. 1.25x Speedup with Original Pitch: Tightens delivery pace while preserving natural human vocal timbre.
  3. Manual EDL Assembly: Arrange selected sections in playback order; the operator decides which segments form the opening and ending.
  4. Optional Picture/Audio Adjustments (--dedup, --jitter): Micro-crop/scale, EQ, sharpening, and temporal noise are optional and change the rendered appearance.
  5. Selected Metadata Cleanup: Clears several encoder/handler tags, removes SEI units, and sets the MP4 brand. This does not guarantee anonymity or platform acceptance.
  6. Technical Output Checks (verify_output.py): Checks duration, codec, pixel format, audio presence/peak, black-frame detections, stream encoder tags, and selected byte strings in the first 300 KB.

🚀 Quickstart

1. Requirements

  • ffmpeg and ffprobe in PATH
  • Install dependencies:
    pip install -r requirements.txt
    

2. Start the local WebUI (Windows)

Double-click start_webui.bat. On first run it creates .venv and installs dependencies, then opens http://127.0.0.1:7860 in your browser.

Manual start:

python -m venv .venv
.venv/Scripts/python -m pip install -r requirements.txt
.venv/Scripts/python app.py

The interface binds to localhost and does not enable Gradio public sharing. For large files, enter a local path; the browser file picker transfers the selected file to the local Gradio process and uses a temporary cache. The first transcription downloads the selected Whisper model. Install FFmpeg and add ffmpeg/ffprobe to PATH before use.

3. Five-Step CLI Pipeline

# 1. Probe media
python scripts/probe_media.py input.mp4

# 2. Transcribe speech
python scripts/transcribe.py input.mp4 trans --model small --outdir .

# 3. Create your EDL decision list (edl.json)
# 4. Render with optional picture/audio adjustments and selected metadata cleanup
python scripts/render_edit.py --src input.mp4 --edl edl.json --out output.mp4 --speed 1.25 --crf 19 --dedup --jitter

# 5. Verify technical output properties
python scripts/verify_output.py output.mp4 --target-min 55 --target-max 75 --sheet verify_sheet.jpg

💬 Contact & Custom Tool Development

For inquiries, technical exchange on video deduplication algorithms, or custom AI Agent / RPA tool development:

WeChat Contact: Gabor Lu

WeChat: Gabor Lu (Dongguan, Guangdong, China)
Note: Technical Exchange / Custom Development


📄 License

MIT License. Free and open source for everyone!

Explore related projects

Loading…