Exoplayer: Playing a MP4 file F.frameRate always return -1

Created on 17 Jul 2018  Â·  3Comments  Â·  Source: google/ExoPlayer

implements AnalyticsListener
onDecoderInputFormatChanged(EventTime eventTime, int type, Format format)
format.bitrate and format.frameRate always -1

My Version 2.8.2

question

All 3 comments

This information isn't always available for all stream types, and is documented to be Format.NO_VALUE (which equals -1) in such cases.

Specifically for HLS we're adding bitrate information soon. This is tracked by https://github.com/google/ExoPlayer/issues/3297. For regular MP4 files the information is just not available, sorry.

Will it be supported in a later release ?

We don't have any plans to support this.

Was this page helpful?
0 / 5 - 0 ratings