mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
always start pipelines with !.
This commit is contained in:
parent
d8c031af4d
commit
051ab9f426
@ -73,8 +73,7 @@ func New(desktop types.DesktopManager, config *config.Capture) *CaptureManagerCt
|
|||||||
|
|
||||||
return fmt.Sprintf(
|
return fmt.Sprintf(
|
||||||
"ximagesrc display-name=%s show-pointer=false use-damage=false "+
|
"ximagesrc display-name=%s show-pointer=false use-damage=false "+
|
||||||
"! %s "+
|
"%s ! appsink name=appsink", config.Display, pipeline,
|
||||||
"! appsink name=appsink", config.Display, pipeline,
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ func (config *VideoConfig) GetPipeline(screen ScreenSize) (string, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// get fps pipeline
|
// get fps pipeline
|
||||||
fpsPipeline := "video/x-raw ! videoconvert ! queue"
|
fpsPipeline := "! video/x-raw ! videoconvert ! queue"
|
||||||
if config.Fps != "" {
|
if config.Fps != "" {
|
||||||
var err error
|
var err error
|
||||||
val, err := gval.Evaluate(config.Fps, values, language...)
|
val, err := gval.Evaluate(config.Fps, values, language...)
|
||||||
@ -100,7 +100,7 @@ func (config *VideoConfig) GetPipeline(screen ScreenSize) (string, error) {
|
|||||||
|
|
||||||
if val != nil {
|
if val != nil {
|
||||||
// TODO: To fraction.
|
// TODO: To fraction.
|
||||||
fpsPipeline = fmt.Sprintf("video/x-raw,framerate=%v ! videoconvert ! queue", val)
|
fpsPipeline = fmt.Sprintf("! video/x-raw,framerate=%v ! videoconvert ! queue", val)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user