[FFmpeg-user] AIFF ID3 tag not written

Pete Coward pete at byta.fm
Fri Dec 12 16:35:37 CET 2014


copying an aiff file removes the ID3 tag, though it reads the input
ID3 tag and as far as I can tell from the log it writes it to the
output stream. I'd be very grateful for any advice.

Test file: that available at https://archive.org/details/TestAifAiffFile
Cmd line:
ffmpeg -v 9 -loglevel 99 -i 02DayIsDone.aif -f aiff -codec copy
-map_metadata 0 -id3v2_version 3 02DayIsDone_copy.aif

Output:

ffmpeg version 2.2.1 Copyright (c) 2000-2014 the FFmpeg developers
  built on Apr 13 2014 13:00:18 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)
  configuration: --prefix=/usr --libdir=/usr/lib64
--shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared
--enable-runtime-cpudetect --enable-gpl --enable-version3
--enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab
--enable-vdpau --disable-avisynth --enable-frei0r --enable-libopencv
--enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libnut
--enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenjpeg --enable-librtmp --enable-libspeex
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264
--enable-libxavs --enable-libxvid --extra-cflags='-O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC'
--disable-stripping
  libavutil      52. 66.100 / 52. 66.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavdevice    55. 10.100 / 55. 10.100
  libavfilter     4.  2.100 /  4.  2.100
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with
argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set
logging level) with argument '99'.
Reading option '-i' ... matched as input file with argument '02DayIsDone.aif'.
Reading option '-f' ... matched as option 'f' (force format) with
argument 'aiff'.
Reading option '-codec' ... matched as option 'codec' (codec name)
with argument 'copy'.
Reading option '-map_metadata' ... matched as option 'map_metadata'
(set metadata information of outfile from infile) with argument '0'.
Reading option '-id3v2_version' ... matched as AVOption
'id3v2_version' with argument '3'.
Reading option '02DayIsDone_copy.aif' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Successfully parsed a group of options.
Parsing a group of options: input file 02DayIsDone.aif.
Successfully parsed a group of options.
Opening an input file: 02DayIsDone.aif.
[aiff @ 0x1f02060] Format aiff probed with size=2048 and score=100
[aiff @ 0x1f02060] id3v2 ver:2 flags:00 len:2202
[aiff @ 0x1f02060] Before avformat_find_stream_info() pos: 54 bytes
read:34988 seeks:2
[aiff @ 0x1f02060] max_analyze_duration 5000000 reached at 5015510 microseconds
[aiff @ 0x1f02060] After avformat_find_stream_info() pos: 897078 bytes
read:952492 seeks:2 frames:218
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, aiff, from '02DayIsDone.aif':
  Metadata:
    title           : Day Is Done
    artist          : Peter, Paul & Mary
    album           : Peter, Paul And Mommy
    track           : 2/12
    TPA             : 1/1
    genre           : Country & Folk
    date            : 1969
  Duration: 00:03:16.83, start: 0.000000, bitrate: 1411 kb/s
    Stream #0:0, 218, 1/44100: Audio: pcm_s16be, 44100 Hz, stereo,
s16, 1411 kb/s
Successfully opened the file.
Parsing a group of options: output file 02DayIsDone_copy.aif.
Applying option f (force format) with argument aiff.
Applying option codec (codec name) with argument copy.
Applying option map_metadata (set metadata information of outfile from
infile) with argument 0.
Successfully parsed a group of options.
Opening an output file: 02DayIsDone_copy.aif.
Successfully opened the file.
Output #0, aiff, to '02DayIsDone_copy.aif':
  Metadata:
    title           : Day Is Done
    artist          : Peter, Paul & Mary
    album           : Peter, Paul And Mommy
    track           : 2/12
    TPA             : 1/1
    genre           : Country & Folk
    date            : 1969
    encoder         : Lavf55.33.100
    Stream #0:0, 0, 1/44100: Audio: pcm_s16be (NONE / 0x454E4F4E),
44100 Hz, stereo, 1411 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
No more output streams to write to, finishing.
size=   33907kB time=00:03:16.82 bitrate=1411.2kbits/s
video:0kB audio:33906kB subtitle:0 data:0 global headers:0kB muxing
overhead 0.000213%
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x1f13940] Statistics: 4 seeks, 8481 writeouts
[AVIOContext @ 0x1f0a820] Statistics: 34757432 bytes read, 2 seeks


More information about the ffmpeg-user mailing list