mirror of
https://github.com/Schmenn/discord-exploits.git
synced 2025-01-03 16:25:40 +00:00
23 lines
383 B
Go
23 lines
383 B
Go
|
package modules
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"os/exec"
|
||
|
)
|
||
|
|
||
|
//Transcode transcodes videos and images
|
||
|
func Transcode(input string, to string) string {
|
||
|
path := CheckForFFmpeg()
|
||
|
output := CreateName(to)
|
||
|
|
||
|
out, err := exec.Command(path, "-i", input, output).CombinedOutput()
|
||
|
|
||
|
Check(err)
|
||
|
|
||
|
fmt.Println("temporarily saving transcoded file to " + output)
|
||
|
|
||
|
fmt.Println(string(out))
|
||
|
|
||
|
return output
|
||
|
}
|