在播放视频的时候,旋转mid的方向,视频出现花屏???并且只在一个方向有这个问题,就是在surface_180 的时候有问题,请问是为什么?是否和G-sensor有关???何解?

解决方案 »

  1.   

    无Log无真相。之前我研究过一小段时间G-Sensor,凭经验讲你可以先禁掉G-sensor,看看播放效果。若没有问题,那确定为G-sensor干扰,然后分别从顺时针和逆时针转到surface_180,看看效果是随上一个状态变化的效果,还是固定样式的花屏,就知道是不是G-Sensor对死角180的忽略处理。
      

  2.   

    当没有启动G-sensor的时候,是不能启动实现转屏,所以视频是没有花屏的。旋转surface_0、surface_90、surface_270的时候,视频 都没有问题,就只有surface_180时候有,这个花瓶有点延时的感觉。
    为什么G-sensor会影响视频呢?其他角度没有问题?怎么解???Logcat:01-27 03:09:54.530: ERROR/TCCAwesomePlayer(815): we're late by 113474 us (0.11 secs)
    01-27 03:09:54.580: ERROR/TCCAwesomePlayer(815): we're late by 123943 us (0.12 secs)
    01-27 03:09:54.610: ERROR/TCCAwesomePlayer(815): we're late by 119926 us (0.12 secs)
    01-27 03:09:54.640: ERROR/OMX_TCC_VIDEO_DEC(815): [SEEK] B-frame Skip Mode Enable!!! - Frame late!!! 
    01-27 03:09:54.650: ERROR/TCCAwesomePlayer(815): we're late by 132140 us (0.13 secs)
    01-27 03:09:54.700: ERROR/TCCAwesomePlayer(815): we're late by 150818 us (0.15 secs)
    01-27 03:09:54.700: ERROR/OMX_TCC_VIDEO_DEC(815): [SEEK] B-frame Skip Mode Enable!!! - Frame late!!! 
    01-27 03:09:54.720: ERROR/TCCAwesomePlayer(815): we're late by 128194 us (0.13 secs)
    01-27 03:09:54.740: ERROR/OMX_TCC_VIDEO_DEC(815): [SEEK] B-frame Skip Mode Enable!!! - Frame late!!! 
    01-27 03:09:54.740: ERROR/TCCAwesomePlayer(815): we're late by 120680 us (0.12 secs)
    01-27 03:09:54.740: ERROR/OMX_TCC_VIDEO_DEC(815): [VDEC_DECODE] NO-OUTPUT!! m_iDispOutIdx = -3, m_iDecodedIdx = -2, m_iOutputStatus = 0, m_iDecodingStatus = 0, m_iNumOfErrMBs = -1
    01-27 03:09:54.740: ERROR/OMX_TCC_VIDEO_DEC(815): [SEEK] B-frame Skip Mode Enable!!! - Frame late!!! 
    01-27 03:09:54.770: ERROR/TCCAwesomePlayer(815): we're late by 121398 us (0.12 secs)
    01-27 03:09:54.830: ERROR/OMX_TCC_VIDEO_DEC(815): [SEEK] B-frame Skip Mode Enable!!! - Frame late!!! 
    01-27 03:09:54.840: ERROR/TCCAwesomePlayer(815): we're late by 156485 us (0.16 secs)
    01-27 03:09:54.860: ERROR/OMX_TCC_VIDEO_DEC(815): [SEEK] B-frame Skip Mode Enable!!! - Frame late!!! 
    01-27 03:09:54.860: ERROR/TCCAwesomePlayer(815): we're late by 142544 us (0.14 secs)
    01-27 03:09:54.860: ERROR/OMX_TCC_VIDEO_DEC(815): [VDEC_DECODE] NO-OUTPUT!! m_iDispOutIdx = -3, m_iDecodedIdx = -2, m_iOutputStatus = 0, m_iDecodingStatus = 0, m_iNumOfErrMBs = -1
    01-27 03:09:54.860: ERROR/OMX_TCC_VIDEO_DEC(815): [SEEK] B-frame Skip Mode Enable!!! - Frame late!!! 
    01-27 03:09:54.900: ERROR/TCCAwesomePlayer(815): we're late by 143164 us (0.14 secs)
    01-27 03:09:54.930: ERROR/OMX_TCC_VIDEO_DEC(815): [SEEK] B-frame Skip Mode Enable!!! - Frame late!!! 
    01-27 03:09:54.950: ERROR/TCCAwesomePlayer(815): we're late by 133244 us (0.13 secs)
    01-27 03:09:54.960: ERROR/OMX_TCC_VIDEO_DEC(815): [SEEK] B-frame Skip Mode Enable!!! - Frame late!!! 
    01-27 03:09:54.960: ERROR/OMX_TCC_VIDEO_DEC(815): [VDEC_DECODE] NO-OUTPUT!! m_iDispOutIdx = -3, m_iDecodedIdx = -2, m_iOutputStatus = 0, m_iDecodingStatus = 0, m_iNumOfErrMBs = -1
    01-27 03:09:54.970: ERROR/TCCAwesomePlayer(815): we're late by 119408 us (0.12 secs)
    01-27 03:09:54.990: ERROR/OMX_TCC_VIDEO_DEC(815): [SEEK] B-frame Skip Mode Enable!!! - Frame late!!! 
    01-27 03:09:54.990: ERROR/TCCAwesomePlayer(815): we're late by 104873 us (0.10 secs)
    01-27 03:09:54.990: ERROR/OMX_TCC_VIDEO_DEC(815): [VDEC_DECODE] NO-OUTPUT!! m_iDispOutIdx = -3, m_iDecodedIdx = -2, m_iOutputStatus = 0, m_iDecodingStatus = 0, m_iNumOfErrMBs = -1
    01-27 03:09:54.990: ERROR/OMX_TCC_VIDEO_DEC(815): [SEEK] B-frame Skip Mode Enable!!! - Frame late!!! 
    01-27 03:09:56.260: ERROR/OMX_TCC_VIDEO_DEC(815): [SEEK] B-frame Skip Mode Enable!!! - Frame late!!! 
    01-27 03:09:56.260: ERROR/TCCAwesomePlayer(815): we're late by 104728 us (0.10 secs)
    01-27 03:09:56.260: ERROR/OMX_TCC_VIDEO_DEC(815): [VDEC_DECODE] NO-OUTPUT!! m_iDispOutIdx = -3, m_iDecodedIdx = -2, m_iOutputStatus = 0, m_iDecodingStatus = 0, m_iNumOfErrMBs = -1
    01-27 03:09:56.260: ERROR/OMX_TCC_VIDEO_DEC(815): [SEEK] B-frame Skip Mode Enable!!! - Frame late!!! 
    01-27 03:09:56.290: ERROR/TCCAwesomePlayer(815): we're late by 103633 us (0.10 secs)
    01-27 03:09:56.320: ERROR/OMX_TCC_VIDEO_DEC(815): [SEEK] B-frame Skip Mode Enable!!! - Frame late!!! 
    01-27 03:09:56.330: ERROR/TCCAwesomePlayer(815): we're late by 105132 us (0.11 secs)
    01-27 03:09:56.350: ERROR/OMX_TCC_VIDEO_DEC(815): [SEEK] B-frame Skip Mode Enable!!! - Frame late!!! 
    01-27 03:09:56.350: ERROR/OMX_TCC_VIDEO_DEC(815): [VDEC_DECODE] NO-OUTPUT!! m_iDispOutIdx = -3, m_iDecodedIdx = -2, m_iOutputStatus = 0, m_iDecodingStatus = 0, m_iNumOfErrMBs = -1
    01-27 03:09:56.460: ERROR/TCCAwesomePlayer(815): we're late by 105046 us (0.11 secs)
      

  3.   

    输出里来看,是解码和输出这些时间cost太多,player丢帧了。
    你用的什么播放器,输出的时候用的什么,用的是osd输出,还是用的overlay去输出的?