mirror of
https://github.com/Schmenn/discord-exploits.git
synced 2025-06-30 22:18:17 +00:00
17 lines
274 B
Go
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
|
|
}
|