bilibili / ijkplayer

Android/iOS video player based on FFmpeg n3.4, with MediaCodec, VideoToolbox support.
GNU General Public License v2.0
32.54k stars 8.13k forks source link

why i play rtsp stream about 5 minutes it stop? #1895

Open steward007 opened 8 years ago

steward007 commented 8 years ago

为什么我播放rtsp视频流,不到5分钟就出问题了呢。 日志如下: 08-26 16:19:52.948 4066-7808/com.asha.md360player4android E/ACodec: [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb736e150 w/ time 273801000 us 08-26 16:19:52.978 4066-7808/com.asha.md360player4android E/ACodec: [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb736e0b0 w/ time 273835000 us 08-26 16:19:53.018 4066-7808/com.asha.md360player4android E/ACodec: [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb736e060 w/ time 273871000 us 08-26 16:19:53.048 4066-7808/com.asha.md360player4android E/ACodec: [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb736e100 w/ time 273901000 us 08-26 16:19:53.088 4066-7808/com.asha.md360player4android E/ACodec: [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb736e150 w/ time 273935000 us 08-26 16:19:53.118 4066-7808/com.asha.md360player4android E/ACodec: [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb736e0b0 w/ time 273966000 us 08-26 16:19:53.148 4066-7808/com.asha.md360player4android E/ACodec: [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb736e060 w/ time 274001000 us 08-26 16:19:53.178 4066-7808/com.asha.md360player4android E/ACodec: [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb736e100 w/ time 274035000 us 08-26 16:19:53.218 4066-7808/com.asha.md360player4android E/ACodec: [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb736e150 w/ time 274066000 us 08-26 16:19:53.248 4066-7808/com.asha.md360player4android E/ACodec: [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb736e0b0 w/ time 274101000 us 08-26 16:19:53.288 4066-7808/com.asha.md360player4android E/ACodec: [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb736e060 w/ time 274135000 us 08-26 16:19:53.318 4066-7808/com.asha.md360player4android E/ACodec: [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb736e100 w/ time 274167000 us 08-26 16:19:53.348 4066-7808/com.asha.md360player4android E/ACodec: [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb736e150 w/ time 274201000 us 08-26 16:19:53.378 4066-7808/com.asha.md360player4android E/ACodec: [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb736e0b0 w/ time 274240000 us 08-26 16:19:53.418 4066-7808/com.asha.md360player4android E/ACodec: [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb736e060 w/ time 274267000 us 08-26 16:19:53.448 4066-7808/com.asha.md360player4android E/ACodec: [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb736e100 w/ time 274301000 us 08-26 16:19:53.488 4066-7808/com.asha.md360player4android E/ACodec: [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb736e150 w/ time 274334000 us 08-26 16:19:53.508 4066-7808/com.asha.md360player4android E/ACodec: [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb736e0b0 w/ time 274367000 us 08-26 16:19:53.548 4066-7808/com.asha.md360player4android E/ACodec: [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb736e060 w/ time 274401000 us 08-26 16:19:53.588 4066-7808/com.asha.md360player4android E/ACodec: [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb736e100 w/ time 274435000 us 08-26 16:19:53.618 4066-7808/com.asha.md360player4android E/ACodec: [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb736e150 w/ time 274467000 us 08-26 16:19:53.648 4066-7808/com.asha.md360player4android E/ACodec: [OMX.qcom.video.decoder.avc] calling emptyBuffer 0xb736e0b0 w/ time 274501000 us 08-26 16:19:53.648 4066-7743/com.asha.md360player4android D/IJKMEDIA: FFP_MSG_BUFFERING_START:

nhathm commented 5 years ago

Did you have solution for this, I have same issue on iOS

LOG:

nal_unit_type: 1, nal_ref_idc: 1
ffp_toggle_buffering_l: start
aout_pause_audio(1)
2019-05-29 09:37:21.935573+0700 RTSP Player[636:156270] FFP_MSG_BUFFERING_START:
nal_unit_type: 1, nal_ref_idc: 1

And streaming stopped.