Gathering detailed insights and metrics for ffmpeg-progress-wrapper
Gathering detailed insights and metrics for ffmpeg-progress-wrapper
npm install ffmpeg-progress-wrapper
Typescript
Module System
Min. Node Version
Node Version
NPM Version
72.6
Supply Chain
99.4
Quality
76.2
Maintenance
100
Vulnerability
100
License
TypeScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
49,454
Last Day
13
Last Week
95
Last Month
566
Last Year
9,608
16 Stars
64 Commits
7 Forks
5 Watching
4 Branches
3 Contributors
Minified
Minified + Gzipped
Latest Version
2.0.1
Package Id
ffmpeg-progress-wrapper@2.0.1
Unpacked Size
44.25 kB
Size
12.72 kB
File Count
16
NPM Version
6.14.8
Node Version
12.9.0
Cumulative downloads
Total Downloads
Last day
-75.9%
13
Compared to previous day
Last week
-37.9%
95
Compared to previous week
Last month
0.4%
566
Compared to previous month
Last year
6.4%
9,608
Compared to previous year
3
3
Wraps your ffmpeg raw command line with a nice progress interface
$ npm install ffmpeg-progress-wrapper
$ yarn ffmpeg-progress-wrapper
1import {FFMpegProgress} from 'ffmpeg-progress-wrapper'; 2new FFMpegProgress(args, options);
string[]
- List of string argumentsobject
- optional
string
- path to ffmpeg (defaults to ffmpeg from PATH)string
- working dir (defaults to current working dir)ProcessEnv
- environment vars (defaults to process.env)number
- output duration in seconds (default is determined from file)boolean
- hide ffmpeg config from stderr (default false) number
- max amount of bytes allowed by the process to use before killing for OOM (default unset)FFMpegProgress.on('progress')
object
number | null
- time left to process in secondsnumber | null
- processed output time / real time (2x - twice realtime, 0.5x - half realtime)number | null
number | null
- current output time in secondsnumber | null
- current output framenumber | null
- progress percentage (from 0 to 1)number
- dropped framesnumber
- duplicated framesnumber[][]
- stream quality per frame, per stream{ y: number | null, u: number | null, v: number | null, all: number | null }[][]
- stream psnr per file, per stream, per channel (enabled via -psnr
ffmpeg arg)number | null
- output file sizenumber | null
- output file bitrate in bytesFFMpegProgress.on('raw')
- Fires whenever ffmpeg outputs text - very volatilestring
FFMpegProgress.on('details')
- Fires once per command, at the beginningobject
number
- video duration in secondsnumber
- video bitrate in bytesnumber
- video's first frame time in seconds1const {FFMpegProgress} = require('ffmpeg-progress-wrapper'); 2// or 3import {FFMpegProgress} from 'ffmpeg-progress-wrapper'; 4 5(async () => { 6 7 const process = new FFMpegProgress(['-i', 'test.mov' ,'test output.mp4']); 8 9 process.on('raw', console.log); 10 11 process.once('details', (details) => console.log(JSON.stringify(details)); 12 13 process.on('progress', (progress) => console.log(JSON.stringify(progress)); 14 15 process.once('end', console.log.bind(console, 'Conversion finished and exited with code')); 16 17 process.done(console.log); 18 19 await process.onDone(); 20 21})(); 22/** 23{ 24 duration: 216, 25 bitrate: 36864, 26 start: 0, 27 resolution: { width: 320, height: 240 }, 28 fps: 25 29} 30{ 31 drop: 0, 32 dup: 0, 33 frame: 1366, 34 time: 52.480078, 35 speed: 105, 36 fps: 0, 37 eta: 1.5573325904761905, 38 progress: 0.24296332407407406, 39 quality: [ [ 28 ] ], 40 psnr: [ [ { y: NaN, u: NaN, v: NaN, all: NaN } ] ], 41 size: 36, 42 bitrate: 0 43} 44{ 45 drop: 0, 46 dup: 0, 47 frame: 2700, 48 time: 105.840078, 49 speed: 106, 50 fps: 2696.44, 51 eta: 1.0392445471698113, 52 progress: 0.4900003611111111, 53 quality: [ [ 28 ] ], 54 psnr: [ [ { y: NaN, u: NaN, v: NaN, all: NaN } ] ], 55 size: 262180, 56 bitrate: 20275.2 57} 58{ 59 drop: 0, 60 dup: 0, 61 frame: 4138, 62 time: 163.360078, 63 speed: 109, 64 fps: 2756.01, 65 eta: 0.4829350642201836, 66 progress: 0.7562966574074074, 67 quality: [ [ 28 ] ], 68 psnr: [ [ { y: NaN, u: NaN, v: NaN, all: NaN } ] ], 69 size: 524324, 70 bitrate: 26316.8 71} 72{ 73 drop: 0, 74 dup: 0, 75 frame: 5423, 76 time: 216.800078, 77 speed: 110, 78 fps: 2747.61, 79 eta: 0, 80 progress: 1.0037040648148148, 81 quality: [ [ -1 ] ], 82 psnr: [ [ { y: Infinity, u: Infinity, v: Infinity, all: Infinity } ] ], 83 size: 977469, 84 bitrate: 36966.4 85} 86Conversion finished and exited with code 0 null 87*/
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
2 existing vulnerabilities detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/29 approved changesets -- 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
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-01-27
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