[FFmpeg-user] FFmpeg does not add meta tags to mp2 files

andrew andrew.david.strong at gmail.com
Sat Jul 25 10:19:08 CEST 2015


The most recent git FFmpeg does not add meta tags to mp2 files when
using the native encoder. An example here:

+-------------------------
andrew at ilium~/media/luckynight/test$ ffmpeg -i luckynight.wav -c:a mp2 -b:a 320k -metadata artist="Jody Marie Gnant" test.mp2
ffmpeg version N-73994-g1909a91 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.8.2 (GCC)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/doc/ffmpeg --mandir=/usr/man --enable-postproc --enable-avfilter --enable-pthreads --enable-shared --disable-static --disable-ffserver --enable-libvorbis --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libvpx --enable-libopus --enable-libfdk-aac --enable-libfaac --enable-libtheora --enable-libilbc --enable-zlib --enable-libfreetype --disable-x11grab --enable-nonfree --enable-gpl --enable-version3 --enable-libsoxr --enable-libopencore-amrnb --enable-libopencore-amrwb
  libavutil      54. 29.100 / 54. 29.100
  libavcodec     56. 52.100 / 56. 52.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 28.100 /  5. 28.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, wav, from 'luckynight.wav':
  Duration: 00:01:00.48, bitrate: 1411 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
Output #0, mp2, to 'test.mp2':
  Metadata:
    artist          : Jody Marie Gnant
    encoder         : Lavf56.40.101
    Stream #0:0: Audio: mp2, 44100 Hz, stereo, s16, 320 kb/s
    Metadata:
      encoder         : Lavc56.52.100 mp2
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le (native) -> mp2 (native))
Press [q] to stop, [?] for help
size=    2363kB time=00:01:00.48 bitrate= 320.1kbits/s    
video:0kB audio:2363kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
andrew at ilium~/media/luckynight/test$ 

+-------------------------

id3v2 2.4.0 tages can be added to such files using Mutagen's mid3v2,
is there something I am missing with FFmpeg and tagging mp2 files?

Thanks,

Andrew

-- 
You think that's air you're breathing now?


More information about the ffmpeg-user mailing list