Opened 5 months ago

Last modified 5 months ago

#7614 new defect

flac to mp3 conversion with -af volume=replaygain=[track|album] doesn't remove replaygain side data

Reported by: q3cpma Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
From what I've gathered on the IRC, using the volume=replaygain=album (or track) audio filter should remove the side data while applying it. When converting from flac to mp3 (lame), these are kept, but not when converting from flac to flac (as it should).
I also tried with a different input format (wv) and the audio filters does nothing; probably because wv doesn't have a "Side data" section in ffprobe.

To resume, here's a script illustrating the bug:
1) Convert from flac to mp3, audio filter works, but side data is kept. During playback, the replaygain gain is applied a second time.
2) Same but with flac to flac. Since the side data isn't kept, everything is perfect.
3-4) flac to wv then wv to mp3.
5) ffprobe showing the results: only the output of 1) and the original have the dreaded side data.

I also tried with -af volume=replaygain=drop,asidedata=mode=delete to no avail.

How to reproduce:

Script started on 2018-12-13 18:45:32+01:00
~ $ ffmpege -i test.flac -map_metadata -1 -af volume=replaygain=album -c:a libmp3lame -q:a 3 test.mp3
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 8.2.0 (Gentoo 8.2.0-r5 p1.6)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-4.1/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O3 -march=native -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-optimizations --disable-libcelt --enable-nonfree --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls --disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --disable-libtls --disable-lzma --enable-network --disable-opencl --enable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --disable-libfdk-aac --disable-libopenjpeg --enable-libbluray --disable-libgme --disable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --disable-librsvg --disable-ffnvcodec --enable-libvorbis --enable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --enable-libass --disable-lv2 --disable-libfreetype --enable-librubberband --disable-libzmq --enable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-libaom --disable-libopenh264 --disable-libsnappy --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --enable-libx265 --disable-libxvid --disable-gnutls --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  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 'test.flac':
  Metadata:
    REPLAYGAIN_ALBUM_PEAK: 0.960021
    TITLE	    : The Bite
    track	    : 05
    TRACKTOTAL	    : 7
    ARTIST	    : Comus
    album_artist    : Comus
    ALBUM	    : First Utterance
    DATE	    : 1971
    REPLAYGAIN_ALGORITHM: ITU-R BS.1770
    REPLAYGAIN_REFERENCE_LOUDNESS: -18.00
    REPLAYGAIN_TRACK_GAIN: -6.92 dB
    REPLAYGAIN_TRACK_PEAK: 0.960021
    REPLAYGAIN_ALBUM_GAIN: -4.90 dB
    ENCODER	    : Lavf57.83.100
  Duration: 00:05:26.87, start: 0.000000, bitrate: 953 kb/s
    Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
    Side data:
      replaygain: track gain - -6.920000, track peak - 0.000022, album gain - -4.900000, album peak - 0.000022,
Stream mapping:
  Stream #0:0 -> #0:0 (flac (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
Output #0, mp3, to 'test.mp3':
  Metadata:
    TSSE	    : Lavf58.20.100
    Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, fltp (16 bit)
    Metadata:
      encoder	      : Lavc58.35.100 libmp3lame
    Side data:
      replaygain: track gain - -6.920000, track peak - 0.000022, album gain - -4.900000, album peak - 0.000022,
