无法使用 ffmpeg 为 MP3 文件提供注释元数据 [英] Can't give metadata of comment to MP3 file using ffmpeg
问题描述
我想将 AAC 转换为 MP3 并使用 ffmpeg 为 MP3 文件提供注释元数据.
但是 -metadata comment
不起作用并且 ffmpeg 不返回任何错误.
I want to covert a AAC to MP3 and give metadata of comment to the MP3 file using ffmpeg.
But -metadata comment
doesn't work and ffmpeg doesn't return any error.
我的代码是ffmpeg -i "test.aac" -ab 128k -metadata comment='this is test' "test.mp3"
我尝试了 -metadata description='this is test'
并更新了 ffmpeg.-元数据艺术家
和-元数据专辑
等其他功能运行良好.
I tried -metadata description='this is test'
and also update ffmpeg. Other function such as -metadata artist
and -metadata album
works well.
这段代码有什么问题?
输出
Stream mapping:
Stream #0:0 -> #0:0 (aac (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
Output #0, mp3, to 'test.mp3':
Metadata:
description : this is test
TSSE : Lavf58.29.100
Stream #0:0: Audio: mp3 (libmp3lame), 48000 Hz, stereo, fltp, 128 kb/s
Metadata:
encoder : Lavc58.54.100 libmp3lame
环境
ffmpeg 版本 4.2.2 版权所有 (c) 2000-2019 FFmpeg 开发人员
使用 Apple clang 版本 11.0.3 (clang-1103.0.32.59) 构建
Environment
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
built with Apple clang version 11.0.3 (clang-1103.0.32.59)
推荐答案
可能的错误.ffmpeg
正在将评论元数据写入用户文本框架(TXXX
)而不是预期的评论(COMM
).
Possible bug. ffmpeg
is writing comment metadata as user text frame (TXXX
) instead of the expected comment (COMM
).
现在我建议使用不同的工具进行评论标签.eyeD3
示例:
For now I suggest using a different tool for comment tag. eyeD3
example:
eyeD3 --comment "added a comment" input.mp3
这篇关于无法使用 ffmpeg 为 MP3 文件提供注释元数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!