feat: 内置 FFmpeg 音频扩展软解 AC3/DTS
新增 player-media3-ffmpeg:media3 1.11.1 的 decoder_ffmpeg 源码 + 自带 FFmpeg 6.0.1 静态库(arm64-v8a / armeabi-v7a,ac3/eac3/truehd/mlp/dca), 以 EXTENSION_RENDERER_MODE_PREFER 接入,AAC 等仍走系统 MediaCodec。 音轨选择改为仅在默认音轨不可解码时才自动改选;提示文案去掉环绕音频 警告,只保留真正无法解码的情况。构建脚本与依赖下载见 tools/ffmpeg。
This commit is contained in:
1 parent
71a5d5f72e
commit
40435701fb
17 files changed
+1382
-23
No files matched your search
+32
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright (C) 2016 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package androidx.media3.decoder.ffmpeg;
|
||||
|
||||
import androidx.media3.common.util.UnstableApi;
|
||||
import androidx.media3.decoder.DecoderException;
|
||||
|
||||
/** Thrown when an FFmpeg decoder error occurs. */
|
||||
@UnstableApi
|
||||
public final class FfmpegDecoderException extends DecoderException {
|
||||
|
||||
/* package */ FfmpegDecoderException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
/* package */ FfmpegDecoderException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user