Support Ogg files with multiple tracks
Open
@rohitjoins is already working on this.
Since Nov 9, 2025.
enhancement
low priority
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
Version
Media3 1.8.0
More version details
some ogg files (created from flac with libvorbis) are not playing at all, sometimes showing "(0) Source Error"
i have all extensions enabled, and DefaultRenderersFactory.EXTENSION_RENDERER_MODE_PREFER is set
my dependencies section:
dependencies {
def extensions_version = "1.8.0"
implementation "androidx.media3:media3-decode-av1:$extensions_version" // av1 extension
implementation "androidx.media3:media3-decode-ffmpeg:$extensions_version" // ffmpeg extension
implementation "androidx.media3:media3-decode-flac:$extensions_version" // flac extension
implementation "androidx.media3:media3-decode-iamf:$extensions_version" // iamf extension
implementation "androidx.media3:media3-decode-opus:$extensions_version" // opus extension
implementation "androidx.media3:media3-decode-vp9:$extensions_version" // vp9 extension
implementation "androidx.media3:media3-extractor:$extensions_version"
def exoplayer_version = "1.8.0"
implementation "androidx.media3:media3-exoplayer:$exoplayer_version"
implementation "androidx.media3:media3-exoplayer-dash:$exoplayer_version"
implementation "androidx.media3:media3-exoplayer-hls:$exoplayer_version"
implementation "androidx.media3:media3-exoplayer-smoothstreaming:$exoplayer_version"
implementation "androidx.annotation:annotation:1.8.1"
}
i'm using v1.8.0 but i also tried v1.9.0-alpha01 with the same results
how the files where created:
def convert_flac_to_ogg(flac_path, ogg_path, quality=8):
os.makedirs(os.path.dirname(ogg_path), exist_ok=True)
command = [
"ffmpeg",
"-i", flac_path,
"-c:a", "libvorbis",
"-qscale:a", str(quality),
ogg_path
]
print(f"Converting: {flac_path} -> {ogg_path}")
subprocess.run(command, check=True)
ps: file plays normally using mpv
Devices that reproduce the issue
- Redmi Note 10 (Android 11)
- Redmi Note 14 Pro (Android 14)
- (probably not device related)
Devices that do not reproduce the issue
none
Reproducible in the demo app?
Yes
Reproduction steps
- Play any file from the sample below
- no sound or progress
Expected result
should play normally
Actual result
player just stalls, no progress or sound, sometimes showing "(0) Source Error"
Media
https://github.com/user-attachments/files/19930802/1973.-.Ring.Ring.zip
Bug Report
- You will email the zip file produced by
adb bugreportto android-media-github@google.com after filing this issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.