{"action":"closed","issue":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/840","labels_url":"https://api.github.com/repos/google/ExoPlayer/issues/840/labels{/name}","comments_url":"https://api.github.com/repos/google/ExoPlayer/issues/840/comments","events_url":"https://api.github.com/repos/google/ExoPlayer/issues/840/events","html_url":"https://github.com/google/ExoPlayer/issues/840","id":109780264,"number":840,"title":"Consider exposing frame rate ranges for codecs","user":{"login":"IanDBird","id":165482,"avatar_url":"https://avatars.githubusercontent.com/u/165482?v=3","gravatar_id":"","url":"https://api.github.com/users/IanDBird","html_url":"https://github.com/IanDBird","followers_url":"https://api.github.com/users/IanDBird/followers","following_url":"https://api.github.com/users/IanDBird/following{/other_user}","gists_url":"https://api.github.com/users/IanDBird/gists{/gist_id}","starred_url":"https://api.github.com/users/IanDBird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IanDBird/subscriptions","organizations_url":"https://api.github.com/users/IanDBird/orgs","repos_url":"https://api.github.com/users/IanDBird/repos","events_url":"https://api.github.com/users/IanDBird/events{/privacy}","received_events_url":"https://api.github.com/users/IanDBird/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-05T11:50:54Z","updated_at":"2015-10-09T11:04:19Z","closed_at":"2015-10-09T11:04:19Z","body":"`MediaCodecUtil` exposes a number of helpful utility methods describing the capabilities of different MediaCodecs. One of them i've been planning on using was `isSizeAndRateSupportedV21`. The problem that I have is that already this will tell me simply whether a codec can't handle a particular size/rate, it doesn't tell me what it *can* handle. \r\n\r\nThe scenario I have is that i'm trying to detect a video that can't be supported, and force it to be converted/transcoded on-the-fly to something more manageable. However, since it doesn't the video capabilities, i'm unable to tell the converter/transcoder what frame rate (or size) would be better. \r\n\r\nWould either of the options be considered:\r\n - Added new methods to `MediaCodecUtil` expose more `MediaCodecInfo.VideoCapabilities` methods\r\n - Actually expose `MediaCodecInfo.VideoCapabilities` directly.\r\n\r\nI'm happy to try and take a punt at doing one of these, or even an alternative approach, but wanted to sanity check things would be acceptable before submitting a PR."}}