Merge pull request #4 from varac/yuyv422

Use yuyv422 instead of yuv420p pixel format
This commit is contained in:
Benjamin Bädorf 2020-11-18 20:51:11 +01:00 committed by GitHub
commit 981d4258ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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())