简体   繁体   English

FFMPEG:如何使用FFMPEG将附件图片(APIC)从源mp3文件转码为目标mp3文件?

[英]FFMPEG : How to transcode Attached Picture (APIC) from source mp3 file to destination mp3 file using FFMPEG?

I have input file as 02.mp3. 我输入的文件为02.mp3。 I want to change it to mp3 file with some bit rate. 我想将其更改为具有某些比特率的mp3文件。 While doing so, I want to preserve all the metadata plus the APIC, attached picture corresponding to image should also be transfered to the destionation file. 这样做时,我想保留所有元数据和APIC,与图像相对应的附加图片也应传输到目标文件中。 I am using FFMPEG and i am using the following command... 我正在使用FFMPEG,并且正在使用以下命令...

ffmpeg -y -i 02.mp3 -id3v2_version 3 -ab 128000 -ss 0 -acodec libmp3lame -f mp3 -ac 2 -ar 44100 output.mp3 ffmpeg -y -i 02.mp3 -id3v2_version 3 -ab 128000 -ss 0 -acodec libmp3lame -f mp3 -ac 2 -ar 44100 output.mp3

source file: 02.mp3 destination file : output.mp3. 源文件:02.mp3目标文件:output.mp3。

But in destination file, i am not getting APIC(attached picture corresponding to 02.mp3).I am getting all other mp3 tags in output.mp3 except for APIC. 但是在目标文件中,我没有得到APIC(与02.mp3对应的图片)。除APIC外,我在output.mp3中得到了所有其他mp3标签。 How to get APIC in destinaton file as well? 如何在destinaton文件中获取APIC?

You will need to patch your FFMPEG source to support support binary in metadata and rebuild. 您将需要修补FFMPEG源,以支持元数据中的二进制支持和重建。 The patch is here: 补丁在这里:

http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2011-December/118085.html http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2011-December/118085.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM