-
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
When applying an MP4 edit list, preroll and skip samples from a keyframe to the start of an edit #1659
Comments
This file contains an edit list that skips the first video frame, which is a keyframe. Due to a limitation in how we handle edit lists (see this comment) we don't send the frame to the decoder, which means samples are dropped up to the next key-frame. This is why video starts playing late. I'll use this issue to track the enhancement of extracting and skipping samples from the latest keyframe at/before an edit up to the start of the edit. I think it's unlikely we will prioritize it in the near future, unless we find that this type of stream is common. Thanks! |
Hi there, just wanted to say that we're hitting this issue at Signal. Videos recorded by iOS devices that are then sent and played back by ExoPlayer on an Android device will sometimes run into this. It doesn't seem to be all videos transcoded by iOS, but some. |
When processing edit lists in MP4 files, the media start position may be a non-keyframe. To ensure proper playback, the decoder must preroll to the preceding keyframe, as these preroll samples are essential for decoding but are not rendered. Issue: google/ExoPlayer#1659 #cherrypick PiperOrigin-RevId: 673457615
This issue has now been fixed. |
video recorded from ios can not play in front of a few seconds, but the audio is ok.
The text was updated successfully, but these errors were encountered: