-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video is freezing after few seconds in the new 2.18.2 version #10808
Comments
The stream is working fine, I tried two different Pixel devices (4 & 6), and played for ~1 minute on each device. Are you seeing this only on the Xiaomi device? Does it reproduce all the time? If yes, can you also send a bugreport? Thanks |
Hello, thanks for testing. I opened this video on Amazon Fire Stick, Android 9. It's working fine. |
Actually you don't need the bugreport from me. I just tried to open this video in Android Studio on Android Emulator:
It looks like it's something with Android 12. Maybe with other Android versions also, but i haven't checked them all. P.S. I re-checked this several times. |
I have not been able to repro this, at least not with the demo app. I used the emulator with Pixel 2 at API 31 with both x64_64 and arm ABIs. The stream has an H264 video track and aac audio, so I don't think the extensions are needed. Can you please attach a bug report after the issue occurs on your side? |
Hello, I've sent bugreport few minutes ago. I've changed
|
thanks for the bug report, will take a look. Meanwhile,
on the json, just add |
I've added extension But it's not working with this code. Something is broken in the new version here:
It looks like that something is broken when i manually select Despite the fact that the video is working, it plays very slowly, as if the FPS is very low. |
I'm still not able to repro the issue. The stream works fine with Pixel 2 and Pixel 4 emulators at API 31, even when I set the media source as per comment above. Maybe there are still differences in how I run the demo app compared to you. For example I am using the Also, I looked at the bug report and I see it was obtained from the Xiaomi device. There are no So, let's do two things:
Either send those over email or attach them on this issue. If you attach the git patch here, don't forget to reduct the stream link. PS The dev-v2 and release-v2 branches contain different commits. Specifically, the dev-v2 branch contains commits that will only be included in 2.19.0. It's good to hear the issue does not occur on dev-v2, but we should figure out if a commit that was cherry picked on the 2.18.2 release is causing any regression. |
@christosts i've found the issue. This commit is fixing the problem: 1eb8a6b If you replace red code with green one in For some reason in 2.18.2 stable release red code is used. |
Thank you for your investigation. That's interesting, because 1eb8a6b is not included in 2.18.1 which you said works fine. Commit b97a959 is related, so maybe it's this commit that can be causing you issues. The poor performance looks like is caused by choosing a suboptimal decoder. Can you please still share the git-patch and bug-report I asked above? Even if those CLs are the root causes of the issues, I'd like to see which decoder is picked on your emulator. |
I can write here the changes i made in the demo app.
I've sent bugreport to the email:
P.S. If i cherry pick that commit into release-v2, video is playing smoothly. |
Thanks for the bug-report. Here are two interesting logs
The HW decoder on this device ( 1eb8a6b is already submitted and the player prefers the HW decoder over the SW one, so I'll ask you to wait until the next release is out. |
Thank you. I can make the bugreport from 2.18.1 tomorrow if you need it. |
ExoPlayer Version
2.18.2
Devices that reproduce the issue
Xiaomi Redmi Note 11 Pro+ 5G
Reproduction steps
HttpDataSource.Factory
->.setDefaultRequestProperties()
) for this video to be able to play it in ExoPlayer;Expected result
Video must work without any issues.
Actual result
Video is freezing.
It was working fine in 2.18.1.
Media
Link to the video stream will be sent to email.
The text was updated successfully, but these errors were encountered: