vp9enc add properties from vp8enc.

This commit is contained in:
Miroslav Šedivý 2021-02-04 13:52:32 +01:00
parent 7e7a0c0617
commit b488f01b16

View File

@ -86,7 +86,7 @@ func CreateAppPipeline(codecRTP codec.RTPCodec, pipelineDevice string, pipelineS
return nil, err return nil, err
} }
pipelineStr = fmt.Sprintf(videoSrc + "vp9enc" + appSink, pipelineDevice) pipelineStr = fmt.Sprintf(videoSrc + "vp9enc cpu-used=16 threads=4 deadline=1 keyframe-max-dist=15 static-threshold=20" + appSink, pipelineDevice)
case "h264": case "h264":
var err error var err error
if err = CheckPlugins([]string{"ximagesrc"}); err != nil { if err = CheckPlugins([]string{"ximagesrc"}); err != nil {