From 41abfb2c8944ea250b4727e1b5b8e37495d52d5d Mon Sep 17 00:00:00 2001 From: a946547732 Date: Tue, 28 May 2024 10:20:52 +0800 Subject: [PATCH] Auto Commit --- .inscode | 2 +- index.js | 24 ------------------------ 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/.inscode b/.inscode index e177731..dc03ef8 100644 --- a/.inscode +++ b/.inscode @@ -1,4 +1,4 @@ -run = "npm i && npm run dev" +run = "npm run dev" language = "node" [env] diff --git a/index.js b/index.js index 39dad77..b83fa0a 100644 --- a/index.js +++ b/index.js @@ -23,27 +23,3 @@ function getDayOfMonth() { const dayOfMonth = getDayOfMonth(); console.log(`今天是本月的第 ${dayOfMonth} 天`); -const { spawn } = require('child_process'); - - -//生成一个 mp4 to wav 视频格式转化器 -// 执行 FFmpeg 命令行工具 -const ffmpeg = spawn('ffmpeg', ['-i', 'input.mp4', 'output.wav']); - -// 监听执行结果 -ffmpeg.on('close', (code) => { - console.log(`子进程退出,退出码 ${code}`); -}); - -ffmpeg.on('error', (err) => { - console.error(`出错了:${err}`); -}); - -ffmpeg.stdout.on('data', (data) => { - console.log(`输出:${data}`); -}); - -ffmpeg.stderr.on('data', (data) => { - console.error(`错误:${data}`); -}); - -- GitLab