mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
vp8 set CBR and undershoot values.
This commit is contained in:
parent
b78132e6aa
commit
e98237a58c
@ -87,7 +87,7 @@ func New(desktop types.DesktopManager, config *config.Capture) *CaptureManagerCt
|
|||||||
"! video/x-raw,framerate=25/1 "+
|
"! video/x-raw,framerate=25/1 "+
|
||||||
"! videoconvert "+
|
"! videoconvert "+
|
||||||
"! queue "+
|
"! queue "+
|
||||||
"! vp8enc target-bitrate=%d cpu-used=16 threads=4 deadline=100000 error-resilient=partitions keyframe-max-dist=15 auto-alt-ref=true min-quantizer=6 max-quantizer=12 "+
|
"! vp8enc end-usage=cbr target-bitrate=%d cpu-used=16 threads=4 deadline=100000 undershoot=95 error-resilient=partitions keyframe-max-dist=15 auto-alt-ref=true min-quantizer=6 max-quantizer=12 "+
|
||||||
"! appsink name=appsink", config.Display, bitrate,
|
"! appsink name=appsink", config.Display, bitrate,
|
||||||
)
|
)
|
||||||
}),
|
}),
|
||||||
@ -105,7 +105,7 @@ func New(desktop types.DesktopManager, config *config.Capture) *CaptureManagerCt
|
|||||||
"! videoscale "+
|
"! videoscale "+
|
||||||
"! video/x-raw,width=%d,height=%d "+
|
"! video/x-raw,width=%d,height=%d "+
|
||||||
"! queue "+
|
"! queue "+
|
||||||
"! vp8enc target-bitrate=%d cpu-used=16 threads=4 deadline=100000 error-resilient=partitions keyframe-max-dist=15 auto-alt-ref=true min-quantizer=6 max-quantizer=12 "+
|
"! vp8enc end-usage=cbr target-bitrate=%d cpu-used=16 threads=4 deadline=100000 undershoot=95 error-resilient=partitions keyframe-max-dist=15 auto-alt-ref=true min-quantizer=6 max-quantizer=12 "+
|
||||||
"! appsink name=appsink", config.Display, width, height, bitrate,
|
"! appsink name=appsink", config.Display, width, height, bitrate,
|
||||||
)
|
)
|
||||||
}),
|
}),
|
||||||
@ -123,7 +123,7 @@ func New(desktop types.DesktopManager, config *config.Capture) *CaptureManagerCt
|
|||||||
"! videoscale "+
|
"! videoscale "+
|
||||||
"! video/x-raw,width=%d,height=%d "+
|
"! video/x-raw,width=%d,height=%d "+
|
||||||
"! queue "+
|
"! queue "+
|
||||||
"! vp8enc target-bitrate=%d cpu-used=16 threads=4 deadline=100000 error-resilient=partitions keyframe-max-dist=15 auto-alt-ref=true min-quantizer=12 max-quantizer=24 "+
|
"! vp8enc end-usage=cbr target-bitrate=%d cpu-used=16 threads=4 deadline=100000 undershoot=95 error-resilient=partitions keyframe-max-dist=15 auto-alt-ref=true min-quantizer=12 max-quantizer=24 "+
|
||||||
"! appsink name=appsink", config.Display, width, height, bitrate,
|
"! appsink name=appsink", config.Display, width, height, bitrate,
|
||||||
)
|
)
|
||||||
}),
|
}),
|
||||||
@ -141,7 +141,7 @@ func New(desktop types.DesktopManager, config *config.Capture) *CaptureManagerCt
|
|||||||
"! videoscale "+
|
"! videoscale "+
|
||||||
"! video/x-raw,width=%d,height=%d "+
|
"! video/x-raw,width=%d,height=%d "+
|
||||||
"! queue "+
|
"! queue "+
|
||||||
"! vp8enc target-bitrate=%d cpu-used=16 threads=4 deadline=100000 error-resilient=partitions keyframe-max-dist=15 auto-alt-ref=true min-quantizer=12 max-quantizer=24 "+
|
"! vp8enc end-usage=cbr target-bitrate=%d cpu-used=16 threads=4 deadline=100000 undershoot=95 error-resilient=partitions keyframe-max-dist=15 auto-alt-ref=true min-quantizer=12 max-quantizer=24 "+
|
||||||
"! appsink name=appsink", config.Display, width, height, bitrate,
|
"! appsink name=appsink", config.Display, width, height, bitrate,
|
||||||
)
|
)
|
||||||
}),
|
}),
|
||||||
|
Loading…
Reference in New Issue
Block a user