mirror of
https://github.com/pion/webrtc.git
synced 2025-10-28 01:31:33 +08:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user