diff --git a/internal/capture/manager.go b/internal/capture/manager.go index 6b6c8b5d..c59702e8 100644 --- a/internal/capture/manager.go +++ b/internal/capture/manager.go @@ -73,8 +73,7 @@ func New(desktop types.DesktopManager, config *config.Capture) *CaptureManagerCt return fmt.Sprintf( "ximagesrc display-name=%s show-pointer=false use-damage=false "+ - "! %s "+ - "! appsink name=appsink", config.Display, pipeline, + "%s ! appsink name=appsink", config.Display, pipeline, ) } diff --git a/internal/types/capture.go b/internal/types/capture.go index 4cf3c337..b80ec2fc 100644 --- a/internal/types/capture.go +++ b/internal/types/capture.go @@ -90,7 +90,7 @@ func (config *VideoConfig) GetPipeline(screen ScreenSize) (string, error) { } // get fps pipeline - fpsPipeline := "video/x-raw ! videoconvert ! queue" + fpsPipeline := "! video/x-raw ! videoconvert ! queue" if config.Fps != "" { var err error val, err := gval.Evaluate(config.Fps, values, language...) @@ -100,7 +100,7 @@ func (config *VideoConfig) GetPipeline(screen ScreenSize) (string, error) { if val != nil { // 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) } }