-
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
Noticalbe gaps between h264 video file playback #4510
Comments
@botaydotcom Did you allready had the time to look into this issue? Is there anything I can do to support you? |
I think I can reproduce the issue on certain devices. Will try that see if I can find out the root cause. |
@botaydotcom are there any news on this issue? |
Unfortunately I haven't got the time to continue working on this yet. I'll spend time on this issue later this week. |
@botaydotcom die you habe time to look into this issue last week? |
Looked a bit into this, and I still couldn't find any problem here. I tested using a Nexus 6 (7.1.2) vs a Pixel 2 XL (8.1.0). In both cases, after the first video, the media codec is released and re-inited, and somehow on the Nexus 6, this leads to a brief (~0.5s) freezes, while on the Pixel 2 XL, this is mostly smooth (I still can find a very brief freeze though). |
The problem is that the The reason we're re-initializing in this case is that To avoid this problem, when we configure the @StaticBR - If you want to test this theory, try making a playlist containing (1_vid, 2_vid, 1_vid, 2_vid). You'll probably see the pause on the first transition, but not on the second or third (by which time the |
@ojw28 Is there a way I can force the Can you pin me down the Source Code location where exactly this is happening? So I can have a closer look? Thanks. |
It would probably work to override |
Sizing the input buffers with |
When playing a playlist where the exact maximum input size is known from the container for each item, it may be necessary to recreate the decoder to increase its maximum input buffer size at the point of transitioning from one item to the next, which can make transitions non-seamless. Scale up the initial video decoder maximum input size so playlist item transitions with small increases in maximum sample size don't require reinitialization. Issue: #4510 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=208650244
This should be addressed for most cases in |
@ojw28 Thank you very much. We will give it a try. |
Issue description
I'm trying to play several h264 videos seamlessly in a playlist. Unfortunately some of our files produce noticable gaps (stutter) between the video files other video files don't. Currently I'm not albe to pinpoint the error, all have been created with the same converter settings. We have currently the presumption that this maybe has something to do with the length of the videos.
Reproduction steps
Prerequisites: ExoPlayer Demo App & Sample Videos from sample_videos.zip
Upload the two sample videos from sample_videos.zip to an Web Server. Add a new playlist to the
media.exolist.json
, containing the two URLs of the sample files.You will see stutter / gap between the two videos.
Link to test content
sample_videos.zip
This videos only contain a h264 video track. I removed tha audio track via ffmpeg to ensure that the gapless playback will not be caused by an error within the audio track gapless playback metadata. The gaps happen with and without the audio track.
Version of ExoPlayer being used
r2.8.2 (current master)
Device(s) and version(s) of Android being used
LGE Nexus 5
Android 7.1.2 ( LineageOS )
A full bug report captured from the device
If this is needed, please give me a short notice, and I send it via Email.
The text was updated successfully, but these errors were encountered: