Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- function func_mov2gif {
- local outname
- for inname in "${@}"; do
- if [ -f "${inname}" ]; then
- outname="$(dirname "${inname}")/$(basename -s ".mov" "${inname}").gif"
- ffmpeg -i "${inname}" -r 10 -f gif - | gifsicle --threads --optimize --output "${outname}"
- fi
- done
- }
- func_mov2gif "${@}"
Add Comment
Please, Sign In to add comment