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

ProcessNotFound everytime #11

Open
tanishqmanuja opened this issue Feb 3, 2024 · 2 comments
Open

ProcessNotFound everytime #11

tanishqmanuja opened this issue Feb 3, 2024 · 2 comments

Comments

@tanishqmanuja
Copy link

use obs_client::Capture;

fn main() {
    simple_logger::SimpleLogger::new()
        .with_level(log::LevelFilter::Warn)
        .init()
        .unwrap();

    let window_name = "VALORANT";
    let mut capture = Capture::new(window_name);
    if let Err(error) = capture.try_launch() {
        println!("Failed to launch the capture: {:?} {:?}", window_name,error);
        return;
    }

    let mut fps = fps_counter::FPSCounter::new();
    loop {
        let (buffer, (width, height)) = capture.capture_frame::<u8>().unwrap();
        println!("{:?} | {:?}x{:?} | {:?}", fps.tick(), width, height, buffer.len());
    }
}
@JeffVu-1
Copy link

JeffVu-1 commented Aug 9, 2024

use obs_client::Capture;

fn main() {
    simple_logger::SimpleLogger::new()
        .with_level(log::LevelFilter::Warn)
        .init()
        .unwrap();

    let window_name = "VALORANT";
    let mut capture = Capture::new(window_name);
    if let Err(error) = capture.try_launch() {
        println!("Failed to launch the capture: {:?} {:?}", window_name,error);
        return;
    }

    let mut fps = fps_counter::FPSCounter::new();
    loop {
        let (buffer, (width, height)) = capture.capture_frame::<u8>().unwrap();
        println!("{:?} | {:?}x{:?} | {:?}", fps.tick(), width, height, buffer.len());
    }
}

did you ever fix this issue? I'm running this in c++ and I'm having the same issue with process not found

@tanishqmanuja
Copy link
Author

Nope, i switched to another library that uses dxgi

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