EasyDarwin / EasyPusher-Android

免费组件:简单、高效、稳定、免费的一款标准RTSP/RTP协议直播推送库,支持将H.264/H.265/G.711/G.726/AAC等音视频数据推送到RTSP流媒体服务器(例如EasyDarwin)进行低延时直播或者视频通信,支持Windows、Linux、ARM、Android、iOS等平台,EasyPusher配套EasyDarwin流媒体服务器、EasyPlayer RTSP播放器适用于特殊行业的低延时应急指挥需求! Android迁移到了https://github.com/EasyDarwin/EasyPusher-Android , iOS迁移到了https://github.com/EasyDarwin/EasyPusher-iOS

Home Page:http://www.easydarwin.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rtsp推流出错: Video source is lost. times:5

jp1017 opened this issue · comments

wifi下推流正常, 2G, 3G网络推流报这个错,然后重连,推不上去

网友建议降低码率

码率降低仍不行, 有提示日志:

D/libEasyPusher: RTSP interaction is complete. Prepare to send RTP...
D/libEasyPusher: EasyStreamPusher rcvpos: 0
D/libEasyPusher: EasyStreamPusher: 139  exit 0..
D/libEasyPusher: EasyStreamPusher rcvpos: 0
D/libEasyPusher: EasyStreamPusher: 133  exit 0..

还有这些日志:

D/libEasyPusher: RTSP interaction is complete. Prepare to send RTP...
D/libEasyPusher: RTP State error.  0
D/libEasyPusher: RTP State error.  0
D/libEasyPusher: RTP State error.  0
D/libEasyPusher: RTP State error.  0
D/libEasyPusher: EasyStreamPusher rcvpos: 0
D/libEasyPusher: EasyStreamPusher: 133  exit 0..
E/easypusher_jni: ____isActivated__....... userPtr=1136631808

代码问题,已解决!

@jp1017 类似问题,你是代码那块出现问题?我在unity打包easypusher到apk中出现如下的问题。重复连接远端rstp服务器。
2020-04-16 11:29:36.822 4210-4332/org.easydarwin.easypusher.forunity I/chatty: uid=10036(org.easydarwin.easypusher.forunity) UnityGfxDeviceW identical 1 line 2020-04-16 11:29:36.921 4210-4332/org.easydarwin.easypusher.forunity I/chatty: uid=10036(org.easydarwin.easypusher.forunity) UnityGfxDeviceW identical 4 lines 2020-04-16 11:29:37.021 4210-4332/org.easydarwin.easypusher.forunity I/chatty: uid=10036(org.easydarwin.easypusher.forunity) UnityGfxDeviceW identical 4 lines 2020-04-16 11:29:37.088 4210-4332/org.easydarwin.easypusher.forunity I/chatty: uid=10036(org.easydarwin.easypusher.forunity) UnityGfxDeviceW identical 2 lines 2020-04-16 11:29:37.118 4210-4950/org.easydarwin.easypusher.forunity D/libEasyPusher: EasyStreamPusher rcvpos: 0 2020-04-16 11:29:37.119 4210-4950/org.easydarwin.easypusher.forunity D/libEasyPusher: EasyStreamPusher: 52 exit 0.. 2020-04-16 11:29:37.119 4210-4950/org.easydarwin.easypusher.forunity E/easypusher_jni: ____isActivated__....... userPtr=-830058496 2020-04-16 11:29:37.123 4210-4950/org.easydarwin.easypusher.forunity D/libEasyPusher: close socket.. 2020-04-16 11:29:37.123 4210-4950/org.easydarwin.easypusher.forunity D/libEasyPusher: init rtspSock: -1