{"action":"created","issue":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/656","labels_url":"https://api.github.com/repos/google/ExoPlayer/issues/656/labels{/name}","comments_url":"https://api.github.com/repos/google/ExoPlayer/issues/656/comments","events_url":"https://api.github.com/repos/google/ExoPlayer/issues/656/events","html_url":"https://github.com/google/ExoPlayer/issues/656","id":97152812,"number":656,"title":"mp4 with a height of 1080 does not return correct widthHeightRatio on a device screen that is 480x800","user":{"login":"42footPaul","id":1266625,"avatar_url":"https://avatars.githubusercontent.com/u/1266625?v=3","gravatar_id":"","url":"https://api.github.com/users/42footPaul","html_url":"https://github.com/42footPaul","followers_url":"https://api.github.com/users/42footPaul/followers","following_url":"https://api.github.com/users/42footPaul/following{/other_user}","gists_url":"https://api.github.com/users/42footPaul/gists{/gist_id}","starred_url":"https://api.github.com/users/42footPaul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/42footPaul/subscriptions","organizations_url":"https://api.github.com/users/42footPaul/orgs","repos_url":"https://api.github.com/users/42footPaul/repos","events_url":"https://api.github.com/users/42footPaul/events{/privacy}","received_events_url":"https://api.github.com/users/42footPaul/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/ExoPlayer/labels/need%20more%20info","name":"need more info","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-07-24T21:40:23Z","updated_at":"2015-07-31T15:26:43Z","closed_at":null,"body":"I've been implementing ExoPlayer in our Adobe AIR project as an ANE in order to do progressive download and save of mp4 files. This is working rather well and the player seems to work like a charm for our case. I'm using master and used the demo player as a start and added functionality as we needed such as the controls UI and a custom HttpDataSource and TransferListener to save the files.\r\n\r\nIn our latest testing we are getting a video scaling issue on devices with 480x800 screen resolution with videos that are 1080 in height.\r\n\r\nI don't have access to the device at the moment so all I can do is have our tester run it and email our own logs.\r\n\r\nFor the 800x480 device we get this back for a video that is 1920x1080\r\nPlayerActivity::VIDEO SURFACE CHANGED  format=4 w=800 h=480\r\nPlayerActivity::VIDEO SIZE CHANGED w=1920 h=540 widthRatio=1.0\r\nPlayerActivity::widthHeightRatio=3.5555556\r\n\r\nthis is what we get for a video that is 1440x1080\r\nPlayerActivity::VIDEO SURFACE CHANGED  format=4 w=800 h=480\r\nPlayerActivity::VIDEO SIZE CHANGED w=1440 h=540 widthRatio=1.0\r\nPlayerActivity::widthHeightRatio=2.6666667\r\n\r\n\r\nOn a device that is 854x480 we get this back for the exact same 1920x1080 video\r\nPlayerActivity::VIDEO SURFACE CHANGED  format=4 w=854 h=480\r\nPlayerActivity::VIDEO SIZE CHANGED w=1920 h=1080 widthRatio=1.0\r\nPlayerActivity::widthHeightRatio=1.7777778\r\n\r\nWe verified that this happens in the Demo App as well. Any suggestions here?\r\n\r\n![1920_1080](https://cloud.githubusercontent.com/assets/1266625/8885072/64edf092-322a-11e5-86e7-978f2cec2529.png)\r\n![1440_1080](https://cloud.githubusercontent.com/assets/1266625/8885076/6babc2ec-322a-11e5-940f-e853ee866098.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/google/ExoPlayer/issues/comments/126724645","html_url":"https://github.com/google/ExoPlayer/issues/656#issuecomment-126724645","issue_url":"https://api.github.com/repos/google/ExoPlayer/issues/656","id":126724645,"user":{"login":"42footPaul","id":1266625,"avatar_url":"https://avatars.githubusercontent.com/u/1266625?v=3","gravatar_id":"","url":"https://api.github.com/users/42footPaul","html_url":"https://github.com/42footPaul","followers_url":"https://api.github.com/users/42footPaul/followers","following_url":"https://api.github.com/users/42footPaul/following{/other_user}","gists_url":"https://api.github.com/users/42footPaul/gists{/gist_id}","starred_url":"https://api.github.com/users/42footPaul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/42footPaul/subscriptions","organizations_url":"https://api.github.com/users/42footPaul/orgs","repos_url":"https://api.github.com/users/42footPaul/repos","events_url":"https://api.github.com/users/42footPaul/events{/privacy}","received_events_url":"https://api.github.com/users/42footPaul/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T15:26:43Z","updated_at":"2015-07-31T15:26:43Z","body":"More investigation\r\nOMX.MTK.VIDEO.DECODER.AVC supports the following profiles\r\nprofile:1\r\nprofile:2\r\nprofile:4\r\nprofile:8\r\nprofile:16\r\nprofile:32\r\nprofile:64\r\nprofile:128\r\nprofile:256\r\nprofile:512\r\nprofile:1024\r\nprofile:2048\r\nprofile:4096\r\nprofile:8192\r\nprofile:16384\r\nprofile:32768\r\n\r\nwhen I convert the decimal values here to hex and compare them with the table of supported types in OpenMax found here https://www.khronos.org/files/openmax_il_spec_1_0.pdf on page 285/286 I see that this decoder supports up to and including Level 5.1 which when compared to the list found here https://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Levels tells me the decoder itself supports 1080.\r\n\r\nYou are saying that these devices can't support 1080p buffers yet the 1080 vids play fine on the stock player and it looks to me like the decoder supports 1080. I don't understand. The issue is still open and flagged with need more info. Is there anything I can do to further the cause?\r\n\r\n"}}