mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 19:31:35 +00:00
Fix imagemagick ffmpeg delegate, strip metadata while converting videos
This commit is contained in:
parent
029beef61a
commit
277b47af46
2 changed files with 3 additions and 1 deletions
|
@ -186,7 +186,7 @@ fn generate_policy(media: &Media) -> String {
|
||||||
<policy domain="coder" rights="none" pattern="*" />
|
<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="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="none" pattern="*" />
|
||||||
<policy domain="delegate" rights="execute" pattern="FFMPEG" />
|
<policy domain="delegate" rights="execute" pattern="ffmpeg" />
|
||||||
<policy domain="filter" rights="none" pattern="*" />
|
<policy domain="filter" rights="none" pattern="*" />
|
||||||
<policy domain="module" 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}}" />
|
<policy domain="module" rights="read | write" pattern="{{APNG,AVIF,GIF,HEIC,JPEG,JSON,JXL,PNG,RGB,RGBA,WEBP,TMP,PAM,PNM,VIDEO}}" />
|
||||||
|
|
|
@ -133,6 +133,8 @@ async fn transcode_files(
|
||||||
}
|
}
|
||||||
|
|
||||||
args.extend([
|
args.extend([
|
||||||
|
"-map_metadata".as_ref(),
|
||||||
|
"-1".as_ref(),
|
||||||
"-f".as_ref(),
|
"-f".as_ref(),
|
||||||
output_format.ffmpeg_format().as_ref(),
|
output_format.ffmpeg_format().as_ref(),
|
||||||
output_path,
|
output_path,
|
||||||
|
|
Loading…
Reference in a new issue