Use yuyv422 instead of yuv420p pixel format
With yuv420p as output pixel format I sometime get a garbled screencast video, yuyv422 fixes it for me. See https://github.com/b12f/wlstreamer/issues/2 for more details Related to #2
This commit is contained in:
parent
525aa0294b
commit
95385ff5d2
|
@ -41,7 +41,7 @@ fn record_screen(config: &mut Config, valid_screens: &Vec<String>) -> Result<Chi
|
||||||
"-vcodec",
|
"-vcodec",
|
||||||
"rawvideo",
|
"rawvideo",
|
||||||
"-pix_fmt",
|
"-pix_fmt",
|
||||||
"yuv420p",
|
"yuyv422",
|
||||||
"-f",
|
"-f",
|
||||||
"v4l2",
|
"v4l2",
|
||||||
config.output.as_str(),
|
config.output.as_str(),
|
||||||
|
@ -70,7 +70,7 @@ fn record_screen(config: &mut Config, valid_screens: &Vec<String>) -> Result<Chi
|
||||||
.args(&[
|
.args(&[
|
||||||
"--muxer=v4l2",
|
"--muxer=v4l2",
|
||||||
"--codec=rawvideo",
|
"--codec=rawvideo",
|
||||||
"--pixel-format=yuv420p",
|
"--pixel-format=yuyv422",
|
||||||
output_str.as_str(),
|
output_str.as_str(),
|
||||||
])
|
])
|
||||||
.stdin(Stdio::piped())
|
.stdin(Stdio::piped())
|
||||||
|
|
Loading…
Reference in a new issue