VideoWriter

class VideoWriter

Constructors

Link copied to clipboard
fun VideoWriter()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun advisedSize(width: Int, height: Int): Pair<Int, Int>
Link copied to clipboard
fun frame(frame: ColorBuffer): VideoWriter

Feed a frame to the video encoder

Link copied to clipboard
fun frameRate(frameRate: Int): VideoWriter

Sets the framerate of the output video

Link copied to clipboard
fun height(): Int
Link copied to clipboard
fun output(filename: String): VideoWriter

Set the output file, should be set before calling start()

Link copied to clipboard
fun profile(profile: VideoWriterProfile): VideoWriter
Link copied to clipboard
fun size(width: Int, height: Int): VideoWriter
Link copied to clipboard
fun start(): VideoWriter

Start writing to the video file

Link copied to clipboard
fun started(): Boolean

Returns true if the video process was started

Link copied to clipboard
fun stop(): VideoWriter

Stop writing to the video file. This closes the video, after calling stop() it is no longer possible to provide new frames.

Link copied to clipboard
fun width(): Int

Properties

Link copied to clipboard
var inputFormat: String

Sources

Link copied to clipboard