@remotion/media-utils 4.0.423 → 4.0.425
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/dist/combine-float32-arrays.d.ts +1 -1
- package/dist/fetch-with-cors-catch.d.ts +1 -1
- package/dist/fft/fft-accurate.d.ts +1 -1
- package/dist/fft/fft-fast.d.ts +1 -1
- package/dist/fft/get-visualization.d.ts +1 -1
- package/dist/get-audio-data.d.ts +1 -1
- package/dist/get-partial-audio-data.d.ts +1 -1
- package/dist/get-wave-form-samples.d.ts +1 -1
- package/dist/index.js +11 -11
- package/dist/p-limit.d.ts +1 -1
- package/dist/visualize-audio.d.ts +1 -1
- package/package.json +10 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const combineFloat32Arrays: (arrays: Float32Array[]) => Float32Array<ArrayBufferLike>;
|
|
1
|
+
export declare const combineFloat32Arrays: (arrays: Float32Array<ArrayBufferLike>[]) => Float32Array<ArrayBufferLike>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const fetchWithCorsCatch: (src: string, init?: RequestInit) => Promise<Response>;
|
|
1
|
+
export declare const fetchWithCorsCatch: (src: string, init?: RequestInit | undefined) => Promise<Response>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const fftAccurate: (vector: Int16Array) => [number, number][];
|
|
1
|
+
export declare const fftAccurate: (vector: Int16Array<ArrayBufferLike>) => [number, number][];
|
package/dist/fft/fft-fast.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const fftFast: (vector: Int16Array) => [number, number][];
|
|
1
|
+
export declare const fftFast: (vector: Int16Array<ArrayBufferLike>) => [number, number][];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type OptimizeFor = 'accuracy' | 'speed';
|
|
2
2
|
export declare const getVisualization: ({ sampleSize, data, sampleRate, frame, fps, maxInt, optimizeFor, dataOffsetInSeconds, }: {
|
|
3
3
|
sampleSize: number;
|
|
4
|
-
data: Float32Array
|
|
4
|
+
data: Float32Array<ArrayBufferLike>;
|
|
5
5
|
frame: number;
|
|
6
6
|
sampleRate: number;
|
|
7
7
|
fps: number;
|
package/dist/get-audio-data.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import type { MediaUtilsAudioData } from './types';
|
|
|
2
2
|
type Options = {
|
|
3
3
|
sampleRate?: number;
|
|
4
4
|
};
|
|
5
|
-
export declare const getAudioData: (src: string, options?: Options) => Promise<MediaUtilsAudioData>;
|
|
5
|
+
export declare const getAudioData: (src: string, options?: Options | undefined) => Promise<MediaUtilsAudioData>;
|
|
6
6
|
export {};
|
|
@@ -7,4 +7,4 @@ export type GetPartialAudioDataProps = {
|
|
|
7
7
|
signal: AbortSignal;
|
|
8
8
|
isMatroska: boolean;
|
|
9
9
|
};
|
|
10
|
-
export declare const getPartialAudioData: ({ track, fromSeconds, toSeconds, channelIndex, signal, isMatroska, }: GetPartialAudioDataProps) => Promise<Float32Array
|
|
10
|
+
export declare const getPartialAudioData: ({ track, fromSeconds, toSeconds, channelIndex, signal, isMatroska, }: GetPartialAudioDataProps) => Promise<Float32Array<ArrayBufferLike>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type SampleOutputRange = 'minus-one-to-one' | 'zero-to-one';
|
|
2
2
|
export declare const getWaveformSamples: ({ audioBuffer, numberOfSamples, outputRange, normalize, }: {
|
|
3
|
-
audioBuffer: Float32Array
|
|
3
|
+
audioBuffer: Float32Array<ArrayBufferLike>;
|
|
4
4
|
numberOfSamples: number;
|
|
5
5
|
outputRange: SampleOutputRange;
|
|
6
6
|
normalize: boolean;
|
package/dist/index.js
CHANGED
|
@@ -15,27 +15,27 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.visualizeAudioWaveform = exports.visualizeAudio = exports.useWindowedAudioData = exports.useAudioData = exports.getWaveformPortion = exports.getVideoMetadata = exports.getImageDimensions = exports.getAudioDurationInSeconds = exports.getAudioDuration = exports.getAudioData = exports.createSmoothSvgPath = exports.audioBufferToDataUrl = void 0;
|
|
18
|
-
|
|
18
|
+
const audio_url_helpers_1 = require("./audio-buffer/audio-url-helpers");
|
|
19
19
|
Object.defineProperty(exports, "audioBufferToDataUrl", { enumerable: true, get: function () { return audio_url_helpers_1.audioBufferToDataUrl; } });
|
|
20
|
-
|
|
20
|
+
const create_smooth_svg_path_1 = require("./create-smooth-svg-path");
|
|
21
21
|
Object.defineProperty(exports, "createSmoothSvgPath", { enumerable: true, get: function () { return create_smooth_svg_path_1.createSmoothSvgPath; } });
|
|
22
|
-
|
|
22
|
+
const get_audio_data_1 = require("./get-audio-data");
|
|
23
23
|
Object.defineProperty(exports, "getAudioData", { enumerable: true, get: function () { return get_audio_data_1.getAudioData; } });
|
|
24
|
-
|
|
24
|
+
const get_audio_duration_in_seconds_1 = require("./get-audio-duration-in-seconds");
|
|
25
25
|
Object.defineProperty(exports, "getAudioDuration", { enumerable: true, get: function () { return get_audio_duration_in_seconds_1.getAudioDuration; } });
|
|
26
26
|
Object.defineProperty(exports, "getAudioDurationInSeconds", { enumerable: true, get: function () { return get_audio_duration_in_seconds_1.getAudioDurationInSeconds; } });
|
|
27
|
-
|
|
27
|
+
const get_image_dimensions_1 = require("./get-image-dimensions");
|
|
28
28
|
Object.defineProperty(exports, "getImageDimensions", { enumerable: true, get: function () { return get_image_dimensions_1.getImageDimensions; } });
|
|
29
|
-
|
|
29
|
+
const get_video_metadata_1 = require("./get-video-metadata");
|
|
30
30
|
Object.defineProperty(exports, "getVideoMetadata", { enumerable: true, get: function () { return get_video_metadata_1.getVideoMetadata; } });
|
|
31
|
-
|
|
31
|
+
const get_waveform_portion_1 = require("./get-waveform-portion");
|
|
32
32
|
Object.defineProperty(exports, "getWaveformPortion", { enumerable: true, get: function () { return get_waveform_portion_1.getWaveformPortion; } });
|
|
33
33
|
__exportStar(require("./types"), exports);
|
|
34
|
-
|
|
34
|
+
const use_audio_data_1 = require("./use-audio-data");
|
|
35
35
|
Object.defineProperty(exports, "useAudioData", { enumerable: true, get: function () { return use_audio_data_1.useAudioData; } });
|
|
36
|
-
|
|
36
|
+
const use_windowed_audio_data_1 = require("./use-windowed-audio-data");
|
|
37
37
|
Object.defineProperty(exports, "useWindowedAudioData", { enumerable: true, get: function () { return use_windowed_audio_data_1.useWindowedAudioData; } });
|
|
38
|
-
|
|
38
|
+
const visualize_audio_1 = require("./visualize-audio");
|
|
39
39
|
Object.defineProperty(exports, "visualizeAudio", { enumerable: true, get: function () { return visualize_audio_1.visualizeAudio; } });
|
|
40
|
-
|
|
40
|
+
const visualize_audio_waveform_1 = require("./visualize-audio-waveform");
|
|
41
41
|
Object.defineProperty(exports, "visualizeAudioWaveform", { enumerable: true, get: function () { return visualize_audio_waveform_1.visualizeAudioWaveform; } });
|
package/dist/p-limit.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const pLimit: (concurrency: number) => <Arguments extends unknown[], ReturnType>(fn: (..._arguments: Arguments) =>
|
|
1
|
+
export declare const pLimit: (concurrency: number) => <Arguments extends unknown[], ReturnType>(fn: (..._arguments: Arguments) => ReturnType | PromiseLike<ReturnType>, ...args: Arguments) => Promise<ReturnType>;
|
|
@@ -12,5 +12,5 @@ type OptionalVisualizeAudioOptions = {
|
|
|
12
12
|
smoothing: boolean;
|
|
13
13
|
};
|
|
14
14
|
export type VisualizeAudioOptions = MandatoryVisualizeAudioOptions & Partial<OptionalVisualizeAudioOptions>;
|
|
15
|
-
export declare const visualizeAudio: ({ smoothing, optimizeFor, dataOffsetInSeconds, ...parameters }: MandatoryVisualizeAudioOptions & Partial<OptionalVisualizeAudioOptions>
|
|
15
|
+
export declare const visualizeAudio: ({ smoothing, optimizeFor, dataOffsetInSeconds, ...parameters }: MandatoryVisualizeAudioOptions & Partial<OptionalVisualizeAudioOptions>) => number[];
|
|
16
16
|
export {};
|
package/package.json
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
"url": "https://github.com/remotion-dev/remotion/tree/main/packages/media-utils"
|
|
4
4
|
},
|
|
5
5
|
"name": "@remotion/media-utils",
|
|
6
|
-
"version": "4.0.
|
|
6
|
+
"version": "4.0.425",
|
|
7
7
|
"description": "Utilities for working with media files",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"sideEffects": false,
|
|
10
10
|
"scripts": {
|
|
11
|
-
"formatting": "prettier
|
|
11
|
+
"formatting": "prettier src --check",
|
|
12
12
|
"lint": "eslint src",
|
|
13
|
-
"make": "
|
|
13
|
+
"make": "tsgo -d"
|
|
14
14
|
},
|
|
15
15
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
16
16
|
"license": "MIT",
|
|
@@ -18,18 +18,19 @@
|
|
|
18
18
|
"url": "https://github.com/remotion-dev/remotion/issues"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@remotion/media-parser": "4.0.
|
|
22
|
-
"@remotion/webcodecs": "4.0.
|
|
23
|
-
"remotion": "4.0.
|
|
24
|
-
"mediabunny": "1.34.
|
|
21
|
+
"@remotion/media-parser": "4.0.425",
|
|
22
|
+
"@remotion/webcodecs": "4.0.425",
|
|
23
|
+
"remotion": "4.0.425",
|
|
24
|
+
"mediabunny": "1.34.4"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": ">=16.8.0",
|
|
28
28
|
"react-dom": ">=16.8.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@remotion/eslint-config-internal": "4.0.
|
|
32
|
-
"eslint": "9.19.0"
|
|
31
|
+
"@remotion/eslint-config-internal": "4.0.425",
|
|
32
|
+
"eslint": "9.19.0",
|
|
33
|
+
"@typescript/native-preview": "7.0.0-dev.20260217.1"
|
|
33
34
|
},
|
|
34
35
|
"keywords": [
|
|
35
36
|
"remotion",
|