Files
orx/orx-jvm/orx-video-profiles/src/main/kotlin/WebpProfile.kt

20 lines
460 B
Kotlin

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<String> {
return arrayOf("-vf", "vflip")
}
}
/**
* Configure a webp video profile
*/
fun ScreenRecorder.webp(configure : WebpProfile.() -> Unit) {
profile = WebpProfile().apply(configure)
}