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
master
Varac 2020-11-18 20:47:37 +01:00
parent 525aa0294b
commit 95385ff5d2
No known key found for this signature in database
GPG Key ID: 5465E77E7876ED04
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ fn record_screen(config: &mut Config, valid_screens: &Vec<String>) -> Result<Chi
"-vcodec",
"rawvideo",
"-pix_fmt",
"yuv420p",
"yuyv422",
"-f",
"v4l2",
config.output.as_str(),
@ -70,7 +70,7 @@ fn record_screen(config: &mut Config, valid_screens: &Vec<String>) -> Result<Chi
.args(&[
"--muxer=v4l2",
"--codec=rawvideo",
"--pixel-format=yuv420p",
"--pixel-format=yuyv422",
output_str.as_str(),
])
.stdin(Stdio::piped())