[orx-video-profiles] Add Webp profile

This commit is contained in:
Edwin Jakobs
2021-02-27 08:31:42 +01:00
parent 5bd5f51185
commit dfd99cdb90
2 changed files with 31 additions and 0 deletions

View File

@@ -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)
```

View File

@@ -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<String> {
return arrayOf("-vf", "vflip")
}
}