mirror of https://bitbucket.org/ausocean/av.git
revid: setting up mts encoder with pid based on media type
This commit is contained in:
parent
76765c8a20
commit
9099082609
|
@ -163,7 +163,7 @@ func (r *Revid) reset(config Config) error {
|
||||||
|
|
||||||
err = r.setupPipeline(
|
err = r.setupPipeline(
|
||||||
func(dst io.WriteCloser, fps, medType int) (io.WriteCloser, error) {
|
func(dst io.WriteCloser, fps, medType int) (io.WriteCloser, error) {
|
||||||
e := mts.NewEncoder(dst, float64(fps), mts.Video)
|
e := mts.NewEncoder(dst, float64(fps), medType)
|
||||||
return e, nil
|
return e, nil
|
||||||
},
|
},
|
||||||
func(dst io.WriteCloser, fps int) (io.WriteCloser, error) {
|
func(dst io.WriteCloser, fps int) (io.WriteCloser, error) {
|
||||||
|
|
Loading…
Reference in New Issue