return new Promise((resolve, reject) => { ffmpeg() .addInput('input.mp4') .audioFilters('silencedetect=n=-50dB') .output('output.txt') .outputOptions('-y', '-f', 'null') .on('error', (error) => { reject(new Error(error)); }) .on('progress', (progress) => { console.log(progress); }) .on('end', () => { resolve(); }) .run(); })
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)