diff --git a/lib/src/utils/json_validate.rs b/lib/src/utils/json_validate.rs index 99af83ed..1e9736ea 100644 --- a/lib/src/utils/json_validate.rs +++ b/lib/src/utils/json_validate.rs @@ -11,7 +11,7 @@ use simplelog::*; use crate::utils::{ format_log_line, loop_image, sec_to_time, seek_and_length, valid_source, vec_strings, - JsonPlaylist, Media, PlayoutConfig, FFMPEG_IGNORE_ERRORS, IMAGE_FORMAT, + JsonPlaylist, Media, OutputMode::Null, PlayoutConfig, FFMPEG_IGNORE_ERRORS, IMAGE_FORMAT, }; /// check if ffmpeg can read the file and apply filter to it. @@ -23,6 +23,8 @@ fn check_media( ) -> Result<(), Error> { let mut enc_cmd = vec_strings!["-hide_banner", "-nostats", "-v", "level+error"]; let mut error_list = vec![]; + let mut config = config.clone(); + config.out.mode = Null; node.add_probe(); @@ -53,7 +55,7 @@ fn check_media( node.cmd = Some(seek_and_length(&node)); } - node.add_filter(config, &None); + node.add_filter(&config, &None); let mut filter = node.filter.unwrap_or_default(); diff --git a/scripts/build.sh b/scripts/build.sh index 73d8a6f6..bd9d4131 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -44,7 +44,7 @@ for target in "${targets[@]}"; do cp ./target/${target}/release/ffpapi.exe . cp ./target/${target}/release/ffplayout.exe . - zip -r "ffplayout-v${version}_${target}.zip" assets docs public LICENSE README.md ffplayout.exe ffpapi.exe -x *.db + zip -r "ffplayout-v${version}_${target}.zip" assets docs public LICENSE README.md CHANGELOG.md ffplayout.exe ffpapi.exe -x *.db rm -f ffplayout.exe ffpapi.exe elif [[ $target == "x86_64-apple-darwin" ]] || [[ $target == "aarch64-apple-darwin" ]]; then if [[ -f "ffplayout-v${version}_${target}.tar.gz" ]]; then @@ -55,7 +55,7 @@ for target in "${targets[@]}"; do cp ./target/${target}/release/ffpapi . cp ./target/${target}/release/ffplayout . - tar -czvf "ffplayout-v${version}_${target}.tar.gz" --exclude='*.db' assets docs public LICENSE README.md ffplayout ffpapi + tar -czvf "ffplayout-v${version}_${target}.tar.gz" --exclude='*.db' assets docs public LICENSE README.md CHANGELOG.md ffplayout ffpapi rm -f ffplayout ffpapi else if [[ -f "ffplayout-v${version}_${target}.tar.gz" ]]; then @@ -66,7 +66,7 @@ for target in "${targets[@]}"; do cp ./target/${target}/release/ffpapi . cp ./target/${target}/release/ffplayout . - tar -czvf "ffplayout-v${version}_${target}.tar.gz" --exclude='*.db' assets docs public LICENSE README.md ffplayout ffpapi + tar -czvf "ffplayout-v${version}_${target}.tar.gz" --exclude='*.db' assets docs public LICENSE README.md CHANGELOG.md ffplayout ffpapi rm -f ffplayout ffpapi fi