title: ffmpeg video to mp3 with album art
body: <p>I can convert a video to mp3 using ffmpeg by the following:</p>
  
  <pre><code>ffmpeg -i input -vol %volume% -y -acodec libmp3lame -ab %quality%k output
  </code></pre>
  
  <p>I have a static image file .. cover.jpg.</p>
  
  <p>I want to use cover.jpg as album art with the converted audio. Which can be done by another command:</p>
  
  <p><code>ffmpeg -i input.mp3 -i cover.jpg -map_metadata 0 -map 0 -map 1 output.mp3</code></p>
  
  <p>But instead of using two commands, I need to use one command to convert the video to mp3 and embed the cover.jpg as album art. </p>
  
  <p>How can I do this? Perhaps there is a way to do this by libmp3lame option?</p>
  
  <p>I am lifting my hairs with this, please help.</p>
  
  <p>Thank You.</p>