diff --git a/docs/src/content/docs/reference/scripts/videos.mdx b/docs/src/content/docs/reference/scripts/videos.mdx index 398c1f4a0..80c3fe9a3 100644 --- a/docs/src/content/docs/reference/scripts/videos.mdx +++ b/docs/src/content/docs/reference/scripts/videos.mdx @@ -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. diff --git a/packages/core/src/fetch.ts b/packages/core/src/fetch.ts index 6ec24160d..76c7da613 100644 --- a/packages/core/src/fetch.ts +++ b/packages/core/src/fetch.ts @@ -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, "'\\''")}'