discord-exploits/modules/transcode-to-webm.go

17 lines
274 B
Go
Raw Normal View History

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
}