Disable mp3float,internal opus decoder (keep libopus decoder)

Description:

Build ffmpeg with --disable-decoder=opus, but keep --enable-libopus. This allows to link libavformat.so to Chromium based applications without breaking YouTube. Keeping libopus decoder is important.

This is preliminary to fix chromium#16 (closed) .

Additional info:

  • package versions: ffmpeg 2:7.1-9 , chromium 135.0.7049.84-1 , electron35 35.1.5-1

Steps to reproduce:

  1. Install current ffmpeg.
  2. Replace libffmpeg.so of electron with symlink of libavformat.so and see electron -ozone-platform-hint=auto https://youtube.com cannot play video.
  3. Build ffmpeg with --disable-encoder=opus. Keep --enable-libopus.
  4. See ffmpeg -codecs|grep opus shows DEAIL. opus Opus (Opus Interactive Audio Codec) (decoders: libopus) (encoders: opus libopus)
  5. Repeat 1. and see electron play video.

It shoud be tested by linking chromium with system ffmpeg. But I can't get resources to build.

Edited by E