plebtasteP
Convex Community3y ago
10 replies
plebtaste

ffmpeg support?

Hi, I'm trying to use ffmpeg on an action, I see that it is not installed on the OS image, so I need to install it via npm, but looks like I can't deploy the action, I keep seeing 500 errors, but I think this is due to the ffmpeg installer npm package.

Any ideas of how can I use ffmpeg on an action, or is that use case not supported?
(I see the functions have a 512mb limit, 10 minute execution but it should be enough for my use case)

This is a minimum reproducible example:

"use node";

import { action } from "./_generated/server";
import { v } from "convex/values";

import { path as ffmpegPath } from '@ffmpeg-installer/ffmpeg'

export const transcribe = action({
args: { id: v.string(), from: v.number() },
handler: async (ctx, args) => {
console.log(ffmpegPath);
},
});

The errors I'm seeing:
Screenshot_2023-08-31_at_16.48.27.png
Was this page helpful?