n8n-nodes-mediafx
Version:
N8N custom nodes for video editing and media processing
44 lines (43 loc) • 2.1 kB
TypeScript
/// <reference types="node" />
/// <reference types="node" />
import ffmpeg = require('fluent-ffmpeg');
import { IExecuteFunctions } from 'n8n-workflow';
import { IDataObject } from 'n8n-workflow';
export declare function verifyFfmpegAvailability(): void;
export declare function getTempFile(extension: string): string;
export declare function cleanupOldTempFiles(maxAgeHours?: number): Promise<void>;
export declare function downloadSource(url: string): Promise<{
filePath: string;
cleanup: () => Promise<void>;
}>;
export declare function createTempFileFromBuffer(buffer: Buffer, originalFilename?: string): Promise<{
filePath: string;
cleanup: () => Promise<void>;
}>;
export declare function resolveInputs(executeFunctions: IExecuteFunctions, itemIndex: number, sourcesConfig: Array<{
sourceType: string;
value: string;
binaryProperty?: string;
}>): Promise<{
paths: string[];
cleanup: () => Promise<void>;
}>;
export declare function getDuration(filePath: string): Promise<number>;
export declare function createSilentAudio(duration: number): Promise<{
filePath: string;
cleanup: () => Promise<void>;
}>;
export declare function runFfmpeg(command: ffmpeg.FfmpegCommand): Promise<void>;
export declare function getVideoStreamInfo(filePath: string): Promise<ffmpeg.FfprobeStream | undefined>;
export declare function fileHasAudio(filePath: string): Promise<boolean>;
export declare const REGISTERED_FONTS: IDataObject;
export declare function getUserFonts(): IDataObject;
export declare function getAvailableFonts(): IDataObject;
export declare function validateFontKey(fontKey: string): void;
export declare function saveUserFont(fontKey: string, fontName: string, description: string, originalFilename: string, buffer: Buffer): {
fontKey: string;
path: string;
metadata: IDataObject | import("n8n-workflow").GenericValue | import("n8n-workflow").GenericValue[] | IDataObject[];
};
export declare function deleteUserFont(fontKey: string): boolean;
export { getFFmpegCapabilities, checkTransitionSupport } from './utils/ffmpegVersion';