Answers.Body: <p>I found that you get better results from gradients in AE when you run in floating point, i.e. 16 or 32bit and output those very bits to the encoder. This means not introducing banding by downsampling it to 8 bit before sending it to the encoder, or even the internal Adobe encoder in AE (which is crap for low bitrates).</p>
  
  <p>On the Mac, you might want to export to ProRes HQ and then use the <a href="http://www003.upp.so-net.ne.jp/mycometg3/" rel="nofollow">x264 Component</a> in Compressor to directly input flawless gradients into the encoder. You still will always get banding in h.264, but less visibly.</p>
  
  <p>Also, when shooting for Blu-ray distribution, good old MPEG2 seems to work better than AVC.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2012-04-30T22:38:21.853Z
Answers.Text: Thanks for your answer! Could you expand a bit on what you mean with the floating point method? I'm on a PC so all the Mac magic won't do :)
Answers.UserDisplayName: Emphram Stavanger
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2012-05-01T10:34:21.013Z
Answers.Text: All I'm saying also works on the pc, in principle. You want to keep your animation in 24 or 32 bit as long as possible. You don't want to feed degraded, banded 8bit material to a lossy encoder. So, find a way to export the animation to a file format and codec that supports floating point depth, eg 32bit. And an encoder that supports that input format. This may be done within AE's render queue, but for my taste, the h264 encoder from adobe doesn't cut it.
Answers.UserDisplayName: THM
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2012-04-28T12:04:31.580Z
Answers.LastActivityDate: 2012-04-28T12:04:31.580Z
Answers.UserDisplayName: THM
Answers.Body: <p>If you are using the <strong>Ramp</strong> effect then you can increase the <strong>Ramp Scatter</strong> value which helps decrease banding. </p>
  
  <p><img src="https://i.sstatic.net/VPTjV.png" alt="enter image description here"></p>
  
  <p>Also working in 16 bit or 32 bit rather than 8bit can also help!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2012-04-23T03:19:16.103Z
Answers.LastActivityDate: 2012-04-23T03:19:16.103Z
Answers.UserDisplayName: OrangeBox
Answers.Body: <p>Banding isn't uncommon in compressed video files, and can is exacerbated by the type and level of compression...there's also the bitrate of the original file and the final output. Lot's of points along the chain can cause banding. But I'd guess it's in your final output.</p>
  
  <p>What software are you using for rendering/conversion, and what are the render settings you are using?</p>
  
  <p>Are you keeping the video on Vimeo or YouTube? If so they both have great FAQs for how to best render/compress videos for uploading, but the settings are a decent balance of economy of space vs. video quality. <a href="https://vimeo.com/help/faq/general_vimeo_questions#recommended_settings" rel="nofollow">The FAQ on Vimeo</a> is my personal favorite, and should do you well for both platforms.</p>
  
  <p><a href="http://greyscalegorilla.com/blog/2009/10/how-to-remove-banding-artifacts-in-after-effects/" rel="nofollow">Here</a> is a great video (which may not apply in this case) dealing with banding and fixes, particularly if the banding is in your original/source file.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2012-04-18T15:35:41.817Z
Answers.Text: Thanks for your response! I'm using After Effects to render. The gradient (along with the animation itself, of course) is rendered from Flash in a top quality jpeg image sequence, so the original source contains no banding. I'll tell you the render settings I'm using when I get back home. I'm probably going to use Vimeo to host the video.
Answers.UserDisplayName: Emphram Stavanger
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2012-04-17T21:50:46.433Z
Answers.LastActivityDate: 2012-04-30T13:30:54.233Z
Answers.LastEditDate: 2012-04-30T13:30:54.233Z
Answers.UserDisplayName: Blind Road
Body: <p>I have a video with a gradient background, with silhouette vector animations on top. The gradient therefore stays exactly the same throughout the video.</p>
  
  <p>However, rendering the video as mp4, I'm having considerable trouble with banding in the gradient. There should be enough of a difference to have a color for each pixel, yet the gradient in the video looks like it's from the good ol' days.</p>
  
  <p>Are there any settings or tricks I could use to avoid gradient stripes in my video? My aim is to match the video's gradient as closely as possible with the gradient background displayed on the website it's supposed to be embedded on.</p>
  
  <p>Thanks in advance!</p>
  
