Skip to content

Commit

Permalink
feat: 🔧 improve video config docs and fix fetch cmd format
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Jan 10, 2025
1 parent 60b3ca3 commit 9375d3c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion docs/src/content/docs/reference/scripts/videos.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ While most LLMs do not support videos natively, they can be integrated in script
and adding them as images to the prompt. This can be tedious and GenAIScript provides efficient helpers
to streamline this process.

## ffmpeg and ffprobe
## Configuration

The functionalities to render and analyze videos rely on [ffmpeg](https://ffmpeg.org/)
and [ffprobe](https://ffmpeg.org/ffprobe.html).

On Linux, you can try

```sh
sudo apt-get update && sudo apt-get install ffmpeg
```

Make sure these tools are installed locally and available in your PATH,
or configure the `FFMPEG_PATH` / `FFPROBE_PATH` environment variables to point to the `ffmpeg`/`ffprobe` executable.

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ ${Object.entries(headers)
`
if (body instanceof FormData) {
body.forEach((value, key) => {
cmd += `-F ${key}=${value instanceof File ? `... (${prettyBytes(value.size)}` : "" + value})\n`
cmd += `-F ${key}=${value instanceof File ? `... (${prettyBytes(value.size)})` : "" + value}\n`
})
} else
cmd += `-d 'JSON.stringify(body, null, 2).replace(/'/g, "'\\''")}'
Expand Down

0 comments on commit 9375d3c

Please sign in to comment.