Fix imagemagick ffmpeg delegate, strip metadata while converting videos

This commit is contained in:
asonix 2024-02-25 11:40:03 -06:00
parent 029beef61a
commit 277b47af46
2 changed files with 3 additions and 1 deletions

View file

@ -186,7 +186,7 @@ fn generate_policy(media: &Media) -> String {
<policy domain="coder" rights="none" pattern="*" />
<policy domain="coder" rights="read | write" pattern="{{APNG,AVIF,GIF,HEIC,JPEG,JSON,JXL,PNG,RGB,RGBA,WEBP,MP4,WEBM,TMP,PAM}}" />
<policy domain="delegate" rights="none" pattern="*" />
<policy domain="delegate" rights="execute" pattern="FFMPEG" />
<policy domain="delegate" rights="execute" pattern="ffmpeg" />
<policy domain="filter" rights="none" pattern="*" />
<policy domain="module" rights="none" pattern="*" />
<policy domain="module" rights="read | write" pattern="{{APNG,AVIF,GIF,HEIC,JPEG,JSON,JXL,PNG,RGB,RGBA,WEBP,TMP,PAM,PNM,VIDEO}}" />

View file

@ -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,