slhck / ffmpeg-normalize

Audio Normalization for Python/ffmpeg
MIT License
1.28k stars 118 forks source link

Surround sound 5.1 is (merged to?) stereo #237

Closed joshinils closed 1 year ago

joshinils commented 1 year ago

Expected behavior The channel layouts are retained, 5.1 stays 5.1 (and 7.1 stays 7.1)

Actual behavior all audio streams are now two-channel, stereo

Command The exact command you were trying to run:

['ffmpeg-normalize', '--pre-filter', 'channelmap=channel_layout=5.1', '-pr', '-f', '-ar', '48000', '-c:a', 'opus', '-b:a', '320000', 'normalized_temp_single/Indiana Jones und das Königreich des Kristallschädels_2008 - BD_old.mkv.audio-004.mkv', '-o', 'normalized_temp/Indiana Jones und das Königreich des Kristallschädels_2008 - BD_old.mkv.audio-004.mkv.normalized.mkv', '-e', '-strict -2']
ffprobe input ```log ffprobe version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2007-2021 the FFmpeg developers built with gcc 11 (Ubuntu 11.2.0-19ubuntu1) configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared WARNING: library configuration mismatch avcodec configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-libsmbclient avformat configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-libsmbclient avfilter configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-libsmbclient libavutil 56. 70.100 / 56. 70.100 libavcodec 58.134.100 / 58.134.100 libavformat 58. 76.100 / 58. 76.100 libavdevice 58. 13.100 / 58. 13.100 libavfilter 7.110.100 / 7.110.100 libswscale 5. 9.100 / 5. 9.100 libswresample 3. 9.100 / 3. 9.100 libpostproc 55. 9.100 / 55. 9.100 [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 7 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 8 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 9 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 10 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 11 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 12 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 13 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 14 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 15 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 16 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 17 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 18 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 19 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 20 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 21 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 22 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 23 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 24 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 25 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 26 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 27 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 28 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 29 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x5640f2544400] Could not find codec parameters for stream 30 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options Input #0, matroska,webm, from '../normalized_done/Indiana Jones und das Königreich des Kristallschädels_2008 - BD.mkv': Metadata: title : Indiana Jones und das Königreich des Kristallschädels DATE_RELEASED : 2008 creation_time : 2023-06-04T05:33:08.000000Z SUMMARY : Indiana Jones und das Königreich des Kristallschädels ENCODER : Lavf59.27.100 Duration: 02:02:32.42, start: 0.000000, bitrate: 15446 kb/s Chapters: Chapter #0:0: start 0.000000, end 441.608000 Metadata: title : Chapter 1 Chapter #0:1: start 441.608000, end 791.624000 Metadata: title : Chapter 2 Chapter #0:2: start 791.624000, end 1305.137000 Metadata: title : Chapter 3 Chapter #0:3: start 1305.137000, end 1659.158000 Metadata: title : Chapter 4 Chapter #0:4: start 1659.158000, end 2218.550000 Metadata: title : Chapter 5 Chapter #0:5: start 2218.550000, end 2795.126000 Metadata: title : Chapter 6 Chapter #0:6: start 2795.126000, end 3337.501000 Metadata: title : Chapter 7 Chapter #0:7: start 3337.501000, end 3946.609000 Metadata: title : Chapter 8 Chapter #0:8: start 3946.609000, end 4328.157000 Metadata: title : Chapter 9 Chapter #0:9: start 4328.157000, end 4913.075000 Metadata: title : Chapter 10 Chapter #0:10: start 4913.075000, end 5354.182000 Metadata: title : Chapter 11 Chapter #0:11: start 5354.182000, end 5764.259000 Metadata: title : Chapter 12 Chapter #0:12: start 5764.259000, end 6263.424000 Metadata: title : Chapter 13 Chapter #0:13: start 6263.424000, end 6669.329000 Metadata: title : Chapter 14 Chapter #0:14: start 6669.329000, end 6955.115000 Metadata: title : Chapter 15 Chapter #0:15: start 6955.115000, end 7352.345000 Metadata: title : Chapter 16 Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x800 [SAR 1:1 DAR 12:5], 23.98 fps, 23.98 tbr, 1k tbn, 180k tbc (default) Metadata: DURATION : 02:02:32.387000000 Stream #0:1(ger): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default) Metadata: title : Surround 5.1 DURATION : 02:02:32.416000000 Stream #0:2(eng): Audio: truehd, 48000 Hz, 5.1(side), s32 (24 bit) Metadata: title : Surround DURATION : 02:02:32.388000000 Stream #0:3(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s Metadata: title : Surround 5.1 DURATION : 02:02:32.416000000 Stream #0:4(spa): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s Metadata: title : Surround 5.1 DURATION : 02:02:32.416000000 Stream #0:5(fre): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s Metadata: title : Surround 5.1 DURATION : 02:02:32.416000000 Stream #0:6(ita): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s Metadata: title : Surround 5.1 DURATION : 02:02:32.416000000 Stream #0:7(ger): Subtitle: hdmv_pgs_subtitle (default) (forced) Metadata: DURATION : 00:20:30.104000000 Stream #0:8(ger): Subtitle: hdmv_pgs_subtitle Metadata: DURATION : 02:02:24.128000000 Stream #0:9(ger): Subtitle: hdmv_pgs_subtitle Metadata: DURATION : 00:20:30.104000000 Stream #0:10(eng): Subtitle: hdmv_pgs_subtitle Metadata: DURATION : 01:55:45.355000000 Stream #0:11(eng): Subtitle: hdmv_pgs_subtitle Metadata: DURATION : 01:55:57.701000000 Stream #0:12(dan): Subtitle: hdmv_pgs_subtitle Metadata: DURATION : 02:02:24.128000000 Stream #0:13(gre): Subtitle: hdmv_pgs_subtitle Metadata: DURATION : 02:02:24.128000000 Stream #0:14(spa): Subtitle: hdmv_pgs_subtitle Metadata: DURATION : 02:02:24.128000000 Stream #0:15(fin): Subtitle: hdmv_pgs_subtitle Metadata: DURATION : 02:02:24.128000000 Stream #0:16(fre): Subtitle: hdmv_pgs_subtitle Metadata: DURATION : 02:02:24.128000000 Stream #0:17(hun): Subtitle: hdmv_pgs_subtitle Metadata: DURATION : 02:02:24.128000000 Stream #0:18(ita): Subtitle: hdmv_pgs_subtitle Metadata: DURATION : 02:02:24.128000000 Stream #0:19(dut): Subtitle: hdmv_pgs_subtitle Metadata: DURATION : 02:02:24.128000000 Stream #0:20(nor): Subtitle: hdmv_pgs_subtitle Metadata: DURATION : 02:02:24.128000000 Stream #0:21(pol): Subtitle: hdmv_pgs_subtitle Metadata: DURATION : 02:02:24.128000000 Stream #0:22(por): Subtitle: hdmv_pgs_subtitle Metadata: DURATION : 02:02:24.128000000 Stream #0:23(swe): Subtitle: hdmv_pgs_subtitle Metadata: DURATION : 02:02:24.128000000 Stream #0:24(tur): Subtitle: hdmv_pgs_subtitle Metadata: DURATION : 02:02:24.128000000 Stream #0:25(spa): Subtitle: hdmv_pgs_subtitle Metadata: DURATION : 00:12:05.099000000 Stream #0:26(spa): Subtitle: hdmv_pgs_subtitle Metadata: DURATION : 00:12:05.099000000 Stream #0:27(fre): Subtitle: hdmv_pgs_subtitle Metadata: DURATION : 00:03:32.546000000 Stream #0:28(fre): Subtitle: hdmv_pgs_subtitle Metadata: DURATION : 00:03:32.546000000 Stream #0:29(ita): Subtitle: hdmv_pgs_subtitle Metadata: DURATION : 00:20:30.104000000 Stream #0:30(ita): Subtitle: hdmv_pgs_subtitle Metadata: DURATION : 00:20:30.104000000 ```
ffprobe output ```log ffprobe version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2007-2021 the FFmpeg developers built with gcc 11 (Ubuntu 11.2.0-19ubuntu1) configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared WARNING: library configuration mismatch avcodec configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-libsmbclient avformat configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-libsmbclient avfilter configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libaribb24 --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc --enable-libsmbclient libavutil 56. 70.100 / 56. 70.100 libavcodec 58.134.100 / 58.134.100 libavformat 58. 76.100 / 58. 76.100 libavdevice 58. 13.100 / 58. 13.100 libavfilter 7.110.100 / 7.110.100 libswscale 5. 9.100 / 5. 9.100 libswresample 3. 9.100 / 3. 9.100 libpostproc 55. 9.100 / 55. 9.100 [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 1 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 3 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 7 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 8 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 9 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 10 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 11 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 12 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 13 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 14 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 15 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 16 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 17 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 18 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 19 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 20 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 21 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 22 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 23 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [matroska,webm @ 0x563070b1f400] Could not find codec parameters for stream 24 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options Input #0, matroska,webm, from '../normalized/Indiana Jones und das Königreich des Kristallschädels_2008 - BD.mkv': Metadata: title : Indiana Jones und das Königreich des Kristallschädels DATE_RELEASED : 2008 creation_time : 2023-06-05T19:20:26.000000Z SUMMARY : Indiana Jones und das Königreich des Kristallschädels ENCODER : Lavf58.76.100 Duration: 02:02:32.42, start: -0.003000, bitrate: 12185 kb/s Chapters: Chapter #0:0: start 0.000000, end 441.608000 Metadata: title : Chapter 1 Chapter #0:1: start 441.608000, end 791.624000 Metadata: title : Chapter 2 Chapter #0:2: start 791.624000, end 1305.137000 Metadata: title : Chapter 3 Chapter #0:3: start 1305.137000, end 1659.158000 Metadata: title : Chapter 4 Chapter #0:4: start 1659.158000, end 2218.550000 Metadata: title : Chapter 5 Chapter #0:5: start 2218.550000, end 2795.126000 Metadata: title : Chapter 6 Chapter #0:6: start 2795.126000, end 3337.501000 Metadata: title : Chapter 7 Chapter #0:7: start 3337.501000, end 3946.609000 Metadata: title : Chapter 8 Chapter #0:8: start 3946.609000, end 4328.157000 Metadata: title : Chapter 9 Chapter #0:9: start 4328.157000, end 4913.075000 Metadata: title : Chapter 10 Chapter #0:10: start 4913.075000, end 5354.182000 Metadata: title : Chapter 11 Chapter #0:11: start 5354.182000, end 5764.259000 Metadata: title : Chapter 12 Chapter #0:12: start 5764.259000, end 6263.424000 Metadata: title : Chapter 13 Chapter #0:13: start 6263.424000, end 6669.329000 Metadata: title : Chapter 14 Chapter #0:14: start 6669.329000, end 6955.115000 Metadata: title : Chapter 15 Chapter #0:15: start 6955.115000, end 7352.345000 Metadata: title : Chapter 16 Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x800 [SAR 1:1 DAR 12:5], 23.98 fps, 23.98 tbr, 1k tbn, 180k tbc (default) Metadata: BPS : 10150635 DURATION : 02:02:32.387000000 NUMBER_OF_FRAMES: 176281 NUMBER_OF_BYTES : 9328925072 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:1(ger): Subtitle: hdmv_pgs_subtitle (default) (forced) Metadata: BPS : 652 DURATION : 00:19:44.558000000 NUMBER_OF_FRAMES: 8 NUMBER_OF_BYTES : 96686 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:2(ger): Subtitle: hdmv_pgs_subtitle Metadata: BPS : 28344 DURATION : 02:01:38.582000000 NUMBER_OF_FRAMES: 2107 NUMBER_OF_BYTES : 25859474 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:3(ger): Subtitle: hdmv_pgs_subtitle Metadata: BPS : 652 DURATION : 00:19:44.558000000 NUMBER_OF_FRAMES: 8 NUMBER_OF_BYTES : 96686 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle Metadata: BPS : 27332 DURATION : 01:54:50.217000000 NUMBER_OF_FRAMES: 2094 NUMBER_OF_BYTES : 23540629 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:5(eng): Subtitle: hdmv_pgs_subtitle Metadata: BPS : 29891 DURATION : 01:55:33.468000000 NUMBER_OF_FRAMES: 2404 NUMBER_OF_BYTES : 25906558 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:6(dan): Subtitle: hdmv_pgs_subtitle Metadata: BPS : 22316 DURATION : 02:01:38.582000000 NUMBER_OF_FRAMES: 2029 NUMBER_OF_BYTES : 20360019 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:7(gre): Subtitle: hdmv_pgs_subtitle Metadata: BPS : 22387 DURATION : 02:01:02.046000000 NUMBER_OF_FRAMES: 1943 NUMBER_OF_BYTES : 20322444 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:8(spa): Subtitle: hdmv_pgs_subtitle Metadata: BPS : 23370 DURATION : 02:01:38.582000000 NUMBER_OF_FRAMES: 2046 NUMBER_OF_BYTES : 21321493 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:9(fin): Subtitle: hdmv_pgs_subtitle Metadata: BPS : 20838 DURATION : 02:01:38.582000000 NUMBER_OF_FRAMES: 2000 NUMBER_OF_BYTES : 19011375 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:10(fre): Subtitle: hdmv_pgs_subtitle Metadata: BPS : 21591 DURATION : 02:01:38.582000000 NUMBER_OF_FRAMES: 2008 NUMBER_OF_BYTES : 19698255 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:11(hun): Subtitle: hdmv_pgs_subtitle Metadata: BPS : 20156 DURATION : 02:01:38.582000000 NUMBER_OF_FRAMES: 2047 NUMBER_OF_BYTES : 18388940 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:12(ita): Subtitle: hdmv_pgs_subtitle Metadata: BPS : 23712 DURATION : 02:01:38.582000000 NUMBER_OF_FRAMES: 2106 NUMBER_OF_BYTES : 21633101 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:13(dut): Subtitle: hdmv_pgs_subtitle Metadata: BPS : 18747 DURATION : 02:01:02.046000000 NUMBER_OF_FRAMES: 1910 NUMBER_OF_BYTES : 17017745 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:14(nor): Subtitle: hdmv_pgs_subtitle Metadata: BPS : 19515 DURATION : 02:01:38.582000000 NUMBER_OF_FRAMES: 2015 NUMBER_OF_BYTES : 17804752 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:15(pol): Subtitle: hdmv_pgs_subtitle Metadata: BPS : 22403 DURATION : 02:01:38.582000000 NUMBER_OF_FRAMES: 2034 NUMBER_OF_BYTES : 20438892 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:16(por): Subtitle: hdmv_pgs_subtitle Metadata: BPS : 24203 DURATION : 02:01:38.582000000 NUMBER_OF_FRAMES: 2084 NUMBER_OF_BYTES : 22081728 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:17(swe): Subtitle: hdmv_pgs_subtitle Metadata: BPS : 22557 DURATION : 02:01:38.582000000 NUMBER_OF_FRAMES: 2028 NUMBER_OF_BYTES : 20579422 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:18(tur): Subtitle: hdmv_pgs_subtitle Metadata: BPS : 23025 DURATION : 02:01:02.046000000 NUMBER_OF_FRAMES: 2062 NUMBER_OF_BYTES : 20901288 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:19(spa): Subtitle: hdmv_pgs_subtitle Metadata: BPS : 874 DURATION : 00:11:19.553000000 NUMBER_OF_FRAMES: 6 NUMBER_OF_BYTES : 74243 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:20(spa): Subtitle: hdmv_pgs_subtitle Metadata: BPS : 874 DURATION : 00:11:19.553000000 NUMBER_OF_FRAMES: 6 NUMBER_OF_BYTES : 74243 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:21(fre): Subtitle: hdmv_pgs_subtitle Metadata: BPS : 2829 DURATION : 00:02:47.000000000 NUMBER_OF_FRAMES: 6 NUMBER_OF_BYTES : 59066 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:22(fre): Subtitle: hdmv_pgs_subtitle Metadata: BPS : 2829 DURATION : 00:02:47.000000000 NUMBER_OF_FRAMES: 6 NUMBER_OF_BYTES : 59066 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:23(ita): Subtitle: hdmv_pgs_subtitle Metadata: BPS : 602 DURATION : 00:19:44.558000000 NUMBER_OF_FRAMES: 8 NUMBER_OF_BYTES : 89218 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:24(ita): Subtitle: hdmv_pgs_subtitle Metadata: BPS : 602 DURATION : 00:19:44.558000000 NUMBER_OF_FRAMES: 8 NUMBER_OF_BYTES : 89218 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:25(fre): Audio: opus, 48000 Hz, stereo, fltp (default) Metadata: title : Surround 5.1 ENCODER : Lavc58.134.100 opus BPS : 320400 DURATION : 02:02:32.417000000 NUMBER_OF_FRAMES: 367621 NUMBER_OF_BYTES : 294464421 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:26(ger): Audio: opus, 48000 Hz, stereo, fltp (default) Metadata: title : Surround 5.1 ENCODER : Lavc58.134.100 opus BPS : 320400 DURATION : 02:02:32.417000000 NUMBER_OF_FRAMES: 367621 NUMBER_OF_BYTES : 294464421 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:27(ita): Audio: opus, 48000 Hz, stereo, fltp (default) Metadata: title : Surround 5.1 ENCODER : Lavc58.134.100 opus BPS : 320400 DURATION : 02:02:32.417000000 NUMBER_OF_FRAMES: 367621 NUMBER_OF_BYTES : 294464421 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:28(spa): Audio: opus, 48000 Hz, stereo, fltp (default) Metadata: title : Surround 5.1 ENCODER : Lavc58.134.100 opus BPS : 320400 DURATION : 02:02:32.417000000 NUMBER_OF_FRAMES: 367621 NUMBER_OF_BYTES : 294464421 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:29(eng): Audio: opus, 48000 Hz, stereo, fltp (default) Metadata: title : Surround 5.1 ENCODER : Lavc58.134.100 opus BPS : 320400 DURATION : 02:02:32.417000000 NUMBER_OF_FRAMES: 367621 NUMBER_OF_BYTES : 294464421 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES Stream #0:30(eng): Audio: opus, 48000 Hz, stereo, fltp (default) Metadata: title : Surround ENCODER : Lavc58.134.100 opus BPS : 320400 DURATION : 02:02:32.389000000 NUMBER_OF_FRAMES: 367620 NUMBER_OF_BYTES : 294463620 _STATISTICS_WRITING_APP: mkvmerge v65.0.0 ('Too Much') 64-bit _STATISTICS_WRITING_DATE_UTC: 2023-06-05 19:20:26 _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES ```

