Guest User

Untitled

a guest
Nov 15th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. function func_mov2gif {
  4. local outname
  5. for inname in "${@}"; do
  6. if [ -f "${inname}" ]; then
  7. outname="$(dirname "${inname}")/$(basename -s ".mov" "${inname}").gif"
  8. ffmpeg -i "${inname}" -r 10 -f gif - | gifsicle --threads --optimize --output "${outname}"
  9. fi
  10. done
  11. }
  12.  
  13. func_mov2gif "${@}"
Add Comment
Please, Sign In to add comment