Skip to content

Commit

Permalink
fix: add ffmpeg installer for fluentmpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyie committed Jul 4, 2023
1 parent 4f43c2a commit 8678b84
Show file tree
Hide file tree
Showing 3 changed files with 186 additions and 0 deletions.
182 changes: 182 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/ffmpeg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"test:types": "tsc --noEmit"
},
"dependencies": {
"@ffmpeg-installer/ffmpeg": "^1.1.0",
"@types/fluent-ffmpeg": "^2.1.20",
"fluent-ffmpeg": "^2.1.2",
"fs-extra": "^11.1.0"
Expand Down
3 changes: 3 additions & 0 deletions packages/ffmpeg/src/ffmpeg.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import type { Plugin, Processor, RootTree } from '@assetpack/core';
import { checkExt, merge, path, SavableAssetCache } from '@assetpack/core';
import fluentFfmpeg from 'fluent-ffmpeg';
import ffmpegPath from '@ffmpeg-installer/ffmpeg';
import fs from 'fs-extra';

fluentFfmpeg.setFfmpegPath(ffmpegPath.path);

type DeepRequired<T> = {
[K in keyof T]: Required<DeepRequired<T[K]>>
};
Expand Down

0 comments on commit 8678b84

Please sign in to comment.