package org.openrndr.extra.videoprofiles import org.openrndr.ffmpeg.ScreenRecorder import org.openrndr.ffmpeg.VideoWriterProfile class WebpProfile : VideoWriterProfile() { override val fileExtension = "webp" override fun arguments(): Array { return arrayOf("-vf", "vflip") } } /** * Configure a webp video profile */ fun ScreenRecorder.webp(configure : WebpProfile.() -> Unit) { profile = WebpProfile().apply(configure) }