Right now I am facing the same problem, I use H264 HW en/decoder at two android phone. the log like below
09-18 13:34:23.215 32665-528/com.wtk.mobile.WtkRtc E/org.webrtc.Logging: MediaCodecVideoDecoder: Very high decode time: 229ms. Q size: 4. Might be caused by resuming H264 decoding after a pause.
09-18 13:34:23.235 32665-528/com.wtk.mobile.WtkRtc I/MediaCodecVideoDecoder: MediaCodecVideoDecoder: Decoder frame out # 49. 360 x 480. Color: 2141391876. TS: 1633. DecTime: 200. DelayTime: 0
09-18 13:34:23.335 32665-528/com.wtk.mobile.WtkRtc E/org.webrtc.Logging: MediaCodecVideoDecoder: Very high decode time: 225ms. Q size: 3. Might be caused by resuming H264 decoding after a pause.
09-18 13:34:23.405 32665-528/com.wtk.mobile.WtkRtc W/MediaCodecVideoDecoder: MediaCodecVideoDecoder: Decoder is too far behind. Try to drain. Received: 61. Decoded: 56
09-18 13:34:23.445 32665-528/com.wtk.mobile.WtkRtc I/MediaCodecVideoDecoder: MediaCodecVideoDecoder: Decoder frame out # 56. 360 x 480. Color: 2141391876. TS: 1866. DecTime: 65. DelayTime: 0
MediaCodecVideoDecoder: Decoder frame in # 61. Type: 4. Buffer # 1. TS: 2033. Size: 290
09-18 13:34:23.445 32665-528/com.wtk.mobile.WtkRtc W/MediaCodecVideoDecoder: MediaCodecVideoDecoder: Decoder is too far behind. Try to drain. Received: 62. Decoded: 57
09-18 13:34:23.465 32665-528/com.wtk.mobile.WtkRtc I/MediaCodecVideoDecoder: MediaCodecVideoDecoder: Decoder frame out # 57. 360 x 480. Color: 2141391876. TS: 1900. DecTime: 96. DelayTime: 0
MediaCodecVideoDecoder: Decoder frame in # 62. Type: 4. Buffer # 0. TS: 2066. Size: 51
09-18 13:34:23.465 32665-528/com.wtk.mobile.WtkRtc W/MediaCodecVideoDecoder: MediaCodecVideoDecoder: Decoder is too far behind. Try to drain. Received: 63. Decoded: 58
09-18 13:34:23.475 32665-528/com.wtk.mobile.WtkRtc I/MediaCodecVideoDecoder: MediaCodecVideoDecoder: Decoder frame out # 58. 360 x 480. Color: 2141391876. TS: 1933. DecTime: 75. DelayTime: 0
MediaCodecVideoDecoder: Decoder frame in # 63. Type: 4. Buffer # 2. TS: 2100. Size: 287
09-18 13:34:23.505 32665-528/com.wtk.mobile.WtkRtc W/MediaCodecVideoDecoder: MediaCodecVideoDecoder: Decoder is too far behind. Try to drain. Received: 64. Decoded: 59
09-18 13:34:23.545 32665-528/com.wtk.mobile.WtkRtc I/MediaCodecVideoDecoder: MediaCodecVideoDecoder: Decoder frame out # 59. 360 x 480. Color: 2141391876. TS: 1966. DecTime: 110. DelayTime: 0
MediaCodecVideoDecoder: Decoder frame in # 64. Type: 4. Buffer # 3. TS: 2133. Size: 185
09-18 13:34:23.585 32665-528/com.wtk.mobile.WtkRtc I/MediaCodecVideoDecoder: MediaCodecVideoDecoder: Decoder frame out # 60. 360 x 480. Color: 2141391876. TS: 2000. DecTime: 177. DelayTime: 0
09-18 13:34:23.775 32665-528/com.wtk.mobile.WtkRtc W/MediaCodecVideoDecoder: MediaCodecVideoDecoder: Decoder is too far behind. Try to drain. Received: 70. Decoded: 65
09-18 13:34:23.795 32665-528/com.wtk.mobile.WtkRtc I/MediaCodecVideoDecoder: MediaCodecVideoDecoder: Decoder frame out # 65. 360 x 480. Color: 2141391876. TS: 2166. DecTime: 168. DelayTime: 0
09-18 13:34:23.815 32665-528/com.wtk.mobile.WtkRtc I/MediaCodecVideoDecoder: MediaCodecVideoDecoder: Decoder frame in # 70. Type: 4. Buffer # 0. TS: 2333. Size: 45
09-18 13:34:23.865 32665-528/com.wtk.mobile.WtkRtc I/MediaCodecVideoDecoder: MediaCodecVideoDecoder: Decoder frame out # 66. 360 x 480. Color: 2141391876. TS: 2200. DecTime: 165. DelayTime: 0
09-18 13:34:39.815 32665-528/com.wtk.mobile.WtkRtc E/org.webrtc.Logging: MediaCodecVideoDecoder: Very high decode time: 16044ms. Q size: 4. Might be caused by resuming H264 decoding after a pause.
09-18 13:34:39.815 32665-528/com.wtk.mobile.WtkRtc I/MediaCodecVideoDecoder: MediaCodecVideoDecoder: Frames decoded: 70. Received: 74. Bitrate: 7 kbps. Fps: 3. DecTime: 162. DelayTime: 0 for last 18212 ms.
09-18 13:34:39.885 32665-528/com.wtk.mobile.WtkRtc E/org.webrtc.Logging: MediaCodecVideoDecoder: Very high decode time: 16065ms. Q size: 4. Might be caused by resuming H264 decoding after a pause.
09-18 13:34:39.885 32665-533/com.wtk.mobile.WtkRtc W/MediaCodecVideoDecoder: MediaCodecVideoDecoder: Input resolution changed from 360 x 480 to 240 x 320
But when I use looptest on the same phone, the performance much better.
And the same network sutution, if I change HW H264 en/decoder to SW en/decoder, the performance much better than the HW H264 en/decoder.
Has any update for this problem?
在 2018年7月18日星期三 UTC+8下午2:27:29,Ryan Dawson写道: