test path and object

This commit is contained in:
jb-alvarado 2022-10-14 13:23:10 +02:00
parent 53c0fbd5d3
commit b18692863d

View File

@ -14,6 +14,7 @@ use ffplayout_lib::{
fn video_audio_input() {
let mut config = PlayoutConfig::new(Some("../assets/ffplayout.yml".to_string()));
config.out.mode = Stream;
config.processing.add_logo = true;
let logo_path = fs::canonicalize("./assets/logo.png").unwrap();
config.processing.logo = logo_path.to_string_lossy().to_string();
@ -21,8 +22,12 @@ fn video_audio_input() {
println!("--is file {:?}", logo_path.is_file());
let media_obj = Media::new(0, "./assets/with_audio.mp4", true);
println!("{media_obj:?}");
let media = gen_source(&config, media_obj, &Arc::new(Mutex::new(vec![])));
println!("{:?}", media.filter);
println!("category {:?}", media.category);
let test_filter_cmd = Some(
vec_strings![
"-filter_complex",