0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

javascriptでffmpegを実行する

Posted at

const { exec } = require("child_process");

// ffmpegコマンドを構築
const ffmpeg_command = ffmpeg -i test.mp4 test.mov;

// ffmpegコマンドを実行
exec(ffmpeg_command, (error, stdout, stderr) => {
if (error) {
console.error(エラー: ${error});
return res.status(500).json({ error: "変換に失敗しました" });
}
});

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?