diff --git a/apps/web/lib/audio-extract.ts b/apps/web/lib/audio-extract.ts index 1f68c2e5f1c..c3034e7130d 100644 --- a/apps/web/lib/audio-extract.ts +++ b/apps/web/lib/audio-extract.ts @@ -74,7 +74,9 @@ export async function extractAudioFromUrl( ]; return new Promise((resolve, reject) => { - const proc = spawn(ffmpeg, ffmpegArgs, { stdio: ["pipe", "pipe", "pipe"] }); + const proc = spawn(/*turbopackIgnore: true*/ ffmpeg, ffmpegArgs, { + stdio: ["pipe", "pipe", "pipe"], + }); let stderr = ""; @@ -124,7 +126,9 @@ export async function extractAudioToBuffer(videoUrl: string): Promise { ]; return new Promise((resolve, reject) => { - const proc = spawn(ffmpeg, ffmpegArgs, { stdio: ["pipe", "pipe", "pipe"] }); + const proc = spawn(/*turbopackIgnore: true*/ ffmpeg, ffmpegArgs, { + stdio: ["pipe", "pipe", "pipe"], + }); const chunks: Buffer[] = []; let stderr = ""; @@ -168,7 +172,9 @@ export async function convertWavToMp3(wavBuffer: Buffer): Promise { ]; return new Promise((resolve, reject) => { - const proc = spawn(ffmpeg, ffmpegArgs, { stdio: ["pipe", "pipe", "pipe"] }); + const proc = spawn(/*turbopackIgnore: true*/ ffmpeg, ffmpegArgs, { + stdio: ["pipe", "pipe", "pipe"], + }); const chunks: Buffer[] = []; let stderr = ""; @@ -216,7 +222,7 @@ export async function checkHasAudioTrack(videoUrl: string): Promise { const ffmpegArgs = ["-i", videoUrl, "-hide_banner"]; return new Promise((resolve, reject) => { - const proc = spawn(ffmpeg, ffmpegArgs, { + const proc = spawn(/*turbopackIgnore: true*/ ffmpeg, ffmpegArgs, { stdio: ["pipe", "pipe", "pipe"], }); diff --git a/apps/web/lib/og/poster-frame.ts b/apps/web/lib/og/poster-frame.ts index 6396a33baa1..b65d89f7ef6 100644 --- a/apps/web/lib/og/poster-frame.ts +++ b/apps/web/lib/og/poster-frame.ts @@ -28,7 +28,7 @@ const grabFrame = ( ) => new Promise((resolve, reject) => { const proc = spawn( - ffmpeg, + /*turbopackIgnore: true*/ ffmpeg, [ "-hide_banner", "-loglevel", diff --git a/apps/web/lib/video-convert.ts b/apps/web/lib/video-convert.ts index 6a842cfc3c8..484cd1235bf 100644 --- a/apps/web/lib/video-convert.ts +++ b/apps/web/lib/video-convert.ts @@ -15,7 +15,9 @@ function runFfmpeg(args: string[]): Promise { const ffmpeg = getFfmpegPath(); return new Promise((resolve, reject) => { - const proc = spawn(ffmpeg, args, { stdio: ["ignore", "ignore", "pipe"] }); + const proc = spawn(/*turbopackIgnore: true*/ ffmpeg, args, { + stdio: ["ignore", "ignore", "pipe"], + }); let stderr = ""; @@ -270,7 +272,7 @@ export async function convertRemoteVideoToMp4Buffer( const result = await convertRemoteVideoToMp4(videoUrl); try { - return await fs.readFile(result.filePath); + return await fs.readFile(/*turbopackIgnore: true*/ result.filePath); } finally { await result.cleanup(); }