title: ffmpeg - Making a Clean WAV file
body: <p>I'm looking to batch convert a number of files to audio files using <code>ffmpeg</code> for a game called <code>Star Wars: Jedi Knight: Dark Forces II</code>. The problem I'm having is that <code>ffmpeg</code> seems to be doing something that does so that <code>Jedi Knight</code> can't play the sound file.</p>
  
  <p><code>Jedi Knight</code> accepts plain old <code>PCM</code> <code>WAV</code> files of various ranges, from 5khz to 96khz, 8 and 16 bit, mono and stereo. This sounds plain and simple. Except for that if one were to create a <code>WAV</code> file using <code>MS Sound Recorder</code>, <code>Jedi Knight</code> could not play it. Speculation was that it added something extra to header or something. But it can play a <code>WAV</code> file created by <code>Audacity</code>, <code>GoldWave</code> or <code>ModPlug Tracker</code> to name a few.</p>
  
  <p>So why not <code>ffmpeg</code>? Am I using the wrong codec or params? I took an original sound file from the game and performed the following:</p>
  
  <pre><code>ffmpeg -i "orig_thrmlpu2.wav" -f wav -acodec pcm_s16le -ar 22050 -ac 1 "ffmpeg_thrmlpu2.wav"
  </code></pre>
  
  <p>The <code>ffmpeg</code> version does not play in the game. <code>ffprobe</code> shows that the <code>ffmpeg</code> version has some <code>Metadata</code> which the <code>original</code> doesn't have. What params should I use to try and get the same <code>WAV</code> format as the original? Mind you, <code>-ar</code>, <code>-ac</code> and <code>bits</code> aren't the important parts.</p>
  
  <p>Here are the files for you to examine: <a href="http://www.edwardleuf.org/Games/JK/thrmlpu2.zip" rel="noreferrer">http://www.edwardleuf.org/Games/JK/thrmlpu2.zip</a></p>