Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mp3 [2017/02/27 02:34] beandogmp3 [2021/10/18 01:40] (current) beandog
Line 1: Line 1:
 ====== MP3 ====== ====== MP3 ======
  
-Strip an MP3 of all metadata, not just ID tags:+  * [[https://trac.ffmpeg.org/wiki/Encode/MP3]] - ffmpeg wiki 
 +  * [[https://ffmpeg.org/ffmpeg-all.html#libmp3lame-1]] - ffmpeg with lame 
 + 
 +Strip an MP3 of all metadata:
  
 <code> <code>
-avconv -i source.mp3 -write_xing 0 -id3v2_version 0 -map_metadata -1 -acodec copy no_metadata.mp3+ffmpeg -i source.mp3 -write_xing 0 -id3v2_version 0 -map_metadata -1 -acodec copy no_metadata.mp3
 </code> </code>
  
Line 10: Line 13:
  
 <code> <code>
-avconv -i source.mp3 -metadata title="MP3 Title" -acodec copy no_metadata.mp3+ffmpeg -i source.mp3 -id3v2_version 3 -metadata title="Highway to Danger" -acodec copy title.mp3 
 +</code> 
 + 
 +Set title, album, artist, track number: 
 + 
 +<code> 
 +ffmpeg -i source.mp3 -id3v2_version 3 -metadata title="Highway to Danger" -metadata artist="Knight Rider" -metadata album="Read Along Books" -metadata track=1 -acodec copy metadata.mp3 
 +</code> 
 + 
 +Add cover art as well: 
 + 
 +<code> 
 +ffmpeg -i source.mp3 -i cover_art.jpg -acodec copy cover_art.mp3 
 +</code> 
 + 
 +Note that ffmpeg will convert the cover art to a PNG. If it already is one, you can can copy it directly: 
 + 
 +<code> 
 +ffmpeg -i source.mp3 -i cover_art.png -acodec copy -vcodec copy cover_art.mp3
 </code> </code>

Navigation