无法使用ffmpeg将注释的元数据提供给MP3文件 [英] Can't give metadata of comment to MP3 file using ffmpeg

查看:73
本文介绍了无法使用ffmpeg将注释的元数据提供给MP3文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将AAC转换为MP3,并使用ffmpeg将注释元数据提供给MP3文件.
但是-元数据注释不起作用,并且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"

My code is 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 ),而不是预期的 comment ( 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