google / ExoPlayer

This project is deprecated and stale. The latest ExoPlayer code is available in https://github.com/androidx/media
https://developer.android.com/media/media3/exoplayer
Apache License 2.0
21.74k stars 6.03k forks source link

I am playing an mp3 file error, the mp3 file is normal, can be played in other software #11320

Closed yi1234 closed 1 year ago

yi1234 commented 1 year ago

Playback error com.google.android.exoplayer2.ExoPlaybackException: Source error at com.google.android.exoplayer2.ExoPlayerImplInternal.handleIoException(ExoPlayerImplInternal.java:684) at com.google.android.exoplayer2.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:654) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:257) at android.os.HandlerThread.run(HandlerThread.java:67) Caused by: com.google.android.exoplayer2.ParserException: Expected block size: 4; got: 2{contentIsMalformed=true, dataType=1} at com.google.android.exoplayer2.extractor.wav.WavExtractor$PassthroughOutputWriter.(WavExtractor.java:316) at com.google.android.exoplayer2.extractor.wav.WavExtractor.readFormat(WavExtractor.java:210) at com.google.android.exoplayer2.extractor.wav.WavExtractor.read(WavExtractor.java:142) at com.google.android.exoplayer2.source.BundledExtractorsAdapter.read(BundledExtractorsAdapter.java:133) at com.google.android.exoplayer2.source.ProgressiveMediaPeriod$ExtractingLoadable.load(ProgressiveMediaPeriod.java:1047) at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:420) 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:923)

icbaker commented 1 year ago

The com.google.android.exoplayer2 project is now deprecated. We are not accepting any new issues in this project. Please file your issue in the androidx.media3 GitHub project instead: https://github.com/androidx/media/issues

From the stack trace, ExoPlayer thinks your file is a .wav file not an MP3. If you open a new issue in the media3 repo please include the file so we can investigate.