diff --git a/orx-video-profiles/README.md b/orx-video-profiles/README.md index c40db764..6143ed3f 100644 --- a/orx-video-profiles/README.md +++ b/orx-video-profiles/README.md @@ -57,6 +57,27 @@ fun main() = application { } ``` +### Animated Webp + +``` +import org.openrndr.application +import org.openrndr.color.ColorRGBa +import org.openrndr.extra.videoprofiles.* +import org.openrndr.ffmpeg.ScreenRecorder + +fun main() = application { + program { + extend(ScreenRecorder()) { + profile = WebpProfile() + } + extend { + drawer.clear(ColorRGBa.GREEN) + } + } +} +``` + + ### Prores (large file, high quality video) ``` diff --git a/orx-video-profiles/src/main/kotlin/WebpProfile.kt b/orx-video-profiles/src/main/kotlin/WebpProfile.kt new file mode 100644 index 00000000..d3d941c2 --- /dev/null +++ b/orx-video-profiles/src/main/kotlin/WebpProfile.kt @@ -0,0 +1,10 @@ +package org.openrndr.extra.videoprofiles +import org.openrndr.ffmpeg.VideoWriterProfile + +class WebpProfile : VideoWriterProfile() { + override val fileExtension = "webp" + + override fun arguments(): Array { + return arrayOf("-vf", "vflip") + } +}