研究了一下mp3加入图片信息,和大家分享一下。
(1)对mp3加入图片理论了解可以参考ID3的介绍。http://baike.baidu.com/view/66078.htm?fr=aladdin
(2)命令直接把ffmpeg官网一部分复制过来,讲的挺详细
The MP3 muxer writes a raw MP3 stream with the following optional features: Examples: Write an mp3 with an ID3v2.3 header and an ID3v1 footer: ffmpeg -i INPUT -id3v2_version 3 -write_id3v1 1 out.mp3
To attach a picture to an mp3 file select both the audio and the picture stream with map: ffmpeg -i input.mp3 -i cover.png -c copy -map 0 -map 1-metadata:s:v title="Album cover" -metadata:s:v comment="Cover (Front)" out.mp3
|