ffmpeg-screen-recorder 1.0.18

This program is a gadget which helps you use FFmpeg to record your screen on Linux. The video record can be saved as a file, or be streamed via RTMP protocol.
Documentation
//! # FFmpeg Screen Recorder
//!
//! This program is a gadget which helps you use FFmpeg to record your screen on Linux. The video record can be saved as a file, or be streamed via RTMP protocol.

mod position;
mod resolution;
mod window_info;

use std::fs;

pub use position::*;
pub use resolution::*;
pub use window_info::*;

#[inline]
pub fn try_delete_file(file_path: &str) {
    if fs::remove_file(file_path).is_err() {}
}

#[inline]
pub fn get_number_of_processors() -> usize {
    num_cpus::get()
}