mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore(snippet): add conversion from webp to gif
This commit is contained in:
@@ -11,6 +11,9 @@ ffmpeg -y -i 'rec.webm' -i 'palette.png' -filter_complex 'paletteuse' -r 10 'out
|
||||
ffmpeg -i 'input.webm' -c 'copy' 'output.mp4'
|
||||
ffmpeg -fflags '+genpts' -r '24' -i 'input.webm' 'output.mp4'
|
||||
|
||||
# webp to gif
|
||||
magick -delay '10' -dispose 'none' 'input.webp' -coalesce -loop '0' -layers 'optimize' 'output.gif'
|
||||
|
||||
# webp to png
|
||||
dwebp 'input.webp' -o 'output.png'
|
||||
dwebp 'input.webp' -mt -o 'output.png' -resize '192' '192'
|
||||
|
||||
Reference in New Issue
Block a user