Add PNGProfile and fill README (#134)

This commit is contained in:
Abe Pazos
2020-07-11 18:40:27 +02:00
committed by GitHub
parent a582d6550a
commit 867b9eea00
2 changed files with 117 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
package org.openrndr.extra.videoprofiles
import org.openrndr.ffmpeg.VideoWriterProfile
/**
* This profile requires specifying a file name like this
* outputFile = "frame-%05d.png"
* where `%05d` means "zero-padded five-digit frame number".
* The frame number format is not optional.
*/
class PNGProfile : VideoWriterProfile() {
override val fileExtension = "png"
override fun arguments(): Array<String> {
return arrayOf("-vf", "vflip")
}
}