Files
oam/knowledge base/ffmpeg.md

1.1 KiB

ffmpeg

Table of contents

  1. TL;DR
  2. Format conversion
    1. Webm to GIF
  3. Sources

TL;DR

# Convert a webm file to GIF.
ffmpeg -y -i 'rec.webm' -vf 'palettegen' 'palette.png'
ffmpeg -y -i 'rec.webm' -i 'palette.png' -filter_complex 'paletteuse' -r 10 'out.gif'

Format conversion

Webm to GIF

ffmpeg -y -i 'rec.webm' -vf 'palettegen' 'palette.png'
ffmpeg -y -i 'rec.webm' -i 'palette.png' -filter_complex 'paletteuse' -r 10 'out.gif'

Here rec.webm is the recorded video.
The first command creates a palette out of the webm file. The second command converts the webm file to gif using the created palette.

Sources