Gathering detailed insights and metrics for ffmpeg-on-progress
Gathering detailed insights and metrics for ffmpeg-on-progress
Gathering detailed insights and metrics for ffmpeg-on-progress
Gathering detailed insights and metrics for ffmpeg-on-progress
npm install ffmpeg-on-progress
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
14 Stars
13 Commits
4 Forks
5 Watching
1 Branches
1 Contributors
Updated on 10 Jan 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-24%
203
Compared to previous day
Last week
-5%
968
Compared to previous week
Last month
45.4%
4,404
Compared to previous month
Last year
101.1%
29,104
Compared to previous year
Utility for robustly reporting ffmpeg command progress with fluent-ffmpeg.
Some ffmpeg commands aren't capable fo producing progress events, such as when the input is a stream or when using multiple inputs. This simple utility allows you to accurately report progress in these cases by looking at the number of frames ffmpeg has processed with the caveat that you need to know the expected output's duration ahead of time.
In cases where fluent-ffmpeg produces a valid progress event, this module is a noop.
1npm install --save ffmpeg-on-progress 2# or 3yarn add ffmpeg-on-progress
1const ffmpeg = require('fluent-ffmpeg') 2const ffmpegOnProgress = require('ffmpeg-on-progress') 3 4const logProgress = (progress, event) => { 5 // progress is a floating point number from 0 to 1 6 console.log('progress', (progress * 100).toFixed()) 7} 8 9// estimated duration of output in milliseconds 10const durationEstimate = 4000 11 12const cmd = ffmpeg('input.avi') 13 .output('output.mp4') 14 .on('progress', ffmpegOnProgress(logProgress, durationEstimate)) 15 .run()
MIT © Travis Fischer
Support my OSS work by following me on twitter
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no SAST tool detected
Details
Reason
Found 0/13 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
license file not detected
Details
Reason
53 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More