mirror of
https://github.com/Schmenn/discord-exploits.git
synced 2025-01-03 16:05:49 +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
|
||
|
}
|