seogitan 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/audio.js +2 -2
- package/package.json +1 -1
package/dist/lib/audio.js
CHANGED
|
@@ -2,15 +2,15 @@ import { spawn, execSync } from "node:child_process";
|
|
|
2
2
|
import { watch, existsSync, mkdirSync, readdirSync } from "node:fs";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { tmpdir } from "node:os";
|
|
5
|
+
import { createRequire } from "node:module";
|
|
6
|
+
const require = createRequire(import.meta.url);
|
|
5
7
|
function getFfmpegPath() {
|
|
6
8
|
try {
|
|
7
|
-
// ffmpeg-static 패키지에서 바이너리 경로 가져오기
|
|
8
9
|
const ffmpegStatic = require("ffmpeg-static");
|
|
9
10
|
if (ffmpegStatic && existsSync(ffmpegStatic))
|
|
10
11
|
return ffmpegStatic;
|
|
11
12
|
}
|
|
12
13
|
catch { }
|
|
13
|
-
// 시스템 ffmpeg 폴백
|
|
14
14
|
return "ffmpeg";
|
|
15
15
|
}
|
|
16
16
|
export function checkFfmpegInstalled() {
|