<div dir="ltr"><div>Thanks for the quick response Cory.</div>I tried setting quality to 0,1,2. The quality of the movie was best for 2 and worst for 0 but the background remained the same in each case. <div>The quality of the output of the  filter (in this case, a vtkContourFilter) reduces with reduction in SetQuality but the background remains of the same quality. </div><div>There is no difference in the quality of the background.</div><div><br></div><div>I also get the same behavior in Paraview's Save Animation feature (version 5.5 on windows)</div><div><br></div><div>Thanks,</div><div>Santosh</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Nov 27, 2018 at 7:29 PM Cory Quammen <<a href="mailto:cory.quammen@kitware.com">cory.quammen@kitware.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Sounds like quantization/compression artifacts. You can try changing the quality setting to reduce compression via vtkAVIWriter::SetQuality().<div><br></div><div>HTH,</div><div>Cory</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Nov 27, 2018 at 8:55 AM Santosh Biradar <<a href="mailto:scbiradar@gmail.com" target="_blank">scbiradar@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am trying to create a movie of an animation using vtkAVIWriter.<div>The renderer has a gradient background. The .avi file created has distinct lines/bands in the background because of the gradient. Is it possible to get rid of these lines. I notice that if I use a vtkBMPWriter and write an image, the image seems fine without any such lines/bands.</div><div><br></div><div>A code snippet of what I am doing:</div><div><br></div><div><pre style="color:rgb(0,0,0);font-family:"Courier New";font-size:9pt">window_to_image = vtk.vtkWindowToImageFilter()<br>window_to_image.SetInput(renWin.GetRenderWindow())<br>window_to_image.SetInputBufferTypeToRGB()<br>window_to_image.ReadFrontBufferOff()<br><br>writer = vtk.vtkAVIWriter()<br>writer.SetInputConnection(window_to_image.GetOutputPort())</pre><pre style="color:rgb(0,0,0);font-family:"Courier New";font-size:9pt"><span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:normal">I am running python wrapper of VTK-6.3.0 on windows</span>

<div style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:normal">Thanks,</div><div style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:normal">Santosh</div><div style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;white-space:normal"><br class="m_-8629298212009043527m_-748418222874687551gmail-Apple-interchange-newline"></div></pre></div></div>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_-8629298212009043527gmail_signature" data-smartmail="gmail_signature">Cory Quammen<br>Staff R&D Engineer<br>Kitware, Inc.</div>
</blockquote></div>