Answers.Body: <p>Its impossible to say for sure, Because you dont say what your input format is, But there is most likely a color space/range conversion occurring.</p>
  <p>You may may need to set the those values. you may need to specificity the agues to use for the conversion as well.</p>
  <p>This post should explain it.
  <a href="https://mux.com/blog/your-browser-and-my-browser-see-different-colors/" rel="nofollow noreferrer">https://mux.com/blog/your-browser-and-my-browser-see-different-colors/</a></p>
  <p>I don't cover color range in that post. But you most likely want to use full range.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-01T03:02:52.373Z
Answers.LastActivityDate: 2020-12-01T03:02:52.373Z
Answers.UserDisplayName: m3u8
Body: <p>I am a chemist and since a few weeks I am making short videos with ffmpeg by combining images, I am using the command below (for some reason without profile:v high, powerpoint crashes when I would import a video).</p>
  <pre><code>ffmpeg [...] -r 24 -preset slow -profile:v high -level:v 4.0 -pix_fmt yuv420p -c:v libx264 -crf 8 output.mp4
  </code></pre>
  <p>The images are from a raytracer and their background is perfectly white (I checked), however the output movies have a slight background (some kind of beige). Why ? Is it from one of my parameters ? I would like if possible to have a perfect white background while keeping high quality,</p>
  <p><a href="https://i.sstatic.net/zWO4A.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/zWO4A.png" alt="enter image description here" /></a></p>
  <p>I already tried to delete the background of the images with ImageMagick, it is working but it lower the quality.</p>
  <p>Thanks</p>
  
Tags: <video><ffmpeg><video-quality>
Title: Why is ffmpeg producing a background?
UserDisplayName: Okano
ThreadText: # Why is ffmpeg producing a background?
  
  (Asked by: username_0 on 2020-11-30)
  
  I am a chemist and since a few weeks I am making short videos with ffmpeg by combining images, I am using the command below (for some reason without profile:v high, powerpoint crashes when I would import a video).
  
  ```
  ffmpeg [...] -r 24 -preset slow -profile:v high -level:v 4.0 -pix_fmt yuv420p -c:v libx264 -crf 8 output.mp4
  
  ```
  
  The images are from a raytracer and their background is perfectly white (I checked), however the output movies have a slight background (some kind of beige). Why ? Is it from one of my parameters ? I would like if possible to have a perfect white background while keeping high quality,
  
  [![enter image description here](https://i.sstatic.net/zWO4A.png)](https://i.sstatic.net/zWO4A.png)
  
  I already tried to delete the background of the images with ImageMagick, it is working but it lower the quality.
  
  Thanks
  
  **Tags:** video, ffmpeg, video-quality
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-12-01. Score: 1
  
  Its impossible to say for sure, Because you dont say what your input format is, But there is most likely a color space/range conversion occurring.
  
  You may may need to set the those values. you may need to specificity the agues to use for the conversion as well.
  
  This post should explain it.
  <https://mux.com/blog/your-browser-and-my-browser-see-different-colors/>
  
  I don't cover color range in that post. But you most likely want to use full range.
  
  
  ---
  
  