Re: Blu-Ray audio codecs: do ffmpeg decode them as should? (Also tried fb2k.)
Reply #2 – 2025-02-25 09:10:57
foobar2000's bitcompare says the two it can read, differ at the -31.51 dBFS mark. Huh? Downmixing? Dialog normalization? Dynamic range compression? But why? (Reproduced with portable out of the box fb2k, it shouldn't be my fault.)ffmpeg-ing it to .wv gives 24 bits. What? ffmpeg notoriously puts everything > 16 in 32-bit WavPack, so why not here? This stream decodes to a planar format (s32p), which is supported by ffmpeg's built-in WavPack encoder. The other streams decode to a packed format (s32), which is supported by ffmpeg's subpar libwavpack wrapper. (Wait, how old is your copy of ffmpeg? Didn't they get rid of the libwavpack wrapper a while ago?) None of my ffmpegs up to this 7.1 have ever given out 24-bit .wv unless forced by -bits_per_raw_sample. Upon encoding either stream - both "to 32" and the right way, it reports: encoder : Lavc61.19.100 wavpackffmpeg version 7.1-essentials_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers built with gcc 14.2.0 (Rev1, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband libavutil 59. 39.100 / 59. 39.100 libavcodec 61. 19.100 / 61. 19.100 libavformat 61. 7.100 / 61. 7.100 libavdevice 61. 3.100 / 61. 3.100 libavfilter 10. 4.100 / 10. 4.100 libswscale 8. 3.100 / 8. 3.100 libswresample 5. 3.100 / 5. 3.100 libpostproc 58. 3.100 / 58. 3.100