返回 Skill 列表
extension
分类: 内容与媒体无需 API Key

音乐转场skill

短视频/影视剪辑中,需要音乐转场

person作者: yzzenghubModelScope

SceneBrake

影视级搞笑/尴尬音乐转场音效生成器。基于 ffmpeg + Python,对任何歌曲/音频施加特定效果,使其在几秒内"尴尬收场"。

Effects

| # | 名称 | 效果 | 时长 | 听感 | |---|------|------|------|------| | 1 | battery ⚡ | 速度 1.0x→0.12x + 音量归零 | 2s 转场 | 像电量耗尽,越来越慢越来越沉 | | 2 | cut ✂️ | 瞬间静音 | 即时 | 像电源被拔掉,干净利落 | | 3 | skip 🔂 | 重复 0.15s 片段 ×4 → 停止 | 0.6s 卡顿 | 像唱片跳针卡住 | | 4 | snap 🎵 | 音调 0→+12 半音 + 音量归零 | 1.5s 转场 | 像拧发条越拧越紧,啪地断掉 | | 5 | echo 🌌 | 混响由小变大 + 音量归零 | 2s 转场 | 像掉进深渊,回声越来越远 |

Requirements

  • ffmpeg (with asetrate + aresample support)
  • Python 3
# verify ffmpeg
ffmpeg -version

Usage

python scripts/scene_brake.py <input_audio> <effect> [options]

Arguments

| Argument | Description | |----------|-------------| | input_audio | Path to input audio/video file | | effect | One of: battery, cut, skip, snap, echo | | --start <sec> | Normal playback duration before effect (default: 4) | | --out <path> | Output file path (default: auto) |

Examples

# 电量不足效果(默认4秒后开始减速)
python scripts/scene_brake.py tian_mi_mi.mp4 battery

# 突然拔电(3秒位置切断)
python scripts/scene_brake.py music.mp3 cut --start 3

# 升高变尖,输出到指定文件
python scripts/scene_brake.py song.wav snap --start 5 --out effect.mp3

Technical Notes

  • Uses asetrate + aresample for sample-accurate speed/pitch change
  • Transition segmented into 40-60 micro-segments for smooth interpolation
  • Speed curve: 1.0 - 0.88 × p³ (stays fast longer, then drops sharply)
  • All temp files cleaned up after processing