[orx-video-profiles] Add Webp profile
This commit is contained in:
@@ -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)
|
### Prores (large file, high quality video)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
10
orx-video-profiles/src/main/kotlin/WebpProfile.kt
Normal file
10
orx-video-profiles/src/main/kotlin/WebpProfile.kt
Normal 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")
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user