pili-engineering / PLDroidMediaStreaming

PLDroidMediaStreaming 是七牛推出的一款适用于 Android 平台的推流 SDK,支持 RTMP 推流,h.264 和 AAC 编码,硬编、软编支持。具有丰富的数据和状态回调,方便用户根据自己的业务定制化开发。具有直播场景下的重要功能,如:美颜、背景音乐、水印等功能。PLDroidMediaStreaming 是现在目前重点维护的版本,自带采集模块也支持用户自己做采集端。
https://github.com/pili-engineering/PLDroidMediaStreaming/wiki
Apache License 2.0
1.45k stars 460 forks source link

使用最新的sdkdemo推流一直报IOERROR,同样的推流地址 IOS可以 #275

Closed ymcao closed 6 years ago

ymcao commented 6 years ago

: PILI_RTMP_ReadPacket, failed to read PILI_RTMP packet hea 01-11 14:44:51.345 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Streaming:PLDroidStreamingCore:errorCode:-1014, msg:PILI_RTMP connect stream failed. 01-11 14:44:51.345 377-4601/com.qiniu.pili.droid.streaming.demo D/PLDroidMediaStreaming: Pili-Streaming: send_timeout:3 01-11 14:44:51.346 377-4601/com.qiniu.pili.droid.streaming.demo D/PLDroidMediaStreaming: Pili-Streaming: stream_state_callback error is NULL 01-11 14:44:51.348 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Parsing 01-11 14:44:51.348 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Parsed protocol: 01-11 14:44:51.348 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Parsed host : 01-11 14:44:51.348 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Parsed host and domain : 01-11 14:44:51.348 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Parsed app : 01-11 14:44:51.373 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: PILI_RTMP_Connect1, ... connected, handshak 01-11 14:44:51.394 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: PILI_HandShake: Type Answer : 01-11 14:44:51.395 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: PILI_HandShake: Server Uptime : 01-11 14:44:51.395 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: PILI_HandShake: FMS Version : 0.0.0 01-11 14:44:51.395 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: PILI_RTMP_Connect1, handsha 01-11 14:44:51.395 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Invoking 01-11 14:44:51.411 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: PILI_HandleServerBW: server BW = 01-11 14:44:51.411 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: PILI_HandleClientBW: client BW = 2500000 01-11 14:44:51.411 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: PILI_HandleChangeChunkSize, received: chunk size change to 01-11 14:44:51.411 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: PILI_RTMP_ClientPacket, received: invoke 190 by 01-11 14:44:51.411 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: (object beg 01-11 14:44:51.411 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Property: <Name: no-name., 01-11 14:44:51.411 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Property: <Name: no-name., 01-11 14:44:51.411 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Property: <Name: no-name., OBJE 01-11 14:44:51.411 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: (object beg 01-11 14:44:51.411 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Property: <Name: fmsVer, 01-11 14:44:51.411 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Property: <Name: capabilities, 01-11 14:44:51.411 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: (object e 01-11 14:44:51.411 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Property: <Name: no-name., OBJE 01-11 14:44:51.412 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: (object beg 01-11 14:44:51.412 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Property: <Name: level, 01-11 14:44:51.412 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Property: <Name: code, 01-11 14:44:51.412 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Property: <Name: description, 01-11 14:44:51.412 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Property: <Name: objectEncoding, 01-11 14:44:51.412 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: (object e 01-11 14:44:51.412 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: (object e 01-11 14:44:51.412 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: PILI_HandleInvoke, server invoking < 01-11 14:44:51.412 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: PILI_HandleInvoke, received result for method call < 01-11 14:44:51.412 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Invoking 01-11 14:44:51.412 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Invoking 01-11 14:44:51.412 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Invoking 01-11 14:44:51.488 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: PILI_RTMP_ClientPacket, received: invoke 29 by 01-11 14:44:51.488 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: (object beg 01-11 14:44:51.488 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Property: <Name: no-name., 01-11 14:44:51.488 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Property: <Name: no-name., 01-11 14:44:51.488 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Property: N 01-11 14:44:51.488 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Property: <Name: no-name., 01-11 14:44:51.488 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: (object e 01-11 14:44:51.488 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: PILI_HandleInvoke, server invoking < 01-11 14:44:51.488 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: PILI_HandleInvoke, received result for method call < 01-11 14:44:51.488 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Invoking 01-11 14:44:51.577 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: PILI_RTMP_ClientPacket, received: invoke 165 by 01-11 14:44:51.577 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: (object beg 01-11 14:44:51.577 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Property: <Name: no-name., 01-11 14:44:51.577 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Property: <Name: no-name., 01-11 14:44:51.577 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Property: N 01-11 14:44:51.577 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Property: <Name: no-name., OBJE 01-11 14:44:51.577 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: (object beg 01-11 14:44:51.577 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Property: <Name: level, 01-11 14:44:51.578 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Property: <Name: code, 01-11 14:44:51.578 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Property: <Name: description, 01-11 14:44:51.578 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Property: <Name: reqid, 01-11 14:44:51.578 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: (object e 01-11 14:44:51.578 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: (object e 01-11 14:44:51.578 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: PILI_HandleInvoke, server invoking < 01-11 14:44:51.578 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: PILI_HandleInvoke, onStatus: 01-11 14:44:51.578 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Invoking 01-11 14:44:51.578 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: Invoking 01-11 14:44:51.579 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Network: PILI_RTMP_ReadPacket, failed to read PILI_RTMP packet hea 01-11 14:44:51.579 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Streaming:PLDroidStreamingCore:errorCode:-1014, msg:PILI_RTMP connect stream failed. 01-11 14:44:51.579 377-4601/com.qiniu.pili.droid.streaming.demo D/PLDroidMediaStreaming: Pili-Streaming: stream_state_callback error is NULL 01-11 14:44:51.579 377-4601/com.qiniu.pili.droid.streaming.demo D/PLDroidMediaStreaming: Pili-Streaming: stream_state_callback error is NULL 01-11 14:44:51.579 377-4601/com.qiniu.pili.droid.streaming.demo D/PLDroidMediaStreaming: Pili-Streaming: release_context 01-11 14:44:51.579 377-4601/com.qiniu.pili.droid.streaming.demo D/PLDroidMediaStreaming: Pili-Streaming: free_packet_data 01-11 14:44:51.579 377-4601/com.qiniu.pili.droid.streaming.demo D/PLDroidMediaStreaming: Pili-Streaming: free_packet_data 01-11 14:44:51.579 377-4601/com.qiniu.pili.droid.streaming.demo E/PLDroidMediaStreaming: Pili-Streaming: pili_stream_push_open failed. ret=-1 01-11 14:44:51.579 377-4601/com.qiniu.pili.droid.streaming.demo D/PLDroidMediaStreaming: Pili-Streaming: initialize ret=-1 01-11 14:44:51.579 377-4601/com.qiniu.pili.droid.streaming.demo E/PLDroidMediaStreaming: Pili-Streaming: ERROR: init error -- 01-11 14:44:51.580 377-4601/com.qiniu.pili.droid.streaming.demo E/PLDroidMediaStreaming: Pili-Streaming:Muxer:PLMuxer.prepare(): rc 01-11 14:44:51.580 377-4601/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Streaming:MediaStreamingManager:onStateChanged:IOERROR,mNeedUpdateProfile:false 01-11 14:44:51.580 377-4597/com.qiniu.pili.droid.streaming.demo I/PLDroidMediaStreaming: Pili-Streaming:MediaStreamingManager:isOK:false 01-11 14:44:51.580 377-4601/com.qiniu.pili.droid.streaming.demo I/StreamingBaseActivity: StreamingState streamingState:IOERROR,extra:-110 01-11 14:44:51.581 377-4601/com.qiniu.pili.droid.streaming.demo E/PLDroidMediaStreaming: Pili-Streaming:Muxer:Init streaming core failed.