[FFmpeg-user] When AIFF to WAV, ReplayGain is not extracted as Side data.

yas tam yaslam0521 at gmail.com
Tue Mar 12 10:14:21 EET 2019


When AIFF to WAV, ReplayGain is not extracted as Side data.
ReplayGain is correctly extracted as Side data when Flac to WAV or Apple
Lossless (m4a) to WAV.

    Side data:
      replaygain: track gain - -10.880000, track peak - 0.000023, album
gain - -10.880000, album peak - 0.000023,



How can I extract ReplayGain as Side data when using AIFF to WAV?

AIFF, Flac, Apple Lossless (m4a), I attach the logs when converted each to
WAV.
-------------- next part --------------
$ ffmpeg -i 01\ Hello.aiff aiff_output.wav
ffmpeg version 4.1.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1.1 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags='-I/Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home/include/darwin' --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-videotoolbox --disable-libjack --disable-indev=jack --enable-libaom --enable-libsoxr
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, aiff, from '01 Hello.aiff':
  Metadata:
    REPLAYGAIN_TRACK_GAIN: -10.88 dB
    REPLAYGAIN_TRACK_PEAK: 0.998840
    Dynamic Range (R128): 17.064826
    Dynamic Range (DR): 5
    REPLAYGAIN_ALBUM_GAIN: -10.88 dB
    REPLAYGAIN_ALBUM_PEAK: 0.998840
    Album Dynamic Range (R128): 17.097127
    Album Dynamic Range (DR): 5
    TOTALTRACKS     : 14
    ALBUMARTIST     : Adele
    TOTALDISCS      : 1
    TSO2            : Adele
    comment         : C70E1D0E+271166+14+150+22312+39043+65190+87008+105415+123447+140354+161800+178830+199215+218092+232969+253249
    composer        : Greg Kurstin
    album           : 25
    title           : Hello_AIFF
    artist          : Adele
    genre           : Pop
    date            : 2015
    track           : 1/14
    album_artist    : Adele
    disc            : 1/1
    album-sort      : 25
  Duration: 00:04:55.49, start: 0.000000, bitrate: 1416 kb/s
    Stream #0:0: Audio: pcm_s16be, 44100 Hz, stereo, s16, 1411 kb/s
    Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1240x1240 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      comment         : Cover (front)
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16be (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, wav, to 'aiff_output.wav':
  Metadata:
    REPLAYGAIN_TRACK_GAIN: -10.88 dB
    REPLAYGAIN_TRACK_PEAK: 0.998840
    Dynamic Range (R128): 17.064826
    Dynamic Range (DR): 5
    REPLAYGAIN_ALBUM_GAIN: -10.88 dB
    REPLAYGAIN_ALBUM_PEAK: 0.998840
    Album Dynamic Range (R128): 17.097127
    Album Dynamic Range (DR): 5
    TOTALTRACKS     : 14
    ALBUMARTIST     : Adele
    TOTALDISCS      : 1
    TSO2            : Adele
    ICMT            : C70E1D0E+271166+14+150+22312+39043+65190+87008+105415+123447+140354+161800+178830+199215+218092+232969+253249
    composer        : Greg Kurstin
    IPRD            : 25
    INAM            : Hello_AIFF
    IART            : Adele
    IGNR            : Pop
    ICRD            : 2015
    IPRT            : 1/14
    album_artist    : Adele
    disc            : 1/1
    album-sort      : 25
    ISFT            : Lavf58.20.100
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
    Metadata:
      encoder         : Lavc58.35.100 pcm_s16le
size=   50904kB time=00:04:55.49 bitrate=1411.2kbits/s speed= 542x    
video:0kB audio:50903kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000541%

-------------- next part --------------
$ ffmpeg -i 01\ Hello.flac flac_output.wav
ffmpeg version 4.1.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1.1 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags='-I/Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home/include/darwin' --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-videotoolbox --disable-libjack --disable-indev=jack --enable-libaom --enable-libsoxr
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
Input #0, flac, from '01 Hello.flac':
  Metadata:
    ALBUM           : 25
    ALBUM DYNAMIC RANGE (DR): 5
    ALBUM DYNAMIC RANGE (R128): 17.097127
    album_artist    : Adele
    ALBUMARTISTSORT : Adele
    ALBUMSORT       : 25
    ARTIST          : Adele
    COMPOSER        : Greg Kurstin
    DATE            : 2015
    disc            : 1
    DISCTOTAL       : 1
    DYNAMIC RANGE (DR): 5
    DYNAMIC RANGE (R128): 17.064826
    ENCODER         : X Lossless Decoder 20181001
    GENRE           : Pop
    ITUNES_CDDB_1   : C70E1D0E+271166+14+150+22312+39043+65190+87008+105415+123447+140354+161800+178830+199215+218092+232969+253249
    REPLAYGAIN_ALBUM_GAIN: -10.88 dB
    REPLAYGAIN_ALBUM_PEAK: 0.998840
    REPLAYGAIN_TRACK_GAIN: -10.88 dB
    REPLAYGAIN_TRACK_PEAK: 0.998840
    TITLE           : Hello_FLAC
    track           : 1
    TRACKTOTAL      : 14
  Duration: 00:04:55.49, start: 0.000000, bitrate: 799 kb/s
    Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
    Side data:
      replaygain: track gain - -10.880000, track peak - 0.000023, album gain - -10.880000, album peak - 0.000023, 
    Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1240x1240 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      comment         : Cover (front)
Stream mapping:
  Stream #0:0 -> #0:0 (flac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, wav, to 'flac_output.wav':
  Metadata:
    IPRD            : 25
    ALBUM DYNAMIC RANGE (DR): 5
    ALBUM DYNAMIC RANGE (R128): 17.097127
    album_artist    : Adele
    ALBUMARTISTSORT : Adele
    ALBUMSORT       : 25
    IART            : Adele
    COMPOSER        : Greg Kurstin
    ICRD            : 2015
    disc            : 1
    DISCTOTAL       : 1
    DYNAMIC RANGE (DR): 5
    DYNAMIC RANGE (R128): 17.064826
    TRACKTOTAL      : 14
    IGNR            : Pop
    ITUNES_CDDB_1   : C70E1D0E+271166+14+150+22312+39043+65190+87008+105415+123447+140354+161800+178830+199215+218092+232969+253249
    REPLAYGAIN_ALBUM_GAIN: -10.88 dB
    REPLAYGAIN_ALBUM_PEAK: 0.998840
    REPLAYGAIN_TRACK_GAIN: -10.88 dB
    REPLAYGAIN_TRACK_PEAK: 0.998840
    INAM            : Hello_FLAC
    IPRT            : 1
    ISFT            : Lavf58.20.100
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
    Metadata:
      encoder         : Lavc58.35.100 pcm_s16le
    Side data:
      replaygain: track gain - -10.880000, track peak - 0.000023, album gain - -10.880000, album peak - 0.000023, 
size=   50904kB time=00:04:55.49 bitrate=1411.2kbits/s speed= 647x    
video:0kB audio:50903kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000307%

-------------- next part --------------
$ ffmpeg -i 01\ Hello.m4a m4a_output.wav
ffmpeg version 4.1.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1.1 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags='-I/Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home/include/darwin' --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-videotoolbox --disable-libjack --disable-indev=jack --enable-libaom --enable-libsoxr
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd932800000] stream 0, timescale not set
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '01 Hello.m4a':
  Metadata:
    major_brand     : M4A 
    minor_version   : 0
    compatible_brands: M4A mp42isom
    creation_time   : 1974-08-18T10:22:12.000000Z
    Album Dynamic Range (DR): 5
    Album Dynamic Range (R128): 17.097127
    Dynamic Range (DR): 5
    Dynamic Range (R128): 17.064826
    replaygain_album_gain: -10.88 dB
    replaygain_album_peak: 0.998840
    replaygain_track_gain: -10.88 dB
    replaygain_track_peak: 0.998840
    soaa            : Adele
    soal            : 25
    album_artist    : Adele
    disc            : 1/1
    sort_album_artist: Adele
    sort_album      : 25
    track           : 1/14
    artist          : Adele
    album           : 25
    comment         : 
    date            : 2015
    genre           : Pop
    title           : Hello_ALAC
    encoder         : X Lossless Decoder 20161007, QuickTime 7.7.3
    composer        : Greg Kurstin
  Duration: 00:04:55.49, start: 0.000000, bitrate: 813 kb/s
    Stream #0:0(eng): Audio: alac (alac / 0x63616C61), 44100 Hz, stereo, s16p, 807 kb/s (default)
    Metadata:
      creation_time   : 1974-08-18T10:22:12.000000Z
    Side data:
      replaygain: track gain - -10.880000, track peak - 0.000023, album gain - -10.880000, album peak - 0.000023, 
    Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1240x1240 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (alac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, wav, to 'm4a_output.wav':
  Metadata:
    major_brand     : M4A 
    minor_version   : 0
    compatible_brands: M4A mp42isom
    composer        : Greg Kurstin
    Album Dynamic Range (DR): 5
    Album Dynamic Range (R128): 17.097127
    Dynamic Range (DR): 5
    Dynamic Range (R128): 17.064826
    replaygain_album_gain: -10.88 dB
    replaygain_album_peak: 0.998840
    replaygain_track_gain: -10.88 dB
    replaygain_track_peak: 0.998840
    soaa            : Adele
    soal            : 25
    album_artist    : Adele
    disc            : 1/1
    sort_album_artist: Adele
    sort_album      : 25
    IPRT            : 1/14
    IART            : Adele
    IPRD            : 25
    ICMT            : 
    ICRD            : 2015
    IGNR            : Pop
    INAM            : Hello_ALAC
    ISFT            : Lavf58.20.100
    Stream #0:0(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s (default)
    Metadata:
      creation_time   : 1974-08-18T10:22:12.000000Z
      encoder         : Lavc58.35.100 pcm_s16le
    Side data:
      replaygain: track gain - -10.880000, track peak - 0.000023, album gain - -10.880000, album peak - 0.000023, 
size=   50904kB time=00:04:55.49 bitrate=1411.2kbits/s speed= 255x    
video:0kB audio:50903kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000315%



More information about the ffmpeg-user mailing list