Add post
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
"private": "true",
|
"private": "true",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"debug": "DEBUG=* npx @11ty/eleventy",
|
"debug": "DEBUG=* npx @11ty/eleventy",
|
||||||
"dev": "npx concurrently \"npx gulp\" \"npx @11ty/eleventy --serve\"",
|
"dev": "npx concurrently \"npx gulp\" \"npx @11ty/eleventy --serve --port 8082\"",
|
||||||
"build": "npx gulp processAdoc && npx @11ty/eleventy"
|
"build": "npx gulp processAdoc && npx @11ty/eleventy"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
|
|||||||
40
posts/2023-11-07-ffmpegai.md
Normal file
40
posts/2023-11-07-ffmpegai.md
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
---
|
||||||
|
title: ffmpeg.ai
|
||||||
|
location: Pattaya, Thailand
|
||||||
|
excerpt: An OpenAI assistant to help with ffmpeg
|
||||||
|
ogType: article
|
||||||
|
cover: /public/img/posts/2023-11-07-ffmpegai/cover.png
|
||||||
|
---
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
I wanted to get the first frame of a GIF.
|
||||||
|
How would I do that with ffmpeg?
|
||||||
|
|
||||||
|
With recent OpenAI announce, we can now use Assistant API.
|
||||||
|
Let's create an assistant then!
|
||||||
|
|
||||||
|
Add this function:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"name": "ffmpeg",
|
||||||
|
"description": "Run ffmpeg with a few options",
|
||||||
|
"parameters": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"args": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The args to pass to ffmpeg"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": ["args"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Cool, now we can press the little Test button in the corner and play with our assistant!
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
Isn't that sweet?
|
||||||
BIN
public/img/posts/2023-11-07-ffmpegai/cover.png
Normal file
BIN
public/img/posts/2023-11-07-ffmpegai/cover.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 85 KiB |
BIN
public/img/posts/2023-11-07-ffmpegai/example.png
Normal file
BIN
public/img/posts/2023-11-07-ffmpegai/example.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 48 KiB |
@@ -147,6 +147,10 @@ figure {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
figure img {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
figcaption {
|
figcaption {
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
Reference in New Issue
Block a user