-
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
one mpeg-ts file will drop many frames when play, maybe the extactor of it's audio has some issue #9294
Comments
VLC is also showing the duration of 14s, maybe it's what's intended? Did repro on my side. The track selection view:
@kim-vde Could you take a look at this, is it with TS extractor, etc? |
Hi claincly, |
The "Unexpected audio track timestamp discontinuity" error occurs when an audio sample duration does not match the timestamp of the next sample. Imagine you have an audio sample with timestamp 0 and duration 1 second. You would expect the next sample to have timestamp 1 second. The For the content provided, the expected value is smaller than the actual one, meaning that there are some "holes" between the samples. In this case, ExoPlayer concatenates the samples. That's why the duration of the audio is smaller than expected. The reason of this issue could be that the sample format is s16p (planar signed 16 bit audio), but I am not sure. I will investigate more when I have time. |
Hi,kim-vde |
Hi, I have investigated the issue a bit more and the problem comes from the fact that some audio packets do not have an associated PTS. I am working on a fix in ExoPlayer to handle this case. It should be pushed to the repo in the following days. |
#minor-release Issue: #9294 PiperOrigin-RevId: 392844983
I have just pushed a fix to dev-v2. It will be part of the next minor release. I'll close the issue as your problem should be fixed. Please open a new one if you still encounter issues. |
Thank you. It resolve the issue. |
Issue: #9294 PiperOrigin-RevId: 392844983
Hi,
when playing the local file diver1.ts, we can see the duration is 14s, but the real playing time is about 8s. Many frames is dropped and the log will print like this: "Unexpected audio track timestamp discontinuity: expected 3248000, got 3536000".
Even when I use extension-ffmpeg the problem is also exist.
The file diver1.ts has a audio track with mimeType audio/mpeg-L2 and has a video track with mimeType video/mpeg2.
other information:
ExoPlayer version number: The version we used is 2.12 , and the version 2.14.2 is still has this problem.
Android version: android 11
Android device: [Amlogic/ohm/ohm:11/RTT0.210618.002/58:userdebug/release-keys]
In the same device, the play is normal when using VLC player downloaded from Google playstore.
the test file and log: file_log.zip
The text was updated successfully, but these errors were encountered: