36 lines
986 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
name: media-convert
description: 媒体转换,支持视频分离出音频,音频分离人声和伴奏,音视频合并等操作
---
# media-convert
媒体转换,收集多种媒体之间的转换,如视频分离出音频,音频分离人声和伴奏,音视频合并
## 视频分离
能将输入的视频文件转换为无音频的视频和无音频的视频
### 输入
输入是一个json
{
"video_file":视频文件路径
}
执行以下操作
```
scripts/videosplitor.sh
```
## 音频文件分离人声和伴奏
本功能使用了Meta (Facebook) 开源的 Demucs它是目前公认的音质保留最好的工具之一。
安装:
```Bash
pip install demucs
```
上述安装需要在有GPU的宿主机上Demucs第一次运行时需要下载模型需要有外网环境https://dl.fbaipublicfiles.com/demucs/hybrid_transformer/955717e8-8726e21a.th
输入是一个json
{
"audio_file": 音频文件路径
}
分离命令:
```Bash
scripts/audiosplitor.sh
```