Skip to content

Instantly share code, notes, and snippets.

@mefellows
Created July 22, 2022 05:49
Show Gist options
  • Save mefellows/c746008be0184c71f558115c9cc56012 to your computer and use it in GitHub Desktop.
Save mefellows/c746008be0184c71f558115c9cc56012 to your computer and use it in GitHub Desktop.

Revisions

  1. mefellows revised this gist Jul 22, 2022. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,9 @@
    ```
    # Create a full colour palette from a source
    ffmpeg -y -i <input> -vf fps=15,scale=1024:-1:flags=lanczos,palettegen palette.png
    # Export a GIF from the source, using the palette
    ffmpeg -y -i <input> -i palette.png -filter_complex "fps=15,scale=800:-1:flags=lanczos[x];[x][1:v]paletteuse" output.gif
    ```

    // See other useful combinations here: https://gist.github.com/dergachev/4627207
    See other useful combinations here: https://gist.github.com/dergachev/4627207
  2. mefellows created this gist Jul 22, 2022.
    7 changes: 7 additions & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    # Create a full colour palette from a source
    ffmpeg -y -i <input> -vf fps=15,scale=1024:-1:flags=lanczos,palettegen palette.png

    # Export a GIF from the source, using the palette
    ffmpeg -y -i <input> -i palette.png -filter_complex "fps=15,scale=800:-1:flags=lanczos[x];[x][1:v]paletteuse" output.gif

    // See other useful combinations here: https://gist.github.com/dergachev/4627207