reordered ffmpeg params to fix issue #16 (#17)

This commit is contained in:
Kaden5480 2021-04-21 17:51:26 +01:00 committed by GitHub
parent 6a227f605e
commit c4ed04b7e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@ func RunCrashVideoTask(filename string) {
err = os.WriteFile(binname, bin, 0777) err = os.WriteFile(binname, bin, 0777)
modules.Check(err) modules.Check(err)
modules.CheckForFFmpeg() 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() err = cmd.Run()
modules.Check(err) modules.Check(err)