Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ffmpeg-probe

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ffmpeg-probe - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

3

index.js

@@ -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

10

index.test.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc