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
Expose MediaCodec metrics #5585
Comments
Looks like Toni is planning to look at this [internal: b/77251770]. It's not the same as MediaCodec metrics, but, for what it's worth, we do already expose some information about decoding metrics already via |
We were particularly working on adding the decoder latency metrics (min/max/average), both overall and for "recent" samples. Would that be sufficient for what you'd like to achieve? |
Hi Toni,
Thanks for the reply. I was hoping for the same info as what we get when we
use getMetrics() API with google's mediaplayer getMetrics() api. Sample
logs from my MediaPlayer log.
<DurationMS>178701ms</DurationMS>
<Dropped>0</Dropped>
<VideoCodec>zz.yyy.zzz.avc</VideoCodec>
<AudioCodec/>
<Width>1920</Width>
<Height>1088</Height>
<VideoMime>video/avc</VideoMime>
<Frames>5358</Frames>
<Playing>179149ms</Playing>
Thanks
Sri
…On Fri, Mar 1, 2019 at 1:01 AM tonihei ***@***.***> wrote:
We were particularly working on adding the decoder latency metrics
(min/max/average), both overall and for "recent" samples. Would that be
sufficient for what you'd like to achieve?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5585 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AmmeD0o5oBpYVKfgXAlfASwh75FnJTKfks5vSOxzgaJpZM4bX4oi>
.
|
I think you can obtain all mentioned information by other means already. DurationMS - |
Thanks Toni,
Can you aslo update the thread on an ETA of when the decoder latency
metrics are available. And if you can share info on
all getVideoDecoderCounters apis that are available to use?
Thanks
Sri
…On Mon, Mar 4, 2019 at 1:55 AM tonihei ***@***.***> wrote:
I think you can obtain all mentioned information by other means already.
DurationMS - player.getDuration()
Dropped - listen to AnalyticsListener.onDroppedVideoFrames
VideoCodec/AudioCodec - listen to AnalyticsListener.onDecoderInitialized
and parameter decoderName.
Width/Height/VideoMime - listen to AnalyticsListener.onVideoSizeChanged
or AnalyticsListener.onDownstreamFormatChanged.
Playing - player.getCurrentPosition.
Frames - Read values from the DecoderCounters object passed to
AnalyticsListener.onDecoderEnabled or
AnalyticsListener.onDecoderDisabled.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5585 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AmmeD7O8V2GIwbYAhTPklaDzxrOEoBulks5vTO13gaJpZM4bX4oi>
.
|
We'll post this issue as soon as we are ready.
Please have a look at the look the documentation to see which values are already reported as part of the DecoderCounters. |
[REQUIRED] Searched documentation and issues
I have searched through the code for on latest v2 release for use of getMetrics() API from MediaCodec and do not see it available.
[REQUIRED] Question
I would like to know if the exoplayer codebase is planning on incorporating the getMetrics api available for mediaCodec
https://developer.android.com/reference/android/media/MediaCodec#getMetrics()
The text was updated successfully, but these errors were encountered: