From 277b47af46d435d222a62d7d98db215367349b00 Mon Sep 17 00:00:00 2001 From: asonix Date: Sun, 25 Feb 2024 11:40:03 -0600 Subject: [PATCH] Fix imagemagick ffmpeg delegate, strip metadata while converting videos --- src/magick.rs | 2 +- src/validate/ffmpeg.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/magick.rs b/src/magick.rs index a9c36cb..4e6f407 100644 --- a/src/magick.rs +++ b/src/magick.rs @@ -186,7 +186,7 @@ fn generate_policy(media: &Media) -> String { - + diff --git a/src/validate/ffmpeg.rs b/src/validate/ffmpeg.rs index 8d5bd98..53bb1cb 100644 --- a/src/validate/ffmpeg.rs +++ b/src/validate/ffmpeg.rs @@ -133,6 +133,8 @@ async fn transcode_files( } args.extend([ + "-map_metadata".as_ref(), + "-1".as_ref(), "-f".as_ref(), output_format.ffmpeg_format().as_ref(), output_path,