mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-12-02 01:54:58 +05:00
17 lines
594 B
TypeScript
17 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;
|