-
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
[ExoLayer] The player has ugly picture when starting play HLS from low bitrate on Amlogic #953
Comments
I don't get MediaCodec.INFO_OUTPUT_FORMAT_CHANGED code from the MediaCodec::dequeueOutputBuffer(). |
To start from a high bitrate need to use following changes: --- library/src/main/java/com/google/android/exoplayer/hls/HlsChunkSource.java (revision ) +++ library/src/main/java/com/google/android/exoplayer/hls/HlsChunkSource.java (revision ) @@ -204,7 +204,7 @@ - int minOriginalVariantIndex = Integer.MAX_VALUE; + int minOriginalVariantIndex = Integer.MIN_VALUE; for (int i = 0; i < variants.length; i++) { int originalVariantIndex = masterPlaylistVariants.indexOf(variants[i]); - if (originalVariantIndex < minOriginalVariantIndex) { + if (originalVariantIndex > minOriginalVariantIndex) { minOriginalVariantIndex = originalVariantIndex; selectedVariantIndex = i; } |
Are you sure the player is switching to the high bitrate stream (without your modification to have it start start with that stream)? If so, it feels like a device specific issue to me? |
Yes, I am sure. |
If it is alright we should see messages like below in logcat: 11-13 02:15:00.676 30906-30906/com.google.android.exoplayer.demo D/EventLogger: videoSizeChanged [640, 360, 0, 1.0] I get it once, at start of a playing. Could anybody check it on their Amlogic's devices please? |
You should report this issue to AmLogic. I don't think it's a problem with ExoPlayer. As a side note - There's insufficient information in this bug to tell exactly which device, Android build and ExoPlayer build this issue reproduces with. Please provide complete information in any future bug reports, as requested in the issue template. |
ExoPlayer 1.5.1, Android 4.4, Amlogic 812, player demo
Stream's URL http://qthttp.apple.com.edgesuite.net/1010qwoeiuryfg/sl.m3u8
The player has ugly picture when starting play HLS from a low bitrate. Even if it turns to playing a high bitrate stream.
If I make it to start from a high bitrate stream video looks good as on my LG G2.
The text was updated successfully, but these errors were encountered: