question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Surface MediaCodecInfo isHardwareAccelerated / isSoftwareOnly / isVendor

See original GitHub issue

Android Q has added new isHardwareAccelerated, isSoftwareOnly and isVendor methods to MediaCodecInfo. We should consider:

  1. Surfacing this information in ExoPlayer’s MediaCodecInfo. It would probably make sense for us to approximate this information for earlier API levels as well (e.g. based on decoder name).
  2. Once this information is surfaced, we should potentially look at whether it should be factored into track selection decisions. For example, preferring H264 over HEVC in cases where the H264 decoder is hardware and the HEVC decoder is software.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kim-vdecommented, Sep 13, 2019

@noamtamim Those prefixes have been introduced in Android P.

0reactions
noamtamimcommented, Sep 11, 2019

@kim-vde @ojw28 do you know if these new “c2” prefixes have existed before Android Q?

Read more comments on GitHub >

github_iconTop Results From Across the Web

MediaCodecInfo - Android Developers
... isAlias; isEncoder; isHardwareAccelerated; isSoftwareOnly; isVendor ... private static MediaCodecInfo selectCodec(String mimeType) { int numCodecs ...
Read more >
media/java/android/media/MediaCodecInfo.java - Google Git
private static MediaCodecInfo selectCodec(String mimeType) { ... public final boolean isSoftwareOnly() { ... Query if the codec is hardware accelerated.
Read more >
Class androidx.media3.exoplayer.mediacodec.MediaCodecUtil
Returns information about the preferred decoder for a given mime type. public static synchronized java.util.List<MediaCodecInfo> ...
Read more >
Source Code for MediaCodecInfo.java - AndroidX Tech
MediaCodecInfo #isHardwareAccelerated() */ public final boolean hardwareAccelerated; /** * Whether the codec is software only.
Read more >
android.media.MediaCodecList Java Examples
select the first codec that match a specific MIME type */ private static final MediaCodecInfo selectAudioCodec(final String mimeType) { if (DEBUG) Log.v(TAG ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found