size=	 7449kB time=00:05:26.87 bitrate= 186.7kbits/s speed=96.7x
video:0kB audio:7449kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.003317%
~ $ ffmpeg -i test.flac -map_metadata -1 -af volume=replaygain=album test_out.flac
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 8.2.0 (Gentoo 8.2.0-r5 p1.6)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-4.1/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O3 -march=native -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-optimizations --disable-libcelt --enable-nonfree --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls --disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --disable-libtls --disable-lzma --enable-network --disable-opencl --enable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --disable-libfdk-aac --disable-libopenjpeg --enable-libbluray --disable-libgme --disable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --disable-librsvg --disable-ffnvcodec --enable-libvorbis --enable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --enable-libass --disable-lv2 --disable-libfreetype --enable-librubberband --disable-libzmq --enable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-libaom --disable-libopenh264 --disable-libsnappy --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --enable-libx265 --disable-libxvid --disable-gnutls --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  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 'test.flac':
  Metadata:
    REPLAYGAIN_ALBUM_PEAK: 0.960021
    TITLE	    : The Bite
    track	    : 05
    TRACKTOTAL	    : 7
    ARTIST	    : Comus
    album_artist    : Comus
    ALBUM	    : First Utterance
    DATE	    : 1971
    REPLAYGAIN_ALGORITHM: ITU-R BS.1770
    REPLAYGAIN_REFERENCE_LOUDNESS: -18.00
    REPLAYGAIN_TRACK_GAIN: -6.92 dB
    REPLAYGAIN_TRACK_PEAK: 0.960021
    REPLAYGAIN_ALBUM_GAIN: -4.90 dB
    ENCODER	    : Lavf57.83.100
  Duration: 00:05:26.87, start: 0.000000, bitrate: 953 kb/s
    Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
    Side data:
      replaygain: track gain - -6.920000, track peak - 0.000022, album gain - -4.900000, album peak - 0.000022,
Stream mapping:
  Stream #0:0 -> #0:0 (flac (native) -> flac (native))
Press [q] to stop, [?] for help
[flac @ 0x564a5a4e3c80] encoding as 24 bits-per-sample
Output #0, flac, to 'test_out.flac':
  Metadata:
    encoder	    : Lavf58.20.100
    Stream #0:0: Audio: flac, 44100 Hz, stereo, s32 (24 bit), 128 kb/s
    Metadata:
      encoder	      : Lavc58.35.100 flac
    Side data:
      replaygain: track gain - -6.920000, track peak - 0.000022, album gain - -4.900000, album peak - 0.000022,
size=	63417kB time=00:05:26.86 bitrate=1589.4kbits/s speed= 424x
video:0kB audio:63409kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.012764%
~ $ ffmpeg -i test.flac test.wv
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 8.2.0 (Gentoo 8.2.0-r5 p1.6)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-4.1/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O3 -march=native -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-optimizations --disable-libcelt --enable-nonfree --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls --disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --disable-libtls --disable-lzma --enable-network --disable-opencl --enable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --disable-libfdk-aac --disable-libopenjpeg --enable-libbluray --disable-libgme --disable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --disable-librsvg --disable-ffnvcodec --enable-libvorbis --enable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --enable-libass --disable-lv2 --disable-libfreetype --enable-librubberband --disable-libzmq --enable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-libaom --disable-libopenh264 --disable-libsnappy --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --enable-libx265 --disable-libxvid --disable-gnutls --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  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 'test.flac':
  Metadata:
    REPLAYGAIN_ALBUM_PEAK: 0.960021
    TITLE	    : The Bite
    track	    : 05
    TRACKTOTAL	    : 7
    ARTIST	    : Comus
    album_artist    : Comus
    ALBUM	    : First Utterance
    DATE	    : 1971
    REPLAYGAIN_ALGORITHM: ITU-R BS.1770
    REPLAYGAIN_REFERENCE_LOUDNESS: -18.00
    REPLAYGAIN_TRACK_GAIN: -6.92 dB
    REPLAYGAIN_TRACK_PEAK: 0.960021
    REPLAYGAIN_ALBUM_GAIN: -4.90 dB
    ENCODER	    : Lavf57.83.100
  Duration: 00:05:26.87, start: 0.000000, bitrate: 953 kb/s
    Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
    Side data:
      replaygain: track gain - -6.920000, track peak - 0.000022, album gain - -4.900000, album peak - 0.000022,
Stream mapping:
  Stream #0:0 -> #0:0 (flac (native) -> wavpack (native))
Press [q] to stop, [?] for help
Output #0, wv, to 'test.wv':
  Metadata:
    REPLAYGAIN_ALBUM_PEAK: 0.960021
    TITLE	    : The Bite
    track	    : 05
    TRACKTOTAL	    : 7
    ARTIST	    : Comus
    album_artist    : Comus
    ALBUM	    : First Utterance
    DATE	    : 1971
    REPLAYGAIN_ALGORITHM: ITU-R BS.1770
    REPLAYGAIN_REFERENCE_LOUDNESS: -18.00
    REPLAYGAIN_TRACK_GAIN: -6.92 dB
    REPLAYGAIN_TRACK_PEAK: 0.960021
    REPLAYGAIN_ALBUM_GAIN: -4.90 dB
    encoder	    : Lavf58.20.100
    Stream #0:0: Audio: wavpack, 44100 Hz, stereo, s16p, 128 kb/s
    Metadata:
      encoder	      : Lavc58.35.100 wavpack
    Side data:
      replaygain: track gain - -6.920000, track peak - 0.000022, album gain - -4.900000, album peak - 0.000022,
size=	38477kB time=00:05:27.00 bitrate= 963.9kbits/s speed= 459x
video:0kB audio:38476kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.001221%
~ $ ffmpeg -i test.wv -map_metadata -1 -af volume=replaygain=album -c:a libmp3lame -q:a 3 test2.mp3
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 8.2.0 (Gentoo 8.2.0-r5 p1.6)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-4.1/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O3 -march=native -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-optimizations --disable-libcelt --enable-nonfree --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls --disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --disable-libtls --disable-lzma --enable-network --disable-opencl --enable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --disable-libfdk-aac --disable-libopenjpeg --enable-libbluray --disable-libgme --disable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --disable-librsvg --disable-ffnvcodec --enable-libvorbis --enable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --enable-libass --disable-lv2 --disable-libfreetype --enable-librubberband --disable-libzmq --enable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-libaom --disable-libopenh264 --disable-libsnappy --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --enable-libx265 --disable-libxvid --disable-gnutls --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  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, wv, from 'test.wv':
  Metadata:
    REPLAYGAIN_ALBUM_PEAK: 0.960021
    TITLE	    : The Bite
    track	    : 05
    TRACKTOTAL	    : 7
    ARTIST	    : Comus
    album_artist    : Comus
    ALBUM	    : First Utterance
    DATE	    : 1971
    REPLAYGAIN_ALGORITHM: ITU-R BS.1770
    REPLAYGAIN_REFERENCE_LOUDNESS: -18.00
    REPLAYGAIN_TRACK_GAIN: -6.92 dB
    REPLAYGAIN_TRACK_PEAK: 0.960021
    REPLAYGAIN_ALBUM_GAIN: -4.90 dB
    encoder	    : Lavf58.20.100
  Duration: 00:05:26.87, start: 0.000000, bitrate: 964 kb/s
    Stream #0:0: Audio: wavpack, 44100 Hz, stereo, s16p
Stream mapping:
  Stream #0:0 -> #0:0 (wavpack (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
Output #0, mp3, to 'test2.mp3':
  Metadata:
    TSSE	    : Lavf58.20.100
    Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, fltp
    Metadata:
      encoder	      : Lavc58.35.100 libmp3lame
