ffplayout/src/main.rs
2022-03-24 17:21:38 +01:00

28 lines
485 B
Rust

extern crate log;
extern crate simplelog;
mod filter;
mod input;
mod output;
mod utils;
use simplelog::*;
use tokio::runtime::Runtime;
use crate::output::play;
use crate::utils::{init_config, init_logging, validate_ffmpeg};
fn main() {
init_config();
let runtime = Runtime::new().unwrap();
let rt_handle = runtime.handle();
let logging = init_logging(rt_handle.clone());
CombinedLogger::init(logging).unwrap();
validate_ffmpeg();
play(rt_handle);
}