@seankit/ffprobe 9.0.0 → 9.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -14
- package/manifest.json +36 -36
- package/package.json +24 -8
package/README.md
CHANGED
|
@@ -1,37 +1,65 @@
|
|
|
1
1
|
# @seankit/ffprobe
|
|
2
2
|
|
|
3
|
-
Static `ffprobe` binaries from FFmpeg 9.0.2 for Windows, macOS and Linux,
|
|
3
|
+
Static `ffprobe` binaries from FFmpeg 9.0.2 for Windows, macOS and Linux, distributed through npm.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
- **Current FFmpeg**: 9.0.2, GPL builds; every platform is checked for libx264 and libmp3lame when packaging.
|
|
6
|
+
- **x64 and arm64**: Windows x64, macOS on Apple Silicon and Intel, Linux x64 and arm64. Windows on ARM runs the x64 build.
|
|
7
|
+
- **Only your platform is downloaded**: each platform lives in its own package, installed through optional dependencies.
|
|
8
|
+
- **Built for runtime downloads**: `manifest.json` lists every platform's tarball URLs, size and SHA-256, so Electron, Tauri and other desktop apps can fetch and verify FFmpeg on first launch instead of bundling it.
|
|
9
|
+
- **Fast in mainland China**: every tarball is also served by [npmmirror](https://npmmirror.com) with identical content.
|
|
10
|
+
- **Unmodified upstream binaries**: each platform package records where its binary came from and how to get the matching source code. macOS binaries keep their upstream code signature.
|
|
11
|
+
|
|
12
|
+
Need the other tool? See [@seankit/ffmpeg](https://www.npmjs.com/package/@seankit/ffmpeg).
|
|
13
|
+
|
|
14
|
+
## Install
|
|
6
15
|
|
|
7
16
|
```sh
|
|
8
17
|
npm install @seankit/ffprobe
|
|
9
18
|
```
|
|
10
19
|
|
|
20
|
+
## Use from Node.js
|
|
21
|
+
|
|
11
22
|
```js
|
|
23
|
+
const { execFileSync } = require('node:child_process');
|
|
12
24
|
const { path } = require('@seankit/ffprobe');
|
|
13
25
|
// or: import { path } from '@seankit/ffprobe';
|
|
26
|
+
|
|
27
|
+
console.log(execFileSync(path, ['-version']).toString());
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
`path` is `null` on unsupported platforms or when optional dependencies were skipped (for example `npm install --omit=optional`). `version` gives the FFmpeg version, and `platformKey()` the manifest key for the current platform.
|
|
31
|
+
|
|
32
|
+
In Electron, unpack the platform package from the asar archive (for example `asarUnpack: ["node_modules/@seankit/ffprobe-*/**"]` in electron-builder) and replace `app.asar` with `app.asar.unpacked` in the path.
|
|
33
|
+
|
|
34
|
+
## Download at runtime
|
|
35
|
+
|
|
36
|
+
```js
|
|
37
|
+
const manifest = require('@seankit/ffprobe/manifest.json');
|
|
38
|
+
const key = `${process.platform}-${process.arch}`;
|
|
39
|
+
const entry = manifest.platforms[manifest.aliases[key] ?? key];
|
|
40
|
+
|
|
41
|
+
entry.urls; // tarball URLs, npmmirror first, then npmjs; all serve the same file
|
|
42
|
+
entry.sha256; // verify the downloaded tarball before extracting
|
|
43
|
+
entry.binary; // path of the binary inside the package; inside the tarball it is under "package/"
|
|
14
44
|
```
|
|
15
45
|
|
|
16
|
-
|
|
46
|
+
The manifest also lists `size`, `binarySha256` and the matching Rust target triples. On macOS and Linux, set the executable bit after extracting if your extractor drops it.
|
|
17
47
|
|
|
18
48
|
## Platforms
|
|
19
49
|
|
|
20
50
|
| Platform | Package | Tarball |
|
|
21
51
|
| --- | --- | --- |
|
|
22
|
-
| `win32-x64` | `@seankit/ffprobe-win32-x64` | 37.7 MiB |
|
|
23
|
-
| `darwin-arm64` | `@seankit/ffprobe-darwin-arm64` | 28.2 MiB |
|
|
24
|
-
| `darwin-x64` | `@seankit/ffprobe-darwin-x64` | 32.7 MiB |
|
|
25
|
-
| `linux-x64` | `@seankit/ffprobe-linux-x64` | 66.3 MiB |
|
|
26
|
-
| `linux-arm64` | `@seankit/ffprobe-linux-arm64` | 60.8 MiB |
|
|
27
|
-
| `win32-arm64` | uses `win32-x64` | — |
|
|
52
|
+
| `win32-x64` | [`@seankit/ffprobe-win32-x64`](https://www.npmjs.com/package/@seankit/ffprobe-win32-x64) | 37.7 MiB |
|
|
53
|
+
| `darwin-arm64` | [`@seankit/ffprobe-darwin-arm64`](https://www.npmjs.com/package/@seankit/ffprobe-darwin-arm64) | 28.2 MiB |
|
|
54
|
+
| `darwin-x64` | [`@seankit/ffprobe-darwin-x64`](https://www.npmjs.com/package/@seankit/ffprobe-darwin-x64) | 32.7 MiB |
|
|
55
|
+
| `linux-x64` | [`@seankit/ffprobe-linux-x64`](https://www.npmjs.com/package/@seankit/ffprobe-linux-x64) | 66.3 MiB |
|
|
56
|
+
| `linux-arm64` | [`@seankit/ffprobe-linux-arm64`](https://www.npmjs.com/package/@seankit/ffprobe-linux-arm64) | 60.8 MiB |
|
|
57
|
+
| `win32-arm64` | uses `win32-x64` through x64 emulation | — |
|
|
28
58
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
## Download at runtime
|
|
59
|
+
## Versioning
|
|
32
60
|
|
|
33
|
-
|
|
61
|
+
The first two parts of the npm version follow the FFmpeg major and minor version; the third part increases with every release of these packages, including repackaging the same FFmpeg version. The exact FFmpeg version is in `version` and in `manifest.json`.
|
|
34
62
|
|
|
35
63
|
## License
|
|
36
64
|
|
|
37
|
-
The binaries are GPL-3.0-or-later builds
|
|
65
|
+
The binaries are GPL-3.0-or-later builds. Each platform package contains the license text, the upstream build details in `BUILDINFO.json`, and a link to the matching FFmpeg source code. Packaging scripts: https://github.com/xsong13/ffmpeg-npm
|
package/manifest.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"tool": "ffprobe",
|
|
3
3
|
"ffmpegVersion": "9.0.2",
|
|
4
|
-
"packageVersion": "9.0.
|
|
4
|
+
"packageVersion": "9.0.1",
|
|
5
5
|
"aliases": {
|
|
6
6
|
"win32-arm64": "win32-x64"
|
|
7
7
|
},
|
|
8
8
|
"platforms": {
|
|
9
9
|
"win32-x64": {
|
|
10
10
|
"package": "@seankit/ffprobe-win32-x64",
|
|
11
|
-
"version": "9.0.
|
|
12
|
-
"file": "seankit-ffprobe-win32-x64-9.0.
|
|
13
|
-
"size":
|
|
14
|
-
"sha256": "
|
|
15
|
-
"integrity": "sha512-
|
|
11
|
+
"version": "9.0.1",
|
|
12
|
+
"file": "seankit-ffprobe-win32-x64-9.0.1.tgz",
|
|
13
|
+
"size": 39510567,
|
|
14
|
+
"sha256": "0b90d62bd5faf809f8543bbf3e78f9a7f969a33761895e640209703157c54ba1",
|
|
15
|
+
"integrity": "sha512-YId+vRtsdafoTjNGggzjNyYA7MUzZ5R/C4sXeYqo1dJzcjeun0dCXGEs1fmoH+iNrMwu2IMliuy976emUEFQOg==",
|
|
16
16
|
"binary": "bin/ffprobe.exe",
|
|
17
17
|
"binarySha256": "f0d36ecbbdd3bcfac3efa078c96c7271c2e68b3810595552ac3b7f17e9a65c52",
|
|
18
18
|
"binarySize": 105221120,
|
|
@@ -22,17 +22,17 @@
|
|
|
22
22
|
"aarch64-pc-windows-msvc"
|
|
23
23
|
],
|
|
24
24
|
"urls": [
|
|
25
|
-
"https://registry.npmmirror.com/@seankit/ffprobe-win32-x64/-/ffprobe-win32-x64-9.0.
|
|
26
|
-
"https://registry.npmjs.org/@seankit/ffprobe-win32-x64/-/ffprobe-win32-x64-9.0.
|
|
25
|
+
"https://registry.npmmirror.com/@seankit/ffprobe-win32-x64/-/ffprobe-win32-x64-9.0.1.tgz",
|
|
26
|
+
"https://registry.npmjs.org/@seankit/ffprobe-win32-x64/-/ffprobe-win32-x64-9.0.1.tgz"
|
|
27
27
|
]
|
|
28
28
|
},
|
|
29
29
|
"darwin-arm64": {
|
|
30
30
|
"package": "@seankit/ffprobe-darwin-arm64",
|
|
31
|
-
"version": "9.0.
|
|
32
|
-
"file": "seankit-ffprobe-darwin-arm64-9.0.
|
|
33
|
-
"size":
|
|
34
|
-
"sha256": "
|
|
35
|
-
"integrity": "sha512-
|
|
31
|
+
"version": "9.0.1",
|
|
32
|
+
"file": "seankit-ffprobe-darwin-arm64-9.0.1.tgz",
|
|
33
|
+
"size": 29615655,
|
|
34
|
+
"sha256": "0861e5dc4f5a2769d6f8549131b919c1751c1c16b72ccf5429e4643c6e451511",
|
|
35
|
+
"integrity": "sha512-2UHNN+L1h8/YG1LCIqf7cRtfXCMruB0is2cdCPVepx5k8nb3w5SxcQQMrhMn4x6RnKGI1qyO1CiAW2rS8MIGzA==",
|
|
36
36
|
"binary": "bin/ffprobe",
|
|
37
37
|
"binarySha256": "2738aa46a7f9acbc8ab09a6715554c90f7de603171ac403726765685df6a0059",
|
|
38
38
|
"binarySize": 66158064,
|
|
@@ -41,17 +41,17 @@
|
|
|
41
41
|
"aarch64-apple-darwin"
|
|
42
42
|
],
|
|
43
43
|
"urls": [
|
|
44
|
-
"https://registry.npmmirror.com/@seankit/ffprobe-darwin-arm64/-/ffprobe-darwin-arm64-9.0.
|
|
45
|
-
"https://registry.npmjs.org/@seankit/ffprobe-darwin-arm64/-/ffprobe-darwin-arm64-9.0.
|
|
44
|
+
"https://registry.npmmirror.com/@seankit/ffprobe-darwin-arm64/-/ffprobe-darwin-arm64-9.0.1.tgz",
|
|
45
|
+
"https://registry.npmjs.org/@seankit/ffprobe-darwin-arm64/-/ffprobe-darwin-arm64-9.0.1.tgz"
|
|
46
46
|
]
|
|
47
47
|
},
|
|
48
48
|
"darwin-x64": {
|
|
49
49
|
"package": "@seankit/ffprobe-darwin-x64",
|
|
50
|
-
"version": "9.0.
|
|
51
|
-
"file": "seankit-ffprobe-darwin-x64-9.0.
|
|
52
|
-
"size":
|
|
53
|
-
"sha256": "
|
|
54
|
-
"integrity": "sha512-
|
|
50
|
+
"version": "9.0.1",
|
|
51
|
+
"file": "seankit-ffprobe-darwin-x64-9.0.1.tgz",
|
|
52
|
+
"size": 34330864,
|
|
53
|
+
"sha256": "6ad8da17f32e06954d78b1cac7f725fac8b1612af3db7e16ecb0b4cec9d7cfa4",
|
|
54
|
+
"integrity": "sha512-MEh6hwt/Z2mzRP+DCJW5mLw+kMlbE22sczfgmRm0qeyHi/Pe27eN9t8KoQfqBIz1mrLFtS9PhUGxM4mmxAaSAQ==",
|
|
55
55
|
"binary": "bin/ffprobe",
|
|
56
56
|
"binarySha256": "b5df9964b0c2048318fafedcd4e3bbafbc561033cee77de8da1840685d8a9d0d",
|
|
57
57
|
"binarySize": 94594080,
|
|
@@ -60,17 +60,17 @@
|
|
|
60
60
|
"x86_64-apple-darwin"
|
|
61
61
|
],
|
|
62
62
|
"urls": [
|
|
63
|
-
"https://registry.npmmirror.com/@seankit/ffprobe-darwin-x64/-/ffprobe-darwin-x64-9.0.
|
|
64
|
-
"https://registry.npmjs.org/@seankit/ffprobe-darwin-x64/-/ffprobe-darwin-x64-9.0.
|
|
63
|
+
"https://registry.npmmirror.com/@seankit/ffprobe-darwin-x64/-/ffprobe-darwin-x64-9.0.1.tgz",
|
|
64
|
+
"https://registry.npmjs.org/@seankit/ffprobe-darwin-x64/-/ffprobe-darwin-x64-9.0.1.tgz"
|
|
65
65
|
]
|
|
66
66
|
},
|
|
67
67
|
"linux-x64": {
|
|
68
68
|
"package": "@seankit/ffprobe-linux-x64",
|
|
69
|
-
"version": "9.0.
|
|
70
|
-
"file": "seankit-ffprobe-linux-x64-9.0.
|
|
71
|
-
"size":
|
|
72
|
-
"sha256": "
|
|
73
|
-
"integrity": "sha512-
|
|
69
|
+
"version": "9.0.1",
|
|
70
|
+
"file": "seankit-ffprobe-linux-x64-9.0.1.tgz",
|
|
71
|
+
"size": 69570574,
|
|
72
|
+
"sha256": "1154e45c7d4213437005ecc9568cf668dc27ec46be5f0f23ffdd2f0756665788",
|
|
73
|
+
"integrity": "sha512-nMqSTrHJQwxo/dZw/+bdSFkM8Mz3wvU2vS34PUlsncuwiuKemDVFS7nHo67PS+D7KqXiZ4r+KpW1VjV5TRZlmA==",
|
|
74
74
|
"binary": "bin/ffprobe",
|
|
75
75
|
"binarySha256": "ae9051af68f52e7ad5706b442577689c74c02da618ca1590caf1ac7199f2931c",
|
|
76
76
|
"binarySize": 173300552,
|
|
@@ -79,17 +79,17 @@
|
|
|
79
79
|
"x86_64-unknown-linux-gnu"
|
|
80
80
|
],
|
|
81
81
|
"urls": [
|
|
82
|
-
"https://registry.npmmirror.com/@seankit/ffprobe-linux-x64/-/ffprobe-linux-x64-9.0.
|
|
83
|
-
"https://registry.npmjs.org/@seankit/ffprobe-linux-x64/-/ffprobe-linux-x64-9.0.
|
|
82
|
+
"https://registry.npmmirror.com/@seankit/ffprobe-linux-x64/-/ffprobe-linux-x64-9.0.1.tgz",
|
|
83
|
+
"https://registry.npmjs.org/@seankit/ffprobe-linux-x64/-/ffprobe-linux-x64-9.0.1.tgz"
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
86
|
"linux-arm64": {
|
|
87
87
|
"package": "@seankit/ffprobe-linux-arm64",
|
|
88
|
-
"version": "9.0.
|
|
89
|
-
"file": "seankit-ffprobe-linux-arm64-9.0.
|
|
90
|
-
"size":
|
|
91
|
-
"sha256": "
|
|
92
|
-
"integrity": "sha512-
|
|
88
|
+
"version": "9.0.1",
|
|
89
|
+
"file": "seankit-ffprobe-linux-arm64-9.0.1.tgz",
|
|
90
|
+
"size": 63802399,
|
|
91
|
+
"sha256": "481d3ca9f4db9f3363bec3bf44ce07131b664e98ad9e5bb3b406e5e3079a6647",
|
|
92
|
+
"integrity": "sha512-40ziXsgQ9D9+gpD1SfhGwRCSzVHYQe17xnEiZFSKfxPeAWqHSnt5cNXZDoHwjzU4yZB+DX0ovE4nJt7T74q5gQ==",
|
|
93
93
|
"binary": "bin/ffprobe",
|
|
94
94
|
"binarySha256": "8e967d51f1e9e7d1c84423417e68625d267128c5014e0c20ae470f53506631ef",
|
|
95
95
|
"binarySize": 131395304,
|
|
@@ -98,8 +98,8 @@
|
|
|
98
98
|
"aarch64-unknown-linux-gnu"
|
|
99
99
|
],
|
|
100
100
|
"urls": [
|
|
101
|
-
"https://registry.npmmirror.com/@seankit/ffprobe-linux-arm64/-/ffprobe-linux-arm64-9.0.
|
|
102
|
-
"https://registry.npmjs.org/@seankit/ffprobe-linux-arm64/-/ffprobe-linux-arm64-9.0.
|
|
101
|
+
"https://registry.npmmirror.com/@seankit/ffprobe-linux-arm64/-/ffprobe-linux-arm64-9.0.1.tgz",
|
|
102
|
+
"https://registry.npmjs.org/@seankit/ffprobe-linux-arm64/-/ffprobe-linux-arm64-9.0.1.tgz"
|
|
103
103
|
]
|
|
104
104
|
}
|
|
105
105
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seankit/ffprobe",
|
|
3
|
-
"version": "9.0.
|
|
4
|
-
"description": "Static ffprobe
|
|
3
|
+
"version": "9.0.1",
|
|
4
|
+
"description": "Static ffprobe 9.0.2 binaries for Windows, macOS and Linux (x64 and arm64), installed per platform, with a SHA-256 download manifest and npmmirror support",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"ffprobe",
|
|
8
8
|
"ffmpeg",
|
|
9
|
+
"ffprobe-static",
|
|
10
|
+
"ffprobe-binary",
|
|
9
11
|
"static",
|
|
10
12
|
"binary",
|
|
11
|
-
"
|
|
13
|
+
"binaries",
|
|
14
|
+
"prebuilt",
|
|
15
|
+
"cross-platform",
|
|
16
|
+
"windows",
|
|
17
|
+
"macos",
|
|
18
|
+
"linux",
|
|
19
|
+
"arm64",
|
|
20
|
+
"apple-silicon",
|
|
21
|
+
"electron",
|
|
22
|
+
"tauri",
|
|
23
|
+
"npmmirror"
|
|
12
24
|
],
|
|
13
25
|
"main": "index.js",
|
|
14
26
|
"types": "index.d.ts",
|
|
@@ -25,11 +37,15 @@
|
|
|
25
37
|
"node": ">=18"
|
|
26
38
|
},
|
|
27
39
|
"optionalDependencies": {
|
|
28
|
-
"@seankit/ffprobe-win32-x64": "9.0.
|
|
29
|
-
"@seankit/ffprobe-darwin-arm64": "9.0.
|
|
30
|
-
"@seankit/ffprobe-darwin-x64": "9.0.
|
|
31
|
-
"@seankit/ffprobe-linux-x64": "9.0.
|
|
32
|
-
"@seankit/ffprobe-linux-arm64": "9.0.
|
|
40
|
+
"@seankit/ffprobe-win32-x64": "9.0.1",
|
|
41
|
+
"@seankit/ffprobe-darwin-arm64": "9.0.1",
|
|
42
|
+
"@seankit/ffprobe-darwin-x64": "9.0.1",
|
|
43
|
+
"@seankit/ffprobe-linux-x64": "9.0.1",
|
|
44
|
+
"@seankit/ffprobe-linux-arm64": "9.0.1"
|
|
45
|
+
},
|
|
46
|
+
"homepage": "https://github.com/xsong13/ffmpeg-npm#readme",
|
|
47
|
+
"bugs": {
|
|
48
|
+
"url": "https://github.com/xsong13/ffmpeg-npm/issues"
|
|
33
49
|
},
|
|
34
50
|
"repository": {
|
|
35
51
|
"type": "git",
|