FFmpeg

expect object FFmpeg

Static facade for global FFmpeg state: version info, build flags and capability probing.

Use it to feature-detect the bound FFmpeg before opening a codec or a filter, because builds differ in what they contain. A system FFmpeg may or may not have libx264; KiteFFmpeg's vendored LGPL profile never does, and asking for it there throws FFmpegException from MediaSink.addVideoEncoder.

actual object FFmpeg

Static facade for global FFmpeg state: version info, build flags and capability probing.

Use it to feature-detect the bound FFmpeg before opening a codec or a filter, because builds differ in what they contain. A system FFmpeg may or may not have libx264; KiteFFmpeg's vendored LGPL profile never does, and asking for it there throws FFmpegException from MediaSink.addVideoEncoder.

actual object FFmpeg

Static facade for global FFmpeg state: version info, build flags and capability probing.

Use it to feature-detect the bound FFmpeg before opening a codec or a filter, because builds differ in what they contain. A system FFmpeg may or may not have libx264; KiteFFmpeg's vendored LGPL profile never does, and asking for it there throws FFmpegException from MediaSink.addVideoEncoder.

actual object FFmpeg

Static facade for global FFmpeg state: version info, build flags and capability probing.

Use it to feature-detect the bound FFmpeg before opening a codec or a filter, because builds differ in what they contain. A system FFmpeg may or may not have libx264; KiteFFmpeg's vendored LGPL profile never does, and asking for it there throws FFmpegException from MediaSink.addVideoEncoder.

actual object FFmpeg

The real web backend, over the generated binding.

Every member requires KiteFFmpegWeb.load to have completed. That is not a quirk of this object: the codec is a separate wasm module and there is nothing to ask before it is instantiated.

Properties

Link copied to clipboard

Comma-separated configure flags the bound FFmpeg was built with.

Comma-separated configure flags the bound FFmpeg was built with.

Comma-separated configure flags the bound FFmpeg was built with.

Comma-separated configure flags the bound FFmpeg was built with.

Comma-separated configure flags the bound FFmpeg was built with.

Link copied to clipboard

What FFmpeg this build expected and what it actually got.

What FFmpeg this build expected and what it actually got.

What FFmpeg this build expected and what it actually got.

What FFmpeg this build expected and what it actually got.

What FFmpeg this build expected and what it actually got.

Link copied to clipboard
expect val versions: Versions

Per-library version triplets, useful for compatibility checks.

actual val versions: Versions

Per-library version triplets, useful for compatibility checks.

actual val versions: Versions

Per-library version triplets, useful for compatibility checks.

actual val versions: Versions

Per-library version triplets, useful for compatibility checks.

actual val versions: Versions

Per-library version triplets, useful for compatibility checks.

Functions

Link copied to clipboard
expect fun codecOf(decoder: DecoderId): CodecId?

The format decoder reads, or null when the bound FFmpeg has no such decoder.

expect fun codecOf(encoder: EncoderId): CodecId?

The format encoder produces, or null when the bound FFmpeg has no such encoder.

actual fun codecOf(decoder: DecoderId): CodecId?

The format decoder reads, or null when the bound FFmpeg has no such decoder.

actual fun codecOf(encoder: EncoderId): CodecId?

The format encoder produces, or null when the bound FFmpeg has no such encoder.

actual fun codecOf(decoder: DecoderId): CodecId?

The format decoder reads, or null when the bound FFmpeg has no such decoder.

actual fun codecOf(encoder: EncoderId): CodecId?

The format encoder produces, or null when the bound FFmpeg has no such encoder.

actual fun codecOf(decoder: DecoderId): CodecId?

The format decoder reads, or null when the bound FFmpeg has no such decoder.

actual fun codecOf(encoder: EncoderId): CodecId?

The format encoder produces, or null when the bound FFmpeg has no such encoder.

actual fun codecOf(decoder: DecoderId): CodecId?

The format decoder reads, or null when the bound FFmpeg has no such decoder.

actual fun codecOf(encoder: EncoderId): CodecId?

The format encoder produces, or null when the bound FFmpeg has no such encoder.

Link copied to clipboard

Every component of kind the bound FFmpeg links, by FFmpeg's own name, sorted.

Every component of kind the bound FFmpeg links, by FFmpeg's own name, sorted.

Every component of kind the bound FFmpeg links, by FFmpeg's own name, sorted.

Every component of kind the bound FFmpeg links, by FFmpeg's own name, sorted.

Every component of kind the bound FFmpeg links, by FFmpeg's own name, sorted.

Link copied to clipboard

Creates a runtime that reads media whose bytes may answer later, from an AsyncMediaByteSource. The caller owns the runtime and closes it.

Creates a runtime that reads media whose bytes may answer later, from an AsyncMediaByteSource. The caller owns the runtime and closes it.

Creates a runtime that reads media whose bytes may answer later, from an AsyncMediaByteSource. The caller owns the runtime and closes it.

Creates a runtime that reads media whose bytes may answer later, from an AsyncMediaByteSource. The caller owns the runtime and closes it.

Creates a runtime that reads media whose bytes may answer later, from an AsyncMediaByteSource. The caller owns the runtime and closes it.

Link copied to clipboard
expect fun decodersFor(codec: CodecId): List<DecoderId>

Every decoder the bound FFmpeg has for codec, the one FFmpeg picks by default first.

actual fun decodersFor(codec: CodecId): List<DecoderId>

Every decoder the bound FFmpeg has for codec, the one FFmpeg picks by default first.

actual fun decodersFor(codec: CodecId): List<DecoderId>

Every decoder the bound FFmpeg has for codec, the one FFmpeg picks by default first.

actual fun decodersFor(codec: CodecId): List<DecoderId>

Every decoder the bound FFmpeg has for codec, the one FFmpeg picks by default first.

actual fun decodersFor(codec: CodecId): List<DecoderId>

Every decoder the bound FFmpeg has for codec, the one FFmpeg picks by default first.

Link copied to clipboard
expect fun encodersFor(codec: CodecId): List<EncoderId>

Every encoder the bound FFmpeg has for codec, the one FFmpeg picks by default first; empty when it has none. The default is what an encoder spec with no VideoEncoderSpec.encoder gets.

actual fun encodersFor(codec: CodecId): List<EncoderId>

Every encoder the bound FFmpeg has for codec, the one FFmpeg picks by default first; empty when it has none. The default is what an encoder spec with no VideoEncoderSpec.encoder gets.

actual fun encodersFor(codec: CodecId): List<EncoderId>

Every encoder the bound FFmpeg has for codec, the one FFmpeg picks by default first; empty when it has none. The default is what an encoder spec with no VideoEncoderSpec.encoder gets.

actual fun encodersFor(codec: CodecId): List<EncoderId>

Every encoder the bound FFmpeg has for codec, the one FFmpeg picks by default first; empty when it has none. The default is what an encoder spec with no VideoEncoderSpec.encoder gets.

actual fun encodersFor(codec: CodecId): List<EncoderId>

Every encoder the bound FFmpeg has for codec, the one FFmpeg picks by default first; empty when it has none. The default is what an encoder spec with no VideoEncoderSpec.encoder gets.

Link copied to clipboard
expect fun hasDecoder(name: String): Boolean

Whether the bound FFmpeg has a given decoder compiled in.

actual fun hasDecoder(name: String): Boolean

Whether the bound FFmpeg has a given decoder compiled in.

actual fun hasDecoder(name: String): Boolean

Whether the bound FFmpeg has a given decoder compiled in.

actual fun hasDecoder(name: String): Boolean

Whether the bound FFmpeg has a given decoder compiled in.

actual fun hasDecoder(name: String): Boolean

Whether the bound FFmpeg has a given decoder compiled in.

Link copied to clipboard
expect fun hasEncoder(name: String): Boolean

Whether the bound FFmpeg has a given encoder compiled in. Pass an FFmpeg codec name.

actual fun hasEncoder(name: String): Boolean

Whether the bound FFmpeg has a given encoder compiled in. Pass an FFmpeg codec name.

actual fun hasEncoder(name: String): Boolean

Whether the bound FFmpeg has a given encoder compiled in. Pass an FFmpeg codec name.

actual fun hasEncoder(name: String): Boolean

Whether the bound FFmpeg has a given encoder compiled in. Pass an FFmpeg codec name.

actual fun hasEncoder(name: String): Boolean

Whether the bound FFmpeg has a given encoder compiled in. Pass an FFmpeg codec name.

Link copied to clipboard
expect fun hasFilter(name: String): Boolean

Whether a FilterGraph here can use the given filter: it is compiled into the bound FFmpeg, on a backend that builds filter graphs. The web backends build none, so there it is false.

actual fun hasFilter(name: String): Boolean

Whether a FilterGraph here can use the given filter: it is compiled into the bound FFmpeg, on a backend that builds filter graphs. The web backends build none, so there it is false.

actual fun hasFilter(name: String): Boolean

Whether a FilterGraph here can use the given filter: it is compiled into the bound FFmpeg, on a backend that builds filter graphs. The web backends build none, so there it is false.

actual fun hasFilter(name: String): Boolean

Whether a FilterGraph here can use the given filter: it is compiled into the bound FFmpeg, on a backend that builds filter graphs. The web backends build none, so there it is false.

actual fun hasFilter(name: String): Boolean

Whether a FilterGraph here can use the given filter: it is compiled into the bound FFmpeg, on a backend that builds filter graphs. The web backends build none, so there it is false.

Link copied to clipboard
expect fun setLogSink(level: FFmpegLogLevel = FFmpegLogLevel.Warning, sink: FFmpegLogSink?)

Routes FFmpeg's own log lines at level and more severe to sink. A null sink, the default, drops every line, so FFmpeg prints nothing.

actual fun setLogSink(level: FFmpegLogLevel, sink: FFmpegLogSink?)

Routes FFmpeg's own log lines at level and more severe to sink. A null sink, the default, drops every line, so FFmpeg prints nothing.

actual fun setLogSink(level: FFmpegLogLevel, sink: FFmpegLogSink?)

Routes FFmpeg's own log lines at level and more severe to sink. A null sink, the default, drops every line, so FFmpeg prints nothing.

actual fun setLogSink(level: FFmpegLogLevel, sink: FFmpegLogSink?)

Routes FFmpeg's own log lines at level and more severe to sink. A null sink, the default, drops every line, so FFmpeg prints nothing.

actual fun setLogSink(level: FFmpegLogLevel, sink: FFmpegLogSink?)

Routes FFmpeg's own log lines at level and more severe to sink. A null sink, the default, drops every line, so FFmpeg prints nothing.