add ffmpeg instruct
Browse files
README.md
CHANGED
|
@@ -997,6 +997,30 @@ pip install "transformers==4.51.0" accelerate "torch>=2.3.0,<=2.8.0" "torchaudio
|
|
| 997 |
pip install "transformers==4.51.0" accelerate "torch>=2.3.0,<=2.8.0" "torchaudio<=2.8.0" "minicpmo-utils[all]>=1.0.2"
|
| 998 |
```
|
| 999 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1000 |
|
| 1001 |
### Model Initialization <!-- omit in toc -->
|
| 1002 |
|
|
|
|
| 997 |
pip install "transformers==4.51.0" accelerate "torch>=2.3.0,<=2.8.0" "torchaudio<=2.8.0" "minicpmo-utils[all]>=1.0.2"
|
| 998 |
```
|
| 999 |
|
| 1000 |
+
<details>
|
| 1001 |
+
<summary>Click to show FFmpeg installation instructions (optional).</summary>
|
| 1002 |
+
|
| 1003 |
+
**Note:** FFmpeg is required for video frame extraction (`get_video_frame_audio_segments` with `use_ffmpeg=True`) and video generation (`generate_duplex_video`). For more information, visit the [official FFmpeg website](https://www.ffmpeg.org/).
|
| 1004 |
+
|
| 1005 |
+
**macOS (Homebrew):**
|
| 1006 |
+
|
| 1007 |
+
```bash
|
| 1008 |
+
brew install ffmpeg
|
| 1009 |
+
```
|
| 1010 |
+
|
| 1011 |
+
**Ubuntu/Debian:**
|
| 1012 |
+
|
| 1013 |
+
```bash
|
| 1014 |
+
sudo apt update && sudo apt install ffmpeg
|
| 1015 |
+
```
|
| 1016 |
+
|
| 1017 |
+
**Verify installation:**
|
| 1018 |
+
|
| 1019 |
+
```bash
|
| 1020 |
+
ffmpeg -version
|
| 1021 |
+
```
|
| 1022 |
+
</details>
|
| 1023 |
+
|
| 1024 |
|
| 1025 |
### Model Initialization <!-- omit in toc -->
|
| 1026 |
|