discord-exploits/modules/transcode-to-webm.go
Schmenn 2a9103af59 implemented core ffmpeg functions
[TODO] update README.md and clean code
2021-01-13 15:25:45 +01:00

17 lines
274 B
Go

package modules
import(
"os/exec"
)
//Transcode transcodes video to webm
func Transcode (input string, to string) string {
path := CheckForFFmpeg()
output := CreateName(to)
cmd := exec.Command(path, "-i", input, output)
err := cmd.Run()
Check(err)
return output
}