Skip to content

Commit

Permalink
patch ffmpeg deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Prajjawalk committed Apr 4, 2024
1 parent bddbbd7 commit 71fce47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nextjs/app/slow-fetch/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export async function POST(req: NextRequest) {
const gifFilePath = `/tmp/output-${playbackId}.gif`;
await new Promise<void>((resolve, reject) => {
exec(
`ffmpeg -i ${mp4FilePath} -vf "fps=10,scale=320:-1:flags=lanczos" -c:v gif -loop 0 ${gifFilePath}`,
`npx ffmpeg -i ${mp4FilePath} -vf "fps=10,scale=320:-1:flags=lanczos" -c:v gif -loop 0 ${gifFilePath}`,
error => {
if (error) {
console.log(error);
Expand Down

0 comments on commit 71fce47

Please sign in to comment.