@bililive-tools/manager
Version:
Batch scheduling recorders
30 lines (29 loc) • 1.63 kB
TypeScript
import ffmpeg from "@renmu/fluent-ffmpeg";
import { RecorderProvider } from "./manager.js";
import { SerializedRecorder, Recorder, RecordHandle } from "./recorder.js";
import { AnyObject } from "./utils.js";
import utils from "./utils.js";
export * from "./common.js";
export * from "./recorder.js";
export * from "./manager.js";
export * from "./cache.js";
export * from "./downloader/FFmpegDownloader.js";
export { createDownloader } from "./downloader/index.js";
export { checkTitleKeywordsWhileRecording, checkTitleKeywordsBeforeRecord } from "./utils.js";
export { utils };
/**
* 提供一些 utils
*/
export declare function defaultFromJSON<E extends AnyObject>(provider: RecorderProvider<E>, json: SerializedRecorder<E>): Recorder<E>;
export declare function defaultToJSON<E extends AnyObject>(provider: RecorderProvider<E>, recorder: Recorder<E>): SerializedRecorder<E>;
export declare function genRecorderUUID(): Recorder["id"];
export declare function genRecordUUID(): RecordHandle["id"];
export declare function setFFMPEGPath(newPath: string): void;
export declare const createFFMPEGBuilder: (...args: Parameters<typeof ffmpeg>) => ffmpeg.FfmpegCommand;
export declare function setMesioPath(newPath: string): void;
export declare function getMesioPath(): string;
export declare function setBililivePath(newPath: string): void;
export declare function getBililivePath(): string;
export declare function getDataFolderPath<E extends AnyObject>(provider: RecorderProvider<E>): string;
export type VideoFormat = "auto" | "ts" | "mkv" | "flv" | "mp4" | "m4s";
export type TrueVideoFormat = Exclude<VideoFormat, "auto">;