ffmpeg-stream-manager
Version:
🎥 A powerful TypeScript library for managing multiple simultaneous RTMP streams using FFmpeg. Perfect for streaming to platforms like YouTube Live, Twitch, and others.
24 lines • 903 B
TypeScript
import { StreamConfig } from '../types';
export declare class FFmpegCommandBuilder {
static buildCommand(config: StreamConfig): string[];
private static calculateBufsize;
static buildYouTubeRTMPUrl(streamKey: string, server?: string): string;
static validateConfig(config: StreamConfig): void;
/**
* Creates a temporary concat file for FFmpeg to handle multiple input files
*/
private static createConcatFile;
/**
* Cleans up temporary concat files
*/
static cleanupConcatFile(concatFilePath: string): void;
/**
* Validates that all files in the array have compatible formats
*/
static validateFileCompatibility(inputPaths: string[], inputType: 'video' | 'audio'): void;
/**
* Shuffles array for random playlist mode
*/
static shuffleArray<T>(array: T[]): T[];
}
//# sourceMappingURL=ffmpeg-command-builder.d.ts.map