ffmpeg-probe
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -21,2 +21,5 @@ 'use strict' | ||
probe.height = stream.height | ||
const fpsFraction = stream.avg_frame_rate.split('/') | ||
probe.fps = fpsFraction[0] / fpsFraction[1] | ||
} else { | ||
@@ -23,0 +26,0 @@ probe.duration = undefined |
@@ -15,3 +15,4 @@ 'use strict' | ||
height: 360, | ||
duration: 4000 | ||
duration: 4000, | ||
fps: 25 | ||
}, | ||
@@ -22,3 +23,4 @@ { | ||
height: 360, | ||
duration: 4000 | ||
duration: 4000, | ||
fps: 25 | ||
}, | ||
@@ -29,3 +31,4 @@ { | ||
height: 360, | ||
duration: 4000 | ||
duration: 4000, | ||
fps: 25 | ||
} | ||
@@ -42,3 +45,4 @@ ] | ||
t.deepEqual(probe.duration, fixture.duration) | ||
t.deepEqual(probe.fps, fixture.fps) | ||
}) | ||
}) |
{ | ||
"name": "ffmpeg-probe", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Wrapper around ffprobe for getting info about media files.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -27,2 +27,3 @@ # ffmpeg-probe | ||
// duration: 4000, | ||
// fps: 25, | ||
// streams: [ ... ], | ||
@@ -48,2 +49,3 @@ // format: { ... } | ||
- [fluent-ffmpeg](https://github.com/fluent-ffmpeg/node-fluent-ffmpeg) | ||
- [awesome-ffmpeg](https://github.com/transitive-bullshit/awesome-ffmpeg) - A curated list of awesome ffmpeg resources with a focus on JavaScript. | ||
@@ -50,0 +52,0 @@ ## License |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3829
63
53