Tags: <after-effects><mp4>
Title: Gradient banding
UserDisplayName: Emphram Stavanger
ThreadText: # Gradient banding
  
  (Asked by: username_0 on 2012-04-16)
  
  I have a video with a gradient background, with silhouette vector animations on top. The gradient therefore stays exactly the same throughout the video.
  
  However, rendering the video as mp4, I'm having considerable trouble with banding in the gradient. There should be enough of a difference to have a color for each pixel, yet the gradient in the video looks like it's from the good ol' days.
  
  Are there any settings or tricks I could use to avoid gradient stripes in my video? My aim is to match the video's gradient as closely as possible with the gradient background displayed on the website it's supposed to be embedded on.
  
  Thanks in advance!
  
  **Tags:** after-effects, mp4
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_3 on 2012-04-17. Score: 3 | Accepted answer
  
  Banding isn't uncommon in compressed video files, and can is exacerbated by the type and level of compression...there's also the bitrate of the original file and the final output. Lot's of points along the chain can cause banding. But I'd guess it's in your final output.
  
  What software are you using for rendering/conversion, and what are the render settings you are using?
  
  Are you keeping the video on Vimeo or YouTube? If so they both have great FAQs for how to best render/compress videos for uploading, but the settings are a decent balance of economy of space vs. video quality. [The FAQ on Vimeo](https://vimeo.com/help/faq/general_vimeo_questions#recommended_settings) is my personal favorite, and should do you well for both platforms.
  
  [Here](http://greyscalegorilla.com/blog/2009/10/how-to-remove-banding-artifacts-in-after-effects/) is a great video (which may not apply in this case) dealing with banding and fixes, particularly if the banding is in your original/source file.
  
  > **Comments:**
  > **username_0**: Thanks for your response! I'm using After Effects to render. The gradient (along with the animation itself, of course) is rendered from Flash in a top quality jpeg image sequence, so the original source contains no banding. I'll tell you the render settings I'm using when I get back home. I'm probably going to use Vimeo to host the video.  
  
  ---
  
  ### Answer by username_1 on 2012-04-28. Score: 1
  
  I found that you get better results from gradients in AE when you run in floating point, i.e. 16 or 32bit and output those very bits to the encoder. This means not introducing banding by downsampling it to 8 bit before sending it to the encoder, or even the internal Adobe encoder in AE (which is crap for low bitrates).
  
  On the Mac, you might want to export to ProRes HQ and then use the [x264 Component](http://www003.upp.so-net.ne.jp/mycometg3/) in Compressor to directly input flawless gradients into the encoder. You still will always get banding in h.264, but less visibly.
  
  Also, when shooting for Blu-ray distribution, good old MPEG2 seems to work better than AVC.
  
  > **Comments:**
  > **username_0**: Thanks for your answer! Could you expand a bit on what you mean with the floating point method? I'm on a PC so all the Mac magic won't do :)  
  > **username_1**: All I'm saying also works on the pc, in principle. You want to keep your animation in 24 or 32 bit as long as possible. You don't want to feed degraded, banded 8bit material to a lossy encoder. So, find a way to export the animation to a file format and codec that supports floating point depth, eg 32bit. And an encoder that supports that input format. This may be done within AE's render queue, but for my taste, the h264 encoder from adobe doesn't cut it.  
  
  ---
  
  ### Answer by username_2 on 2012-04-23. Score: 1
  
  If you are using the **Ramp** effect then you can increase the **Ramp Scatter** value which helps decrease banding.
  
  ![enter image description here](https://i.sstatic.net/VPTjV.png)
  
  Also working in 16 bit or 32 bit rather than 8bit can also help!
  
  
  ---
  
  