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

Bitrate value is -1 for any HLS content #3006

Closed
Gian84 opened this issue Jun 30, 2017 · 3 comments
Closed

Bitrate value is -1 for any HLS content #3006

Gian84 opened this issue Jun 30, 2017 · 3 comments
Labels

Comments

@Gian84
Copy link

Gian84 commented Jun 30, 2017

Issue description

When I try to reproduce an HLS content the method player.getVideoFormat().bitrate in DebugTextViewHelper returns always -1.

Reproduction steps

  • Open Exoplayer 2.4.2 demo app
  • Select any HLS content for example "Apple 4x3 basic stream"
  • Log player.getVideoFormat().bitrate in private String getVideoString() method in DebugTextViewHelper class
  • bitrate is always -1

Link to test content

Any HLS content, for example "Apple 4x3 basic stream" in Exoplayer demo app

Version of ExoPlayer being used

Exoplayer 2.4.2

Device(s) and version(s) of Android being used

Nexus 5, Android 6.0.1

A full bug report captured from the device

no logs

Info

I have checked in HlsPlaylistParser class and the bitrate value is correct.
I'm continuing to study this case and I will add more info soon.

Thanks

@ojw28
Copy link
Contributor

ojw28 commented Jul 3, 2017

The format you're seeing here is really only intended for internal use by the player (and for debugging purposes). It is correct to say that the bitrate is set to -1, but it's also correct to say this shouldn't really be a problem. Note that this format represents just the video component of the stream, after de-muxing and extraction from the container.

@ojw28 ojw28 added the question label Jul 7, 2017
@Gian84
Copy link
Author

Gian84 commented Jul 13, 2017

So, it is not a bug.
I had this doubt because other formats (DASH or SS) have this information in the same callback or in EventLogger.

Thank you for your answer.

@Gian84 Gian84 closed this as completed Jul 13, 2017
@takn
Copy link

takn commented Sep 11, 2017

What should the proper way to access bitrate be?

@google google locked and limited conversation to collaborators Nov 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants