Open liangqiujuan opened 2 years ago
The test file is 757M. I will find a way to upload it.
the download addr: https://cowtransfer.com/s/2eccb975bdcd4c after enter the net, you can click "下载“,then the file will be download. The picture is a screenshot.
The format isn't supported by the device you are trying to play it with. There is not much we can do about it I'm afraid. The video is MPEG2 and the audio AC3, both are not widely available on mobile devices.
Hi tonihei, I think the fail reason is exoplayer parse the lpcm audio mime to ac3 or eac3. please check it, thanks.
The audio stream is marked as a private stream in the PS container. The only format we currently assume to be in a private stream is AC3 (see this note here). I can mark it as a low-priority enhancement to support more advanced parsing, but it's unlikely we get around to this soon.
ExoPlayer Version
2.18.0
Devices that reproduce the issue
Amlogic T982 running Android R
Devices that do not reproduce the issue
none
Reproducible in the demo app?
Yes
Reproduction steps
1.adb install demo apk
push file to sdcard/Music/test.mpg
play with cmd: adb shell am start -a com.google.android.exoplayer.demo.action.VIEW -d file:///storage/emulated/0/Music/test.mpg
then can see playback failed tip;
Expected result
the media plays successfully
Actual result
The test file's audio track is pcm(dvd-video), not the ac3. The error parse of mime type of audio track cause the error. It can be played with VLC apk. We can see it is parse to lpcm in VLC. some log of exoplayer when playback failed:
Media
Bug Report
adb bugreport
to dev.exoplayer@gmail.com after filing this issue.