mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-29 16:44:58 +05:00
16 lines
594 B
TypeScript
16 lines
594 B
TypeScript
/// <reference types="node" />
|
|
import type { Duplex, Readable } from "stream";
|
|
export interface FFmpegStreamOptions {
|
|
fmt?: string;
|
|
encoderArgs?: string[];
|
|
seek?: number;
|
|
skip?: boolean;
|
|
}
|
|
export declare function FFMPEG_ARGS_STRING(stream: string, fmt?: string): string[];
|
|
export declare function FFMPEG_ARGS_PIPED(fmt?: string): string[];
|
|
/**
|
|
* Creates FFmpeg stream
|
|
* @param stream The source stream
|
|
* @param options FFmpeg stream options
|
|
*/
|
|
export declare function createFFmpegStream(stream: Readable | Duplex | string, options?: FFmpegStreamOptions): Readable | Duplex;
|