Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@
},
"dependencies": {
"@elevenlabs/elevenlabs-js": "^2.21.0",
"@ffmpeg-installer/ffmpeg": "^1.1.0",
"@ffprobe-installer/ffprobe": "^2.1.2",
"@ffprobe-installer/linux-x64": "^5.2.0",
"ffmpeg-static": "^5.2.0",
"ffprobe-static": "^3.1.0",
"@google/genai": "^1.12.0",
"@nestjs/bullmq": "^10.2.1",
"@nestjs/common": "^10.0.0",
Expand Down
11 changes: 4 additions & 7 deletions apps/api/src/utils/ffmpeg-config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import ffmpeg from 'fluent-ffmpeg';
import ffmpegInstaller from '@ffmpeg-installer/ffmpeg';
import ffprobeInstaller from '@ffprobe-installer/ffprobe';
import ffmpegPath from 'ffmpeg-static';
import ffprobePath from 'ffprobe-static';

export const configureFFmpeg = () => {
const ffmpegPath = ffmpegInstaller.path;
const ffprobePath = ffprobeInstaller.path;

ffmpeg.setFfmpegPath(ffmpegPath);
ffmpeg.setFfprobePath(ffprobePath);
if (ffmpegPath) ffmpeg.setFfmpegPath(ffmpegPath);
if (ffprobePath.path) ffmpeg.setFfprobePath(ffprobePath.path);

return (input?: string) => ffmpeg(input);
};
Loading
Loading