chore(snippets/format-conversion): add webp to png

This commit is contained in:
Michele Cereda
2024-05-15 18:58:52 +02:00
parent 59ee94ccac
commit cec7de5c31

View File

@@ -10,3 +10,7 @@ ffmpeg -y -i 'rec.webm' -i 'palette.png' -filter_complex 'paletteuse' -r 10 'out
# webm to mp4 # webm to mp4
ffmpeg -i 'input.webm' -c 'copy' 'output.mp4' ffmpeg -i 'input.webm' -c 'copy' 'output.mp4'
ffmpeg -fflags '+genpts' -r '24' -i 'input.webm' 'output.mp4' ffmpeg -fflags '+genpts' -r '24' -i 'input.webm' 'output.mp4'
# webp to png
dwebp 'input.webp' -o 'output.png'
dwebp 'input.webp' -mt -o 'output.png' -resize '192' '192'