@remotion/media-utils 4.0.176 → 4.0.178

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 ADDED
@@ -0,0 +1,18 @@
1
+ # @remotion/media-utils
2
+
3
+ Utilities for working with media files
4
+
5
+ [![NPM Downloads](https://img.shields.io/npm/dm/@remotion/media-utils.svg?style=flat&color=black&label=Downloads)](https://npmcharts.com/compare/@remotion/media-utils?minimal=true)
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install @remotion/media-utils --save-exact
11
+ ```
12
+
13
+ When installing a Remotion package, make sure to align the version of all `remotion` and `@remotion/*` packages to the same version.
14
+ Remove the `^` character from the version number to use the exact version.
15
+
16
+ ## Usage
17
+
18
+ See the [documentation](https://www.remotion.dev/docs/media-utils) for more information.
@@ -1 +1,4 @@
1
- export declare const fftAccurate: (vector: Int16Array) => [number, number][];
1
+ export declare const fftAccurate: (vector: Int16Array) => [
2
+ number,
3
+ number
4
+ ][];
@@ -1 +1,4 @@
1
- export declare const fftFast: (vector: Int16Array) => [number, number][];
1
+ export declare const fftFast: (vector: Int16Array) => [
2
+ number,
3
+ number
4
+ ][];
@@ -1 +1,4 @@
1
- export declare const fftFreq: (fftBins: [number, number][], sampleRate: number) => number[];
1
+ export declare const fftFreq: (fftBins: [
2
+ number,
3
+ number
4
+ ][], sampleRate: number) => number[];
package/dist/fft/mag.d.ts CHANGED
@@ -1 +1,4 @@
1
- export declare const fftMag: (fftBins: [number, number][]) => number[];
1
+ export declare const fftMag: (fftBins: [
2
+ number,
3
+ number
4
+ ][]) => number[];
@@ -65,7 +65,6 @@ const onMediaError = ({ error, src, reject, cleanup, api, }) => {
65
65
  .join(' '));
66
66
  reject(err);
67
67
  cleanup();
68
- console.log('404', status);
69
68
  })
70
69
  .catch((e) => {
71
70
  reject(e);
package/package.json CHANGED
@@ -1,32 +1,24 @@
1
1
  {
2
+ "repository": {
3
+ "url": "https://github.com/remotion-dev/remotion/tree/main/packages/media-utils"
4
+ },
2
5
  "name": "@remotion/media-utils",
3
- "version": "4.0.176",
4
- "description": "Utility functions for audio and video",
6
+ "version": "4.0.178",
7
+ "description": "Utilities for working with media files",
5
8
  "main": "dist/index.js",
6
9
  "sideEffects": false,
7
10
  "author": "Jonny Burger <jonny@remotion.dev>",
8
11
  "license": "MIT",
9
- "repository": {
10
- "url": "https://github.com/remotion-dev/remotion"
11
- },
12
12
  "bugs": {
13
13
  "url": "https://github.com/remotion-dev/remotion/issues"
14
14
  },
15
15
  "dependencies": {
16
- "remotion": "4.0.176"
16
+ "remotion": "4.0.178"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "react": ">=16.8.0",
20
20
  "react-dom": ">=16.8.0"
21
21
  },
22
- "devDependencies": {
23
- "@jonny/eslint-config": "3.0.281",
24
- "@types/node": "18.14.6",
25
- "@types/react": "18.3.1",
26
- "eslint": "8.56.0",
27
- "prettier": "3.2.5",
28
- "prettier-plugin-organize-imports": "3.2.4"
29
- },
30
22
  "keywords": [
31
23
  "remotion",
32
24
  "ffmpeg",
@@ -37,6 +29,7 @@
37
29
  "publishConfig": {
38
30
  "access": "public"
39
31
  },
32
+ "homepage": "https://www.remotion.dev/docs/media-utils",
40
33
  "scripts": {
41
34
  "formatting": "prettier src --check",
42
35
  "lint": "eslint src --ext ts,tsx"