refactor ffmpeg, download styling
This commit is contained in:
@@ -2,7 +2,6 @@ package ytdlp
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"os/exec"
|
||||
"strings"
|
||||
)
|
||||
@@ -25,11 +24,3 @@ func Run(args ...string) ([]byte, []byte, error) {
|
||||
log.Infoln("stderr:", stderr.String())
|
||||
return stdout.Bytes(), stderr.Bytes(), err
|
||||
}
|
||||
|
||||
func Clip(src, dst string, from, to float64) error {
|
||||
_, _, err := Run("-i", src,
|
||||
"-ss", fmt.Sprintf("%f", from),
|
||||
"-to", fmt.Sprintf("%f", to),
|
||||
dst)
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user