mirror of
https://github.com/m1k1o/neko.git
synced 2025-04-29 10:26:22 +02:00
fix legacy capture pipeline.
This commit is contained in:
parent
5c91621223
commit
063fa8821f
2 changed files with 4 additions and 5 deletions
|
@ -359,7 +359,6 @@ func (s *Capture) Set() {
|
|||
"min-quantizer": "4",
|
||||
"max-quantizer": "20",
|
||||
},
|
||||
ShowPointer: viper.GetBool("legacy"),
|
||||
},
|
||||
}
|
||||
s.VideoIDs = []string{"main"}
|
||||
|
@ -469,11 +468,11 @@ func (s *Capture) SetV2() {
|
|||
} else {
|
||||
s.VideoPipelines = map[string]types.VideoConfig{
|
||||
"main": {
|
||||
GstPipeline: pipeline,
|
||||
// Hacky way to disable pointer.
|
||||
GstPipeline: strings.Replace(pipeline, "show-pointer=true", "show-pointer=false", 1),
|
||||
},
|
||||
"legacy": {
|
||||
GstPipeline: pipeline,
|
||||
ShowPointer: true,
|
||||
},
|
||||
}
|
||||
// we do not add legacy to VideoIDs so that its ignored by bandwidth estimator
|
||||
|
|
|
@ -54,7 +54,7 @@ func NewBroadcastPipeline(device string, display string, pipelineSrc string, url
|
|||
}
|
||||
|
||||
func NewVideoPipeline(rtpCodec codec.RTPCodec, display string, pipelineSrc string, fps int16, bitrate uint, hwenc HwEnc) (string, error) {
|
||||
pipelineStr := " ! appsink name=appsinkvideo"
|
||||
pipelineStr := " ! appsink name=appsink"
|
||||
|
||||
// if using custom pipeline
|
||||
if pipelineSrc != "" {
|
||||
|
@ -182,7 +182,7 @@ func NewVideoPipeline(rtpCodec codec.RTPCodec, display string, pipelineSrc strin
|
|||
}
|
||||
|
||||
func NewAudioPipeline(rtpCodec codec.RTPCodec, device string, pipelineSrc string, bitrate uint) (string, error) {
|
||||
pipelineStr := " ! appsink name=appsinkaudio"
|
||||
pipelineStr := " ! appsink name=appsink"
|
||||
|
||||
// if using custom pipeline
|
||||
if pipelineSrc != "" {
|
||||
|
|
Loading…
Add table
Reference in a new issue