Skip to content

ProcessNotFound everytimeΒ #11

@tanishqmanuja

Description

@tanishqmanuja
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());
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions