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