[FFmpeg-user] how to display metadata?

sean darcy seandarcy2 at gmail.com
Fri Mar 25 19:37:00 CET 2011


On 03/25/2011 11:27 AM, James Darnley wrote:
> On 25/03/2011, sean darcy<seandarcy2 at gmail.com>  wrote:
>> I've prepared a speech:
>>
>> ffmpeg -i "speech_1.wav" -metadata track="1" -metadata title="My Speech"
>> -acodec aac -ab 128000 -strict experimental speech_1.aac
>>
>> which seems to work fine, the track and title show on the console output.
>>
>> But:
>>
>>    ffmpeg -i speech.aac
>> Input #0, aac, from 'speech_1.aac':
>>     Duration: 00:01:44.95, bitrate: 128 kb/s
>>       Stream #0.0: Audio: aac, 44100 Hz, stereo, s16, 128 kb/s
>
> That suggests the output format doesn't actually support metadata

Huh? aac doesn't support metadata?

It certainly looks like it does:

ffmpeg -i "Track 1.wav" -metadata track=1 -metadata title="Test Track" 
-acodec aac -ab 128000 -strict experimental Track_1.aac
...............
Input #0, wav, from 'Track 1.wav':
   Duration: 00:02:01.88, bitrate: 1411 kb/s
     Stream #0.0: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s
Output #0, adts, to 'Track_1.aac':
   Metadata:
     title           : Test Track
     track           : 1
     encoder         : Lavf52.73.0
     Stream #0.0: Audio: aac, 44100 Hz, 2 channels, s16, 128 kb/s
.......

But:

ffprobe Track_1.aac
Input #0, aac, from 'Track_1.aac':
   Duration: 00:01:44.95, bitrate: 128 kb/s
     Stream #0.0: Audio: aac, 44100 Hz, stereo, s16, 128 kb/s


So I guess the question is whether the aac encoder is creating the 
metadata, or is ffprobe not reading it?

And shouldn't EasyTag be able to read it if the metadata were there?

sean



More information about the ffmpeg-user mailing list