Upgrade to go 1.20 (#30)

* upgrade dependencies.

* videoscale element to nearest neighbor.
This commit is contained in:
Miroslav Šedivý
2023-02-26 21:57:02 +01:00
committed by GitHub
parent a4a3ff79ad
commit 977662affe
6 changed files with 111 additions and 189 deletions

View File

@ -160,7 +160,8 @@ func (config *VideoConfig) GetPipeline(screen ScreenSize) (string, error) {
return "", err
}
scalePipeline = fmt.Sprintf("! videoscale ! capsfilter caps=video/x-raw,width=%d,height=%d name=resolution ! queue", w, h)
// element videoscale parameter method to 0 meaning nearest neighbor
scalePipeline = fmt.Sprintf("! videoscale method=0 ! capsfilter caps=video/x-raw,width=%d,height=%d name=resolution ! queue", w, h)
}
// get encoder pipeline