size=	 7454kB time=00:05:26.87 bitrate= 186.8kbits/s speed=98.3x
video:0kB audio:7453kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.003315%
~ $ for i in test*; do ffprobe "$i"; done
ffprobe version 4.1 Copyright (c) 2007-2018 the FFmpeg developers
  built with gcc 8.2.0 (Gentoo 8.2.0-r5 p1.6)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-4.1/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O3 -march=native -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-optimizations --disable-libcelt --enable-nonfree --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls --disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --disable-libtls --disable-lzma --enable-network --disable-opencl --enable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --disable-libfdk-aac --disable-libopenjpeg --enable-libbluray --disable-libgme --disable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --disable-librsvg --disable-ffnvcodec --enable-libvorbis --enable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --enable-libass --disable-lv2 --disable-libfreetype --enable-librubberband --disable-libzmq --enable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-libaom --disable-libopenh264 --disable-libsnappy --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --enable-libx265 --disable-libxvid --disable-gnutls --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  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 'test.flac':
  Metadata:
    REPLAYGAIN_ALBUM_PEAK: 0.960021
    TITLE	    : The Bite
    track	    : 05
    TRACKTOTAL	    : 7
    ARTIST	    : Comus
    album_artist    : Comus
    ALBUM	    : First Utterance
    DATE	    : 1971
    REPLAYGAIN_ALGORITHM: ITU-R BS.1770
    REPLAYGAIN_REFERENCE_LOUDNESS: -18.00
    REPLAYGAIN_TRACK_GAIN: -6.92 dB
    REPLAYGAIN_TRACK_PEAK: 0.960021
    REPLAYGAIN_ALBUM_GAIN: -4.90 dB
    ENCODER	    : Lavf57.83.100
  Duration: 00:05:26.87, start: 0.000000, bitrate: 953 kb/s
    Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
    Side data:
      replaygain: track gain - -6.920000, track peak - 0.000022, album gain - -4.900000, album peak - 0.000022,
ffprobe version 4.1 Copyright (c) 2007-2018 the FFmpeg developers
  built with gcc 8.2.0 (Gentoo 8.2.0-r5 p1.6)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-4.1/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O3 -march=native -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-optimizations --disable-libcelt --enable-nonfree --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls --disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --disable-libtls --disable-lzma --enable-network --disable-opencl --enable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --disable-libfdk-aac --disable-libopenjpeg --enable-libbluray --disable-libgme --disable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --disable-librsvg --disable-ffnvcodec --enable-libvorbis --enable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --enable-libass --disable-lv2 --disable-libfreetype --enable-librubberband --disable-libzmq --enable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-libaom --disable-libopenh264 --disable-libsnappy --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --enable-libx265 --disable-libxvid --disable-gnutls --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  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, mp3, from 'test.mp3':
  Metadata:
    encoder	    : Lavf58.20.100
  Duration: 00:05:26.90, start: 0.025057, bitrate: 186 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 186 kb/s
    Metadata:
      encoder	      : Lavc58.35
    Side data:
      replaygain: track gain - -6.900000, track peak - 0.000022, album gain - -4.900000, album peak - unknown,
ffprobe version 4.1 Copyright (c) 2007-2018 the FFmpeg developers
  built with gcc 8.2.0 (Gentoo 8.2.0-r5 p1.6)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-4.1/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O3 -march=native -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-optimizations --disable-libcelt --enable-nonfree --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls --disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --disable-libtls --disable-lzma --enable-network --disable-opencl --enable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --disable-libfdk-aac --disable-libopenjpeg --enable-libbluray --disable-libgme --disable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --disable-librsvg --disable-ffnvcodec --enable-libvorbis --enable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --enable-libass --disable-lv2 --disable-libfreetype --enable-librubberband --disable-libzmq --enable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-libaom --disable-libopenh264 --disable-libsnappy --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --enable-libx265 --disable-libxvid --disable-gnutls --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  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, wv, from 'test.wv':
  Metadata:
    REPLAYGAIN_ALBUM_PEAK: 0.960021
    TITLE	    : The Bite
    track	    : 05
    TRACKTOTAL	    : 7
    ARTIST	    : Comus
    album_artist    : Comus
    ALBUM	    : First Utterance
    DATE	    : 1971
    REPLAYGAIN_ALGORITHM: ITU-R BS.1770
    REPLAYGAIN_REFERENCE_LOUDNESS: -18.00
    REPLAYGAIN_TRACK_GAIN: -6.92 dB
    REPLAYGAIN_TRACK_PEAK: 0.960021
    REPLAYGAIN_ALBUM_GAIN: -4.90 dB
    encoder	    : Lavf58.20.100
  Duration: 00:05:26.87, start: 0.000000, bitrate: 964 kb/s
    Stream #0:0: Audio: wavpack, 44100 Hz, stereo, s16p
