title: Converting MP3 to Video - Use image of Metadata text as Video track?
body: <p>I have many MP3 files which are recordings of music concerts . each of them have Meta data for </p>
  
  <p>eg :  (using ffprobe)</p>
  
  <pre><code>Metadata:
      title           : Vishweshwara
      genre           : Flute
      album           : Sindu Bhairavi
      artist          : Sikkil Sisters
   Duration: 00:06:23.48, start: 0.000000, bitrate: 128 kb/s
  </code></pre>
  
  <p>Now I want to convert these mp3 into mp4 for uploading to Youtube. 
  I am aware that I can use : </p>
  
  <pre><code>for i in *.mp3; do ffmpeg -v quiet -i "picture.jpg" -i "$i" -shortest -acodec copy "`sed 's/mp3/mp4/g'&lt;&lt;&lt;$i`"; done
  </code></pre>
  
  <p>But for the <code>"picture.jpg"</code> part I want a picture generated from the metadata text of that file. In short: All I want is the above shown metadata text on a white background exported to use later as <code>picture.jpg</code> when generating a video in FFmpeg.</p>
  
  <p>How can I do that for all the mp3 files that i have inside a folder using a script?</p>
  
  <p>I tried the following script that i cooked up but the video output contains no data (not even the original audio nor the new image)</p>
  
  <pre><code>for i in *.mp3; 
  do 
  
  convert label:"$(mediainfo "$i")" picture.jpg
  
  ffmpeg -v quiet -i "picture.jpg" -i "$i" -shortest -acodec copy "`sed 's/mp3/mp4/g'&lt;&lt;&lt;$i`";
  
  rm picture.jpg
  
  
  done
  </code></pre>
  
  <p>can some one help me why these videos are not being generated ?</p>