title: Video discoloration after upload using ffmpeg in Twitter API
body: <p><br />
  What I'm trying to do is this - <br />
  1) Take an image and audio, make it into a video using <code>ffmpeg</code>.(I am not well versed with <code>ffmpeg</code> but have a working command).<br />
  This is the command that I am using right now - 
  <br /></p>
  
  <pre><code>ffmpeg 
  -y 
  -loop 1 
  -i &lt;IMAGE&gt; 
  -i &lt;SOUND&gt; 
  -vcodec libx264 
  -vf 'scale=640:trunc(ow/a/2)*2' 
  -acodec aac 
  -strict experimental 
  -vb 1024k
  -minrate 1024k 
  -maxrate 1024k 
  -bufsize 1024k 
  -ar 44100 
  -shortest 
  &lt;OUTPUT-FILE&gt;
  </code></pre>
  
  <p><br />
  2) Upload the video to Twitter, using it's API - <a href="https://dev.twitter.com/rest/public/uploading-media" rel="nofollow noreferrer">Uploading Chunked Media</a></p>
  
  <p>I am able to do both of these tasks.<Br />
  <strong>The problem</strong>: <br />After converting to video, when I run it on vlc, it seems to be working fine(Original colors, valid audio).<br /> When I check the video in Twitter, it appears to be discolored.(though the audio is played properly)<br /><br />
  Here is an attached image of how it looks in vlc and how it looks after being uploaded -<br /><br /> <img src="https://i.stack.imgur.com/xZXxv.png" alt="enter image description here"></p>
  
  <p>I think the <code>ffmpeg</code> command I am using is wrong.<br />
  Has anyone faced similar issues after uploading to websites?<br /></p>
  
  <p>Kindly advise</p>