720P videos has wrong aspect ratio
#1
I'm using Kodi on my LG 47GA6400, which has a display of 1920x1080 resolution and is equipped with Android 4.2.2 on Eden CPU.

I noticed if I turned on MediaCodec accelerating, the video frame is stretched with black band on top and bottom of the screen, i.e., it is not stretched as a 16:9 picture although the screen is of true 16:9 aspect ratio. So I have to manually set aspect ratio each time when playing a new 720P video.

I tried Kodi from 14.2 all through latest 15.0 beta 2, they all have the same issue. The log looks like:

I/OMXClient( 2580): Using client-side OMX mux.
I/OMXClient( 2580): Using client-side OMX mux.
D/OmxVideoDecoder( 1101): setParameter nPortIndex 0 CompFmt 0x7 ColorFmt 0
D/OmxVideoDecoder( 1101): setParameter nPortIndex 1 CompFmt 0 ColorFmt 0x15
D/OmxVideoDecoder( 1101): setParameter nPortIndex 0 nFrameWidth 1280 nFrameHeight 720 nSliceHeight 16
D/OmxVideoDecoder( 1101): setParameter nPortIndex 1 nFrameWidth 2048 nFrameHeight 1088 nSliceHeight 16
D/OmxComponent( 1101): getExtensionIndex 1006 name="OMX.google.android.index.enableAndroidNativeBuffers"
I/OMX_CosmoVideoCore( 1101): CosmoVideoCore Constructor
V/RMClient( 1101): #8:RMClient
W/OmxComponent( 1101): OmxComponent::requestResources()
V/RMClient( 1101): #8:requestResourceAsync
V/RMClient( 1101): #8:onMessageReceived creq
V/RMClient( 1101): #8:kWhatCmdResourceRequest
D/OmxComponent( 1101): getExtensionIndex 1006 name="OMX.google.android.index.getAndroidNativeBufferUsage"
V/RMAllocator( 1094): handleRequest
V/CosmoRMAllocator( 1094): getCandidates
V/CosmoRMAllocator( 1094): getCandidates
V/RMAllocator( 1094): allocateResources
V/RMAllocator( 1094): allocateOneResource
V/RMClient( 1101): #8:handleRequestDone
V/RMClient( 1101): #7:~RMClient

When MediaCode is off, the log looks like:

D/OmxVideoDecoder( 1101): setParameter nPortIndex 0 CompFmt 0x7 ColorFmt 0
D/OmxVideoDecoder( 1101): setParameter nPortIndex 1 CompFmt 0 ColorFmt 0x15
D/OmxVideoDecoder( 1101): setParameter nPortIndex 0 nFrameWidth 1280 nFrameHeight 720 nSliceHeight 16
D/OmxVideoDecoder( 1101): setParameter nPortIndex 1 nFrameWidth 2048 nFrameHeight 1088 nSliceHeight 16
D/OmxVideoDecoder( 1101): getConfig 442 nIndex 0x700000f
I/OMXCodec( 2580): [OMX.cosmo.video.decoder.avc] video dimensions are 2048 x 1088
I/OMXCodec( 2580): [OMX.cosmo.video.decoder.avc] Crop rect is 1280 x 720 @ (0, 0)
D/OmxComponent( 1101): getExtensionIndex 1006 name="OMX.google.android.index.enableAndroidNativeBuffers"
I/OMX_CosmoVideoCore( 1101): CosmoVideoCore Constructor
V/RMClient( 1101): #9:RMClient
W/OmxComponent( 1101): OmxComponent::requestResources()
V/RMClient( 1101): #9:requestResourceAsync
V/RMClient( 1101): #9:onMessageReceived creq
V/RMClient( 1101): #9:kWhatCmdResourceRequest
V/RMAllocator( 1094): handleRequest
V/CosmoRMAllocator( 1094): getCandidates
V/CosmoRMAllocator( 1094): getCandidates
V/RMAllocator( 1094): allocateResources
V/RMAllocator( 1094): allocateOneResource
V/RMClient( 1101): #9:handleRequestDone

Note that there is no line like 'Crop rect is 1280 x 720" when MediaCodec is on

Any ideas?
Reply

Logout Mark Read Team Forum Stats Members Help
720P videos has wrong aspect ratio0