Closed
Description
Version
Media3 main branch
More version details
029b8ba
If I revert the modification of H265Reader, it won't get stuck.
Before revert
problem.zip
After revert
no problem.zip
Devices that reproduce the issue
Devices that do not reproduce the issue
None
Reproducible in the demo app?
Not tested
Reproduction steps
I don't have the actual video URL
I asked users to test
Tested from media3 1.3.1 ~ 1.4.1
The problem was found to occur from 1.4.0-alpha02
And I compare 1.4.0-alpha01 and 1.4.0-alpha02
I just found a commit about H265
029b8ba
Expected result
Don't get stuck
Actual result
get stuck
Media
Sample 1
https://drive.google.com/file/d/1k5sfTgYWf2r1fdnFlknkfoZ0Gr9PL0i5/view?usp=sharing
Bug Report
- You will email the zip file produced by
adb bugreport
to android-media-github@google.com after filing this issue.
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
FongMi commentedon Jan 22, 2025
@dsparano Do you have any ideas?
Tangsan99999 commentedon Jan 22, 2025
note
dsparano commentedon Jan 22, 2025
I see, well I really need a H265 content that causes playback to hang in order to reproduce and find the issue, @FongMi can you please share one?
FongMi commentedon Jan 23, 2025
@dsparano I have upload sample file and url.
But maybe some device won't happened, only special device will happened.
[-]This commit will cause H265 ts to suck[/-][+]This commit will cause H265 ts to fail[/+]tonihei commentedon Jan 24, 2025
@FongMi - can you easily build Media3 from source? If so, can you check if removing this line fixes the issue on your device?
@dsparano : This might be related to the discussion in #1189 (comment), either because one of the samples is too small or because the device can't handle the duplicate timestamp.
FongMi commentedon Jan 24, 2025
@tonihei sure, I will try it tomorrow.
FongMi commentedon Jan 25, 2025
@tonihei After remove the line, user says no problem.
tonihei commentedon Jan 27, 2025
Thanks for confirming!
@rohitjoins would you mind having a look in case you have any ideas? It looks like issuing a single sample helps to avoid problems, but #1189 (comment) mentioned other HLS streams that have issues with the combined sample.
@dsparano: If you can think of another approach, please feel free to chime in as well :)
dsparano commentedon Jan 28, 2025
@tonihei Thanks for your finding, at first glance removing that line seems to be working, however I'm double checking with the streams that got me into adding it, to reproduce the issue I was mentioning here, it shouldn't take too long
dsparano commentedon Jan 28, 2025
Looking at the stream originally from this comment: by removing the first outputSample line it only plays 1490 frames out of 1500 in this stream. Basically all the last samples of each of the 10 segments will not be passed. It looks to me we need a slightly tweaked approach, let me try and find it.
dsparano commentedon Jan 29, 2025
@FongMi tbh I couldn't reproduce any issue with Sample 1 or Sample 2 on a few devices I've here, besides now Sample 2 doesn't seem to be working anymore, if you could pls check
19 remaining items