Skip to content

Match MediaPlayer behavior of skipping unexpected data the start of an MP3 #5718

Description

@theboubougne

I'm trying to play the following file with EXOPlayer 2.9.6 and it fails with the following exception:
UnrecognizedInputFormatException

http://podcastdownload.faithcomesbyhearing.com/mp3.php/ENGKJVC2DA/A01___01_Genesis_____ENGKJVC2DA.mp3

I experienced the same thing on every test devices, while the device MediaPlayer was able to play the file without any issue (Tested on Android 8, 9, Q on Pixel 2, 3 and Samsung S8)

It fails both trying to stream the file or play a local copy

I checked the file encoding and didn't see anything specific
Audio

Format : | MPEG Audio
Format version : | Version 2
Format profile : | Layer 3
Format settings : | Joint stereo / Intensity Stereo + MS Stereo
Duration : | 5 min 13 s
Bit rate mode : | Constant
Bit rate : | 64.0 kb/s
Channel(s) : | 2 channels
Sampling rate : | 22.05 kHz
Frame rate : | 38.281 FPS (576 SPF)
Compression mode : | Lossy
Stream size : | 2.39 MiB (97%)

Stack

com.google.android.exoplayer2.source.UnrecognizedInputFormatException: None of the available extractors (MatroskaExtractor, FragmentedMp4Extractor, Mp4Extractor, Mp3Extractor, AdtsExtractor, Ac3Extractor, TsExtractor, FlvExtractor, OggExtractor, PsExtractor, WavExtractor, AmrExtractor) could read the stream.
    at com.google.android.exoplayer2.source.ExtractorMediaPeriod$ExtractorHolder.selectExtractor(ExtractorMediaPeriod.java:973)
    at com.google.android.exoplayer2.source.ExtractorMediaPeriod$ExtractingLoadable.load(ExtractorMediaPeriod.java:891)
    at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:381)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    at java.lang.Thread.run(Thread.java:914)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions