mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
Upgrade to go 1.20 (#30)
* upgrade dependencies. * videoscale element to nearest neighbor.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user