I want to covert an AAC audio file to MP3 and add a comment in the metadata of the MP3 file using ffmpeg.
The -metadata comment
option doesn't work and ffmpeg doesn't return an error.
The complete command I'm running is
ffmpeg -i "test.aac" -ab 128k -metadata comment='this is test' "test.mp3"
I also tried -metadata description='this is test'
and even updated ffmpeg. Other options such as -metadata artist
and -metadata album
work well.
What's wrong with this approach?
Output
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
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)
Possible bug. ffmpeg
is writing comment metadata as user text frame (TXXX
) instead of the expected comment (COMM
).
For now I suggest using a different tool for comment tag. eyeD3
example:
eyeD3 --comment "added a comment" input.mp3