Skip to content
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

Closed
Avetri opened this issue Nov 12, 2015 · 6 comments

Comments

@Avetri
Copy link

Avetri commented Nov 12, 2015

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.

@Avetri
Copy link
Author

Avetri commented Nov 13, 2015

I don't get MediaCodec.INFO_OUTPUT_FORMAT_CHANGED code from the MediaCodec::dequeueOutputBuffer().

@Avetri
Copy link
Author

Avetri commented Nov 13, 2015

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;
         }

@ojw28
Copy link
Contributor

ojw28 commented Nov 16, 2015

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?

@Avetri
Copy link
Author

Avetri commented Nov 16, 2015

Yes, I am sure.
It is very notably on that stream. Bitrate changes and quality of video too.

@Avetri
Copy link
Author

Avetri commented Nov 16, 2015

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?

@ojw28
Copy link
Contributor

ojw28 commented Jun 19, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants