@@ -16,33 +16,38 @@ This case study demonstrates how to use the **GitHub Copilot SDK Pipe** with **M
1616
1717- ** Plugin Type** : Pipe (GitHub Copilot SDK)
1818- ** Base Model** : Minimax 2.1
19- - ** Key Capabilities** :
20- - ** System Tool Access** : Automatically detects and invokes ` ffmpeg ` within the container.
21- - ** Two-Pass Optimization** :
19+ - ** Key Capabilities** :
20+ - ** System Tool Access** : Automatically detects and invokes ` ffmpeg ` within the container.
21+ - ** Two-Pass Optimization** :
2222 1. ** Pass 1** : Analyzes all frames to generate a custom 256-color palette (` palettegen ` ).
2323 2. ** Pass 2** : Applies the palette for superior quantization and dithering (` paletteuse ` ).
24- - ** Precision Parameters** : Implements 1.4x PTS scaling, Lanczos scaling, and 20fps rate control.
24+ - ** Precision Parameters** : Implements 1.4x PTS scaling, Lanczos scaling, and 20fps rate control.
2525
2626---
2727
2828## 💬 Conversation Highlights
2929
3030### 📥 Import Conversation
31+
3132You can download the raw chat data and import it into your Open WebUI to see how the model debugs and optimizes the FFmpeg parameters:
3233[ :material-download: Download Chat JSON] ( ./video-processing-chat.json )
3334
3435> ** How to Import?**
3536> In Open WebUI, click your ** User Avatar** (bottom of left sidebar) -> ** Settings** -> ** Data** -> ** Import Chats** , then select the downloaded file.
3637
3738### 1. Processing Requirements
39+
3840The ** User** provided an input file and specific parameters:
41+
3942- Speed: 1.4x (setpts=PTS/1.4)
4043- Resolution: 1280px width, auto height
4144- Optimization: Must use palette generation technology
4245- Constraint: File size < 20MB
4346
4447### 2. Analysis Execution
48+
4549** Minimax 2.1** generated and executed the following core logic:
50+
4651``` bash
4752# Pass 1: Generate optimal palette
4853ffmpeg -i input.mov -vf " fps=20,scale=1280:-1:flags=lanczos,setpts=PTS/1.4,palettegen" palette.png
@@ -51,6 +56,7 @@ ffmpeg -i input.mov -i palette.png -lavfi "[0:v]fps=20,scale=1280:-1:flags=lancz
5156```
5257
5358### 3. Result Summary
59+
5460| Metric | Original Video | Processed GIF | Status |
5561| :--- | :--- | :--- | :--- |
5662| ** File Size** | 38 MB | ** 14 MB** | ✅ Success |
@@ -63,11 +69,12 @@ ffmpeg -i input.mov -i palette.png -lavfi "[0:v]fps=20,scale=1280:-1:flags=lancz
6369## 💡 Why This Case Matters
6470
6571Standard LLMs can only "tell you" how to use FFmpeg. However, a Pipe powered by the ** GitHub Copilot SDK** can:
72+
66731 . ** Interpret** complex multimedia processing parameters.
67742 . ** Access** raw files within the filesystem.
68753 . ** Execute** resource-intensive binary tool tasks.
69764 . ** Validate** that the output (size, resolution) meets the user's hard constraints.
7077
7178---
7279
73- > [ View GitHub Copilot SDK Pipe Source Code ] ( ../../../plugins/pipes/ github-copilot-sdk/README .md )
80+ > [ View GitHub Copilot SDK Pipe Documentation ] ( ./ github-copilot-sdk.md )
0 commit comments