Skip to content

Commit

Permalink
[orx-video-profiles] Add Webp profile
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinRNDR committed Feb 27, 2021
1 parent 5bd5f51 commit dfd99cd
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
21 changes: 21 additions & 0 deletions orx-video-profiles/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

```
Expand Down
10 changes: 10 additions & 0 deletions orx-video-profiles/src/main/kotlin/WebpProfile.kt
Original file line number Diff line number Diff line change
@@ -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")
}
}

0 comments on commit dfd99cd

Please sign in to comment.