-
Notifications
You must be signed in to change notification settings - Fork 502
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
H264 decoder behaves incorrectly when reconfigured with different aspect ratio #2003
Comments
I have investigated this problem and found the following: When changing media content, the
If these checks pass successfully, the method initializationDataEquals is called, which determines the codec reuse strategy - with or without reconfiguration (flags If the checks do not pass, After obtaining the result from If the additional checks pass successfully, we return the result obtained from How will the codecs
How to fix: |
Thank you for reporting the issue and providing the media content as well as the potential fix in #2004! I've created an internal bug, [b/387267733 for our reference] to discuss with the codec team about this issue before moving forward with your suggested solution. Before creating the workaround I want to pinpoint the exact issue. I'll keep you updated for when a resolution is decided. |
Hi @microkatz, maybe you have any updates? |
There is not an update yet but thank you for your patience. |
Version
Media3 main branch
More version details
Media3 1.1.x
Media3 1.3.x
Media3 1.4.x
Media3 1.5.x
Media3 1.6.0-alpha1
Devices that reproduce the issue
Devices with
c2.exynos.h264.decoder
that reproduce the issueDevices with
c2.android.avc.decoder
that reproduce the issueDevices that do not reproduce the issue
No response
Reproducible in the demo app?
Yes
Reproduction steps
It is easier to test using the sample app: https://github.com/vladikadiroff/media3-issue,
but you can also reproduce this in "demo-session" app by replacing the source links and attach
MediaCodecSelector
from https://gist.github.com/vladikadiroff/45daf4d68d8bcb4b1baffed63a433cd2.Expected result
Playlist is playing normally
with_fix.mp4
Actual result
Playback failed
issue.mp4
Media
Sample App:
media3-h264-broken.apk.zip
MediaCodecSelector
for Reproduction:https://gist.github.com/vladikadiroff/45daf4d68d8bcb4b1baffed63a433cd2
Media URLs:
Bug Report
adb bugreport
to [email protected] after filing this issue.The text was updated successfully, but these errors were encountered: