Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
mp3 [2017/02/26 21:28]
beandog
mp3 [2021/10/17 19:39]
beandog
Line 1: Line 1:
 ====== MP3 ====== ====== MP3 ======
  
-  * [[https://libav.org/documentation/avconv.html#mp3|avconv MP3 muxer]]+  * [[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, not just ID tags:+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>​
  
-See [[http://​jonhall.info/how_to/​create_id3_tags_using_ffmpeg|here]] for documentation of mapping tags using avconv.+See [[https://​jonhall.info/​create_id3_tags_using_ffmpeg/|here]] for documentation of mapping tags using ffmpeg.
  
 Set metadata title: Set metadata title:
  
 <​code>​ <​code>​
-avconv ​-i source.mp3 -metadata title="​MP3 Title" -acodec copy title.mp3+ffmpeg ​-i source.mp3 ​-id3v2_version 3 -metadata title="​Highway to Danger" -acodec copy title.mp3
 </​code>​ </​code>​
  
-Set title, album, track number:+Set title, album, artist, track number:
  
 <​code>​ <​code>​
-avconv ​-i source.mp3 -metadata title="​Highway to Danger"​ -metadata ​album="​Knight Rider" -metadata track=1 -acodec copy metadata.mp3+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>​ </​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>​

Navigation