Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG 🪲] about Video color #117

Open
QC2168 opened this issue Dec 29, 2024 · 3 comments
Open

[BUG 🪲] about Video color #117

QC2168 opened this issue Dec 29, 2024 · 3 comments

Comments

@QC2168
Copy link

QC2168 commented Dec 29, 2024

Describe the bug 🐛
The video after recording had an incorrect color problem. I tried other options in ColorFormat, but I couldn't solve it.
image

OS 🤖

  • Version: [window11]
  • Build[24H2 26100.2605]

My code

fn get_window(title:&str) -> Window {
        let window = Window::from_name(title).unwrap();
        println!("{:?}",window);
        window
    }
let capture_target = get_window("任务管理器");

let settings = Settings::new(
    // Item to capture
    capture_target,
    // Capture cursor settings
    cursor,
    // Draw border settings
    border,
    // The desired color format for the captured frame.
    ColorFormat::Rgba8,
    // Additional flags for the capture settings that will be passed to user defined `new` function.
    "Yea this works".to_string(),
);
let i=Capture::start_free_threaded(settings).expect("Screen capture failed");
@QC2168 QC2168 changed the title [BUG 🪲] [BUG 🪲] about Video color Dec 29, 2024
@QC2168
Copy link
Author

QC2168 commented Dec 29, 2024

This problem does not occur when recording full-screen

@QC2168
Copy link
Author

QC2168 commented Dec 29, 2024

#35 same

@NiiightmareXD
Copy link
Owner

Hey this happens when the window size changes or its a wrong resolution, the fix would require a bit of DirectX magic and its a duplicate of #35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants