fixed usage
This commit is contained in:
parent
d2e7e11e59
commit
25cd72190d
7
main.go
7
main.go
@ -11,12 +11,13 @@ import (
|
||||
// - Interactive UI
|
||||
// - Check compatability with other image types (PNG etc)
|
||||
// - better ffmpeg bindings (go package?)
|
||||
// - Update README
|
||||
|
||||
const MAX_SIZE = 1000000
|
||||
|
||||
func main() {
|
||||
if len(os.Args) < 6 {
|
||||
fmt.Println("Usage: go run main.go <source-file> <number-of-copies> <shit-size> <iterations> <chance-to-random % (0-100)>")
|
||||
fmt.Println("Usage: ./glitch.go <source-file> <number-of-copies> <shit-size> <iterations> <chance-to-random % (0-100)>")
|
||||
return
|
||||
}
|
||||
|
||||
@ -51,8 +52,10 @@ func main() {
|
||||
|
||||
fmt.Fprintf(os.Stdout, "Generating:\n %d copies of %s\n %d random bytes of data\n %d interations(s)\n Chance to random %d%%\n\n",
|
||||
numCopies, sourceFile, shitSize, iterations, chanceToRandom)
|
||||
|
||||
makeOutputDir()
|
||||
defer clearOutputDir()
|
||||
|
||||
generateGlitchedSequence(sourceFile, numCopies, shitSize, iterations, int32(chanceToRandom))
|
||||
ffmpegGenerateMP4()
|
||||
clearOutputDir()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user