fluent-ffmpeg / node-fluent-ffmpeg

A fluent API to FFMPEG (http://www.ffmpeg.org)
MIT License
7.63k stars 873 forks source link

No Error, No Output #1205

Open witchpiggie opened 1 year ago

witchpiggie commented 1 year ago

Version information

Code to reproduce

import Ffmpeg from "fluent-ffmpeg";
const filePath = 'C:\path\to\file.mp4';
const newFilePath = 'C:\path\to\newfile.mp4';

Ffmpeg(filePath)
.addOptions([
  '-codec copy',
  '-map_metadata -1'
])
.on('progress', info => console.log(`Progress: ${info.percent}%`))
.on('end', () => {
  console.log(`Completed ${filePath}`);
  (async()=> await fs.rm(filePath))();
})
.on('error', err => Logger.error(err))
.save(newFilePath);

Expected results

File should be copied with metadata removed

Observed results

Nothing happens. I run it and get no errors, or output of any kind. The files are the same and have not changed or been renamed.

Checklist

Leask commented 11 months ago

same here, Mac OS.

RDeluxe commented 8 months ago

Happened to me after a while on MacOS too.