title: ffmpeg : how to take wav as audio input for creating a video?
body: <p>I'm trying to use ffmpeg for rendering video where an audio file and image are taken as inputs, and turned into a video with the same dimensions as the image with the audio file playing for the duration of the video (basically a music video).</p>
  
  <p>I have this working for flac and mp3 files, my ffmpeg command for mp3 is below:</p>
  
  <pre><code>ffmpeg -loop 1 -framerate 2 -i "front.png" -i "testMP3file.mp3" -vf "scale=2*trunc(iw/2):2*trunc(ih/2),setsar=1" -c:v libx264 -preset medium -tune stillimage -crf 18 -c:a copy -shortest -pix_fmt yuv420p -strict -2 "testMP3fileOutput1.mp4" 
  </code></pre>
  
  <p>How can I take wav audio files as input instead of mp3? Is there a different codec I need to specify? <a href="https://stackoverflow.com/questions/9942631/how-to-convert-wav-file-to-mp4-using-ffmpeg-in-android/9943403">This post</a> talks about download  libfaac and using that, <strong>is there any way to take wav audio file as input using just ffmpeg without downloading a separate library?</strong></p>