mirror of
https://github.com/livepeer/lpms
synced 2026-04-22 15:57:25 +08:00
Update transcoder interface, remove unused code.
This commit is contained in:
@@ -3,11 +3,9 @@ package transcoder
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"math/rand"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"github.com/golang/glog"
|
||||
"github.com/livepeer/lpms/ffmpeg"
|
||||
@@ -45,12 +43,3 @@ func (t *FFMpegSegmentTranscoder) Transcode(fname string) ([][]byte, error) {
|
||||
|
||||
return dout, nil
|
||||
}
|
||||
|
||||
func randName() string {
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
x := make([]byte, 10, 10)
|
||||
for i := 0; i < len(x); i++ {
|
||||
x[i] = byte(rand.Uint32())
|
||||
}
|
||||
return fmt.Sprintf("%x.ts", x)
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
package transcoder
|
||||
|
||||
type Transcoder interface {
|
||||
Transcode(d []byte) ([][]byte, error)
|
||||
Transcode(fname string) ([][]byte, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user