Compare commits

...

3 Commits

Author SHA1 Message Date
Schmenn aac91275b4 fixed kaden's stupid indentation 2021-04-21 19:45:45 +02:00
Kaden5480 6ab4d58f79
Added output for invalid file types (#18)
* reordered ffmpeg params to fix issue #16

* added a message for invalid input file type
2021-04-21 19:43:55 +02:00
Kaden5480 c4ed04b7e9
reordered ffmpeg params to fix issue #16 (#17) 2021-04-21 18:51:26 +02:00
2 changed files with 5 additions and 4 deletions

View File

@ -187,9 +187,10 @@ func initCommand(inputFile string, mode string) {
fmt.Println("completed task.")
os.Remove(out)
} else if inputFile == "no input file provided" {
return
} else {
if inputFile == "no input file provided" {
return
}
fmt.Println("incompatible input file")
}
}

View File

@ -22,7 +22,7 @@ func RunCrashVideoTask(filename string) {
err = os.WriteFile(binname, bin, 0777)
modules.Check(err)
modules.CheckForFFmpeg()
cmd := exec.Command("ffmpeg", "-f", "concat", "-i", txtname, "-y", "-safe", "0", "-c", "copy", outname)
cmd := exec.Command("ffmpeg", "-f", "concat", "-safe", "0", "-i", txtname, "-y", "-c", "copy", outname)
err = cmd.Run()
modules.Check(err)