视频播放器无法播放720P 30fps的视频debug


分析:

分析log如下:

08-09 11:46:01.720   103   180 E gralloc.mali: ION_IOC_ALLOC fail
08-09 11:46:01.720   103   180 W GraphicBufferAllocator: alloc(1280, 720, 33, 10002900, ...) failed -12 (Out of memory)
08-09 11:46:01.720   103   180 D GraphicBufferAllocator: Allocated buffers:
08-09 11:46:01.720   103   180 D GraphicBufferAllocator:  0x1b950b8: unknown     | 1280 (1280) x  720 |       21 | 0x10002900
08-09 11:46:01.720   103   180 D GraphicBufferAllocator:  0x1bb73b0: 1338.75 KiB |  480 ( 480) x  714 |        1 | 0x00000933
08-09 11:46:01.720   103   180 D GraphicBufferAllocator:  0x1bc0878: unknown     | 1280 (1280) x  720 |       21 | 0x10002900
08-09 11:46:01.720   103   180 D GraphicBufferAllocator:  0x1bc2c20:   35.62 KiB |  480 ( 480) x   38 |        4 | 0x00000933
08-09 11:46:01.720   103   180 D GraphicBufferAllocator:  0x1bc37a0: 3000.00 KiB |  960 ( 960) x  800 |        2 | 0x00000933
08-09 11:46:01.720   103   180 D GraphicBufferAllocator:  0x1bc9d08:   35.62 KiB |  480 ( 480) x   38 |        4 | 0x00000933
08-09 11:46:01.720   103   180 D GraphicBufferAllocator:  0x1bca728: unknown     | 1280 (1280) x  720 |       21 | 0x10002900
08-09 11:46:01.720   103   180 D GraphicBufferAllocator:  0x1bce100: unknown     | 1280 (1280) x  720 |       21 | 0x10002900
08-09 11:46:01.720   103   180 D GraphicBufferAllocator:  0x1bd08a0: unknown     | 1280 (1280) x  720 |       21 | 0x10002900
08-09 11:46:01.720   103   180 D GraphicBufferAllocator:  0x1bd1430: unknown     | 1280 (1280) x  720 |       21 | 0x10002900
08-09 11:46:01.720   103   180 D GraphicBufferAllocator:  0x1bd17e8: unknown     | 1280 (1280) x  720 |       21 | 0x10002900
08-09 11:46:01.720   103   180 D GraphicBufferAllocator:  0x1bd1f00: 1500.00 KiB |  480 ( 480) x  800 |        1 | 0x00000933
08-09 11:46:01.720   103   180 D GraphicBufferAllocator:  0x1bd50e8: unknown     | 1280 (1280) x  720 |       21 | 0x10002900
08-09 11:46:01.720   103   180 D GraphicBufferAllocator:  0x1bd5278: 1338.75 KiB |  480 ( 480) x  714 |        1 | 0x00000933
08-09 11:46:01.720   103   180 D GraphicBufferAllocator:  0x1bd52d0: 1500.00 KiB |  480 ( 480)
08-09 11:46:01.720   103   180 E SurfaceFlinger: GraphicBufferAlloc::createGraphicBuffer(w=1280, h=720) failed (Out of memory), handle=0x0
08-09 11:46:01.720   103   180 E SurfaceTexture: [SurfaceView] dequeueBuffer: SurfaceComposer::createGraphicBuffer failed
08-09 11:46:01.720   106  2399 E OMXCodec: dequeueBuffer failed: Out of memory (12)
08-09 11:46:01.730   106  2402 I OmxComponentBase: OmxComponentBase : DoStateSet IN : iState (1) aDestinationState (2)
08-09 11:46:01.730   106  2403 E OMXCodec: [OMX.PV.avcdec] ERROR(0x8000101c, 1)
08-09 11:46:01.730   106  2403 E OMXCodec: [OMX.PV.avcdec] write vt_pipe, size: 2
08-09 11:46:01.730   106  2403 I OMXCodec: [OMX.PV.avcdec] ~OMXCodec in state 8
08-09 11:46:01.730  1011  1023 E MediaPlayer: error (1, -12)
08-09 11:46:01.730   106  2402 I VSP     : AvcDecDeinit_OMX, 692

 

       从上面log看GraphicBufferAllocator: alloc(1280, 720, 33, 10002900, ...) failed -12 (Out of memory)
应该是PMEM不足,建议增大pmem大小

 

解决方法:

加大kernel/arch/arm/mach-sc8825/include/mach/board.h中的SPRD_ION_SIZE的大小,

客户原来是10M,修改成20M不行,24M的时候OK;

你可能感兴趣的:(视频播放器无法播放720P 30fps的视频debug)