(I did look at the intermediary files containing only the single audio streams, those are the same inpu=5.1 output=stereo, so I can rule out mkvmerge).

I don't know why this is happening, I only just noticed and tried adding the '--pre-filter', 'channelmap=channel_layout=5.1' arguments, but that did not help, the above is after adding that.

Environment (please complete the following information): Ubuntu 22.04.1 Python 3.10.6 ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers

Related: #98

slhck commented 1 year ago

I don't have a test file at hand, but you could try one of those options:

Per this thread.

Also note that your ffmpeg version is a bit outdated. Please follow the README instructions to get a static build: https://github.com/slhck/ffmpeg-normalize#ffmpeg

joshinils commented 1 year ago

I just downloaded the static ffmpeg build ffmpeg version 6.0-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2023 the FFmpeg developers It's a problem with Ubuntu not having the latest versions in their repositories, the 22.04.1 LTS just has that 4.4.2 version, and its the latest LTS version.

I don't exactly know how to use what you mentioned.

slhck commented 1 year ago

Let's focus on raw ffmpeg commands for now. I now see that you are using -c:a opus and not -c:a libopus; the former is the builtin ffmpeg encoder which may not have support for all these options. So I wonder if you can get this simple command to work:

ffmpeg -i input.mkv -c:a libopus -vn output.mkv

Perhaps try -c:a libopus for ffmpeg-normalize, and maybe that does the job already.

joshinils commented 1 year ago

oh ffs.

ffmpeg -i test.mkv -c:a opus -vn -strict -2 opus.mkv 7.1 -> stereo ffmpeg -i test.mkv -c:a libopus -vn libopus.mkv 7.1 -> 7.1

In retrospect, I should have looked into why the opus one needed the -strict -2 and the libopus does not.

Well, now I can re-do a bunch of media, guess I will develop my script to account for that.

joshinils commented 1 year ago

so yes, this is an upstream thing with ffmpeg, and the opus codec, do not use opus for surround sound!

slhck commented 1 year ago

Good to know, thanks for reporting back!

joshinils commented 1 year ago

btw. my script does the whole thing with extracting the audio streams into separate files, so I can use multiprocessing and invoke ffmpeg-normalize in parallel, otherwise it only uses a single core to process the streams one by one. I added more to make it do this with multiple files in parallel and only with a maximum number of jobs, which works great and of course is faster the more cores I give it, and my 3800xt has 8 cores, so 16 threads. I usually give it 11 so I can use it for other things simultaneously, that slows it down far enough, but still allows other things.

joshinils commented 1 year ago

Oh, and in case someone else has problems with surround sound variants "5.1(side)" or "7.1(side)" etc. those need the extra -e -ac {num_channels} argument, so -e "-ac 6" for 5.1(side). (the arguments to ffmpeg given via -e have to be combined somehow if they contain a space, which is why i added the double quotes around the -ac 6, otherwise it will only pass the -ac, not the 6 which makes no sense to ffmpeg.) Otherwise, it error out with:

ERROR: Error while running command /usr/local/bin/ffmpeg -hide_banner -y -i normalized_temp_single/test.mkv.audio-000.mkv -filter_complex '[0:0]loudnorm=i=-23.0:lra=7.0:tp=-2.0:offset=-1.64:measured_i=-26.74:measured_lra=14.6:measured_tp=-4.78:measured_thresh=-37.73:linear=true:print_format=json[norm0]' -map_metadata 0 -map_metadata:s:a:0 0:s:a:0 -map_chapters 0 -map '[norm0]' -c:a libopus -b:a 320000 -ar 48000 -c:s copy /tmp/tmpja1bhttl/out.mkv! Error: Error running command ['/usr/local/bin/ffmpeg', '-hide_banner', '-y', '-i', 'normalized_temp_single/test.mkv.audio-000.mkv', '-filter_complex', '[0:0]loudnorm=i=-23.0:lra=7.0:tp=-2.0:offset=-1.64:measured_i=-26.74:measured_lra=14.6:measured_tp=-4.78:measured_thresh=-37.73:linear=true:print_format=json[norm0]', '-map_metadata', '0', '-map_metadata:s:a:0', '0:s:a:0', '-map_chapters', '0', '-map', '[norm0]', '-c:a', 'libopus', '-b:a', '320000', '-ar', '48000', '-c:s', 'copy', '/tmp/tmpja1bhttl/out.mkv']: Input #0, matroska,webm, from 'normalized_temp_single/test.mkv.audio-000.mkv':
Metadata:
title           : Blade
SUMMARY         : Blade
DATE_RELEASED   : 1998
ENCODER         : Lavf60.3.100
Duration: 00:01:00.00, start: 0.000000, bitrate: 641 kb/s
Chapters:
Chapter #0:0: start 0.000000, end 60.000000
Metadata:
title           : Chapter 15
Stream #0:0(ger): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default)
Metadata:
title           : Surround 5.1
DURATION        : 00:01:00.000000000
Stream mapping:
Stream #0:0 (ac3) -> loudnorm:default
loudnorm:default -> Stream #0:0 (libopus)
Press [q] to stop, [?] for help
[libopus @ 0x5d6b980] Invalid channel layout 5.1(side) for specified mapping family -1.
[aost#0:0/libopus @ 0x5d6b280] Error initializing output stream: Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height