ffprobe version 4.1 Copyright (c) 2007-2018 the FFmpeg developers
  built with gcc 8.2.0 (Gentoo 8.2.0-r5 p1.6)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-4.1/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O3 -march=native -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-optimizations --disable-libcelt --enable-nonfree --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls --disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --disable-libtls --disable-lzma --enable-network --disable-opencl --enable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --disable-libfdk-aac --disable-libopenjpeg --enable-libbluray --disable-libgme --disable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --disable-librsvg --disable-ffnvcodec --enable-libvorbis --enable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --enable-libass --disable-lv2 --disable-libfreetype --enable-librubberband --disable-libzmq --enable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-libaom --disable-libopenh264 --disable-libsnappy --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --enable-libx265 --disable-libxvid --disable-gnutls --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  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, mp3, from 'test2.mp3':
  Metadata:
    encoder	    : Lavf58.20.100
  Duration: 00:05:26.90, start: 0.025057, bitrate: 186 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, fltp, 186 kb/s
    Metadata:
      encoder	      : Lavc58.35
ffprobe version 4.1 Copyright (c) 2007-2018 the FFmpeg developers
  built with gcc 8.2.0 (Gentoo 8.2.0-r5 p1.6)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --docdir=/usr/share/doc/ffmpeg-4.1/html --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O3 -march=native -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --disable-optimizations --disable-libcelt --enable-nonfree --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls --disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv --disable-libtls --disable-lzma --enable-network --disable-opencl --enable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-sdl2 --disable-vaapi --disable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl --disable-libv4l2 --disable-libpulse --disable-libdrm --disable-libjack --disable-libopencore-amrwb --disable-libopencore-amrnb --disable-libcodec2 --disable-libfdk-aac --disable-libopenjpeg --enable-libbluray --disable-libgme --disable-libgsm --disable-mmal --disable-libmodplug --enable-libopus --disable-libilbc --disable-librtmp --disable-libssh --disable-libspeex --disable-libsrt --disable-librsvg --disable-ffnvcodec --enable-libvorbis --enable-libvpx --disable-libzvbi --disable-appkit --disable-libbs2b --disable-chromaprint --disable-libflite --disable-frei0r --disable-libfribidi --disable-fontconfig --disable-ladspa --enable-libass --disable-lv2 --disable-libfreetype --enable-librubberband --disable-libzmq --enable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-libaom --disable-libopenh264 --disable-libsnappy --disable-libtheora --disable-libtwolame --disable-libwavpack --disable-libwebp --enable-libx264 --enable-libx265 --disable-libxvid --disable-gnutls --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-neon --disable-vfp --disable-vfpv3 --disable-armv8 --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --disable-altivec --disable-amd3dnow --disable-amd3dnowext --disable-fma4 --disable-xop --cpu=host --disable-doc --disable-htmlpages --enable-manpages
  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 'test_out.flac':
  Metadata:
    ENCODER	    : Lavf58.20.100
  Duration: 00:05:26.87, start: 0.000000, bitrate: 1589 kb/s
    Stream #0:0: Audio: flac, 44100 Hz, stereo, s32 (24 bit)
~ $
Script done on 2018-12-13 18:46:31+01:00

Attachments (1)

cjffnb.flac (66.9 KB) - added by cehoyos 5 months ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 5 months ago by richardpl

Missing files.

comment:2 Changed 5 months ago by q3cpma

It looks like -write_xing 0 "solves" it, but without the xing header, some crucial informations (especially VBR) seems missing.

comment:3 Changed 5 months ago by q3cpma

Well, it's easy to reproduce, but I can give you a 1 second file if this is really necessary.

comment:4 Changed 5 months ago by richardpl

It is only easy to reproduce if used sample is attached here.

comment:5 Changed 5 months ago by q3cpma

Here's a 1s cut of test.flac: https://my.mixtape.moe/cjffnb.flac

Changed 5 months ago by cehoyos

Note: See TracTickets for help on using tickets.