Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
mp3 [2017/02/26 21:29] beandog |
mp3 [2017/02/26 21:34] beandog |
||
---|---|---|---|
Line 3: | Line 3: | ||
* [[https://libav.org/documentation/avconv.html#mp3|avconv MP3 muxer]] - documentation on metadata | * [[https://libav.org/documentation/avconv.html#mp3|avconv MP3 muxer]] - documentation on metadata | ||
- | Strip an MP3 of all metadata, not just ID tags: | + | Strip an MP3 of all metadata: |
<code> | <code> | ||
Line 14: | Line 14: | ||
<code> | <code> | ||
- | avconv -i source.mp3 -metadata title="MP3 Title" -acodec copy title.mp3 | + | avconv -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 | + | avconv -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> | ||
+ | avconv -i source.mp3 -i cover.jpg -acodec copy cover_art.mp3 | ||
+ | </code> | ||
+ | |||
+ | Note that avconv will conver the cover art to a PNG. If it already is one, you can can copy it directly: | ||
+ | |||
+ | <code> | ||
+ | avconv -i source.mp3 -i cover.jpg -acodec copy -vcodec copy cover_art.mp3 | ||
+ | </code> |