Better defaults for lossy realtime VP8

Update GStreamer examples to use some better defaults for real time
video. This isn't perfect, but improves the default experience for users
a little bit.

Relates to #303
This commit is contained in:
Sean DuBois
2019-01-06 00:47:47 -08:00
parent 3cf06329da
commit 1b19e2ae00

View File

@@ -36,7 +36,7 @@ func CreatePipeline(codecName string, in chan<- media.RTCSample, pipelineSrc str
pipelineStr := "appsink name=appsink"
switch codecName {
case webrtc.VP8:
pipelineStr = pipelineSrc + " ! vp8enc ! " + pipelineStr
pipelineStr = pipelineSrc + " ! vp8enc error-resilient=partitions keyframe-max-dist=10 auto-alt-ref=true cpu-used=5 deadline=1 ! " + pipelineStr
case webrtc.VP9:
pipelineStr = pipelineSrc + " ! vp9enc ! " + pipelineStr
case webrtc.H264: