Answers.Body: <p><a href="https://ffmpeg.org/ffmpeg-scaler.html" rel="nofollow noreferrer">https://ffmpeg.org/ffmpeg-scaler.html</a> tells you the sws_dither is the dither algorithm whereas <a href="https://ffmpeg.org/ffmpeg-filters.html#paletteuse" rel="nofollow noreferrer">https://ffmpeg.org/ffmpeg-filters.html#paletteuse</a> tells you to turn the dither off.</p>
  <p>The answer to your question is to set</p>
  <pre><code>paletteuse=dither=none
  </code></pre>
  <p>BTW, <a href="http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html" rel="nofollow noreferrer">http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html</a> gives you the result of the paletteuse settings.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-11-18T09:22:45.650Z
Answers.Text: Thank you, that solved it. For future note, I needed to change paletteuse=new=1 to paletteuse=new=1:dither=none
Answers.UserDisplayName: Bemmu
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-09-29T13:24:17.273Z
Answers.Text: Thanks for this; annoyingly the paletteuse docs don't list `none` as an option (confirmed they didn't on Nov 17 2020, either, just as a sanity check). ‍♂️ It works though (in 4.3.2 at least).
Answers.UserDisplayName: Jason C
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-09-29T15:07:22.477Z
Answers.Text: https://trac.ffmpeg.org/ticket/9950 re: documentation
Answers.UserDisplayName: Jason C
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-28T23:40:39.970Z
Answers.Text: It's been added to the docs as of today, according to the ticket.
Answers.UserDisplayName: Jason C
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-11-17T01:05:15.240Z
Answers.LastActivityDate: 2020-11-17T01:05:15.240Z
Answers.UserDisplayName: xer-rex
Body: <p>I am trying to convert a video to an animated gif, and I actually want it to have banding, so I'm trying to turn off dithering.</p>
  <p>Here's what I've tried:</p>
  <pre><code>ffmpeg -ss 1:24 -t 2 -i *.mkv -filter_complex &quot;[0:v] fps=15,scale=sws_dither=none:w=480:h=-1,split [a][b];[a] palettegen=max_colors=4:stats_mode=single [p];[b][p] paletteuse=new=1&quot; avengers3.gif
  </code></pre>
  <p>Here's what the output from the above looks like:</p>
  <p><a href="https://i.sstatic.net/bsjy5.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/bsjy5.png" alt="enter image description here" /></a></p>
  <p>It seems to me that definitely still has dithering, so how to turn it off?</p>
  <p>It said in the docs that sws_dither is the flag to set to &quot;none&quot; to disable dithering - perhaps I'm passing that wrong?</p>
  
Tags: <ffmpeg>
Title: How to turn off ffmpeg dithering?
UserDisplayName: Bemmu
ThreadText: # How to turn off ffmpeg dithering?
  
  (Asked by: username_0 on 2020-11-15)
  
  I am trying to convert a video to an animated gif, and I actually want it to have banding, so I'm trying to turn off dithering.
  
  Here's what I've tried:
  
  ```
  ffmpeg -ss 1:24 -t 2 -i *.mkv -filter_complex "[0:v] fps=15,scale=sws_dither=none:w=480:h=-1,split [a][b];[a] palettegen=max_colors=4:stats_mode=single [p];[b][p] paletteuse=new=1" avengers3.gif
  
  ```
  
  Here's what the output from the above looks like:
  
  [![enter image description here](https://i.sstatic.net/bsjy5.png)](https://i.sstatic.net/bsjy5.png)
  
  It seems to me that definitely still has dithering, so how to turn it off?
  
  It said in the docs that sws\_dither is the flag to set to "none" to disable dithering - perhaps I'm passing that wrong?
  
  **Tags:** ffmpeg
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-11-17. Score: 4 | Accepted answer
  
  <https://ffmpeg.org/ffmpeg-scaler.html> tells you the sws\_dither is the dither algorithm whereas <https://ffmpeg.org/ffmpeg-filters.html#paletteuse> tells you to turn the dither off.
  
  The answer to your question is to set
  
  ```
  paletteuse=dither=none
  
  ```
  
  BTW, <http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html> gives you the result of the paletteuse settings.
  
  > **Comments:**
  > **username_0**: Thank you, that solved it. For future note, I needed to change paletteuse=new=1 to paletteuse=new=1:dither=none  
  > **username_2**: Thanks for this; annoyingly the paletteuse docs don't list `none` as an option (confirmed they didn't on Nov 17 2020, either, just as a sanity check). ‍♂️ It works though (in 4.3.2 at least).  
  > **username_2**: https://trac.ffmpeg.org/ticket/9950 re: documentation  
  > **username_2**: It's been added to the docs as of today, according to the ticket.  
  
  ---
  
  