Advertisement
Guest User

Untitled

a guest
May 9th, 2020
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. #!/bin/sh
  2. ffmpeg -i $1 -x265-params "aq-mode=1:no-info=1" -crf 24 -preset slow -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" -pix_fmt yuv420p -f hevc "${1%%.*}.hevc" && \
  3. MP4Box -add-image "${1%%.*}.hevc:primary" -ab heic -new "${1%%.*}.heic" && \
  4. rm "${1%%.*}.hevc"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement