FFmpeg
No description provided
FFmpeg extends Duplex
Parameter | Type | Optional | Description |
---|---|---|---|
options | FFmpegOptions | ✅ | Options to initialize ffmpeg |
Properties
public process: any
Current FFmpeg process
public static sources: any
Supported FFmpeg sources.
public _reader: any
public _writer: any
Methods
public static addSource(source): boolean
Adds a new FFmpeg source.
Parameter | Type | Optional | Description |
---|---|---|---|
source | FFmpegSource | ❌ | FFmpeg source |
public static isLoaded(): boolean
Checks if FFmpeg is loaded.
public static removeSource(source): boolean
Removes a FFmpeg source.
Parameter | Type | Optional | Description |
---|---|---|---|
source | FFmpegSource | ❌ | FFmpeg source |
public static resolve(force?): ResolvedFFmpegSource
Resolves FFmpeg path. Throws an error if it fails to resolve.
Parameter | Type | Optional | Description |
---|---|---|---|
force | boolean | ✅ | if it should relocate the command |
### public static resolveSafe(force?): null | ResolvedFFmpegSource |
Resolves FFmpeg path safely. Returns null if it fails to resolve.
Parameter | Type | Optional | Description |
---|---|---|---|
force | boolean | ✅ | if it should relocate the command |
public static spawn(options?): ChildProcessWithoutNullStreams
Spawns ffmpeg process