PLDroidMediaStreaming 是七牛推出的一款适用于 Android 平台的推流 SDK,支持 RTMP 推流,h.264 和 AAC 编码,硬编、软编支持。具有丰富的数据和状态回调,方便用户根据自己的业务定制化开发。具有直播场景下的重要功能,如:美颜、背景音乐、水印等功能。PLDroidMediaStreaming 是现在目前重点维护的版本,自带采集模块也支持用户自己做采集端。
1.45k
stars
460
forks
source link
error rtmp streaming #229
Open
bogdanovkp opened 7 years ago
demo project:
`
03-16 10:18:12.420 23050-23162/com.qiniu.pili.droid.streaming.demo D/OpenGLRenderer: endAllStagingAnimators on 0xa24c3500 (ListPopupWindow$DropDownListView) with handle 0xa2346010 03-16 10:18:12.875 23050-23371/com.qiniu.pili.droid.streaming.demo I/MainActivity: mSelectedInputType:UnauthorizedUrl,inputUrl:rtmp://192.168.1.2:1935/live/testrtmp 03-16 10:18:13.013 23050-23050/com.qiniu.pili.droid.streaming.demo I/ExtCapStreamingActivity: publishUrlFromServer:URL:rtmp://192.168.1.2:1935/live/testrtmp 03-16 10:18:13.022 23050-23050/com.qiniu.pili.droid.streaming.demo D/StreamingProfile: target video quality = 12 03-16 10:18:13.022 23050-23050/com.qiniu.pili.droid.streaming.demo D/StreamingProfile: target audio quality = 20 03-16 10:18:13.023 23050-23050/com.qiniu.pili.droid.streaming.demo I/StreamingManager: SDK version:2.1.3, Android SDK_INT:23, SoC Hardware:ranchu 03-16 10:18:13.024 23050-23050/com.qiniu.pili.droid.streaming.demo I/AudioEncoderConfig: sample:44100, bitrate:98304 03-16 10:18:13.024 23050-23050/com.qiniu.pili.droid.streaming.demo I/EncodingConfig: setStreamingProfile profile:com.qiniu.pili.droid.streaming.StreamingProfile@4336e62,stream:null,mEncodingSizeRatio:null 03-16 10:18:13.025 23050-23050/com.qiniu.pili.droid.streaming.demo I/EncodingConfig: setStreamingProfile mFormat=RTMP 03-16 10:18:13.025 23050-23050/com.qiniu.pili.droid.streaming.demo I/EncodingConfig: isEncodingLandscape:false 03-16 10:18:15.756 23050-23050/com.qiniu.pili.droid.streaming.demo D/ExtAudioCapture: Start audio capture success ! 03-16 10:18:15.756 23050-23050/com.qiniu.pili.droid.streaming.demo I/StreamingManager: resume 03-16 10:18:15.756 23050-23050/com.qiniu.pili.droid.streaming.demo I/StreamingEnv: resume 03-16 10:18:35.487 23050-23050/com.qiniu.pili.droid.streaming.demo I/Choreographer: Skipped 1356 frames! The application may be doing too much work on its main thread. 03-16 10:18:35.528 23050-23162/com.qiniu.pili.droid.streaming.demo E/EGL_emulation: tid 23162: eglSurfaceAttrib(1165): error 0x3009 (EGL_BAD_MATCH) 03-16 10:18:35.528 23050-23162/com.qiniu.pili.droid.streaming.demo W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xa237d180, error=EGL_BAD_MATCH 03-16 10:18:35.653 23050-23162/com.qiniu.pili.droid.streaming.demo E/Surface: getSlotFromBufferLocked: unknown buffer: 0xb2e32690 03-16 10:18:48.111 23050-23903/com.qiniu.pili.droid.streaming.demo I/StreamingManager: startStreaming mRecordingEnabled=false 03-16 10:18:48.114 23050-23050/com.qiniu.pili.droid.streaming.demo I/Choreographer: Skipped 746 frames! The application may be doing too much work on its main thread. 03-16 10:18:48.128 23050-23903/com.qiniu.pili.droid.streaming.demo I/PLAVMuxer: prepare 03-16 10:18:48.128 23050-23903/com.qiniu.pili.droid.streaming.demo I/Muxer: Created muxer for output: rtmp://192.168.1.2:1935/live/testrtmp 03-16 10:18:48.128 23050-23903/com.qiniu.pili.droid.streaming.demo I/StreamingManager: muxerStatusUpdate muxerState:PREPARING,isNeedUpdateProfile:false 03-16 10:18:53.508 23050-23903/com.qiniu.pili.droid.streaming.demo I/PLVideoMuxer: mBufferTimeLevelLow:200,mBufferTimeLevelHigh:800,mBufferTimeLevelFull:3000,mBufferTimeLevelLowTimeout:20000 03-16 10:18:53.508 23050-23903/com.qiniu.pili.droid.streaming.demo I/PLVideoMuxer: mMuxerAVFrameInputPool:null,mMuxerInputKeyFramePool:null 03-16 10:18:53.508 23050-23903/com.qiniu.pili.droid.streaming.demo W/PLVideoMuxer: mPacketDataQueue or mMuxerInputQueue is null 03-16 10:18:53.509 23050-23985/com.qiniu.pili.droid.streaming.demo D/Muxer: Starting run 03-16 10:18:53.513 23050-23985/com.qiniu.pili.droid.streaming.demo I/PLDroidStreamingCore: isLoggingEnabled:true 03-16 10:18:53.513 23050-23985/com.qiniu.pili.droid.streaming.demo E/Muxer: PLMuxer.prepare():Url is invalid => rtmp://192.168.1.2:1935/live/testrtmp 03-16 10:18:53.513 23050-23985/com.qiniu.pili.droid.streaming.demo I/StreamingManager: muxerStatusUpdate muxerState:UNAUTHORIZED_URL,isNeedUpdateProfile:false 03-16 10:18:53.513 23050-23903/com.qiniu.pili.droid.streaming.demo I/StreamingManager: isOK:false 03-16 10:18:53.513 23050-23985/com.qiniu.pili.droid.streaming.demo I/StreamingManager: stopStreaming mRecordingEnabled:false,mIsInitialized:true 03-16 10:18:53.513 23050-23903/com.qiniu.pili.droid.streaming.demo I/ExtCapStreamingActivity: res:false 03-16 10:18:59.298 23050-23050/com.qiniu.pili.droid.streaming.demo I/Choreographer: Skipped 328 frames! The application may be doing too much work on its main thread. 03-16 10:18:59.523 23050-23985/com.qiniu.pili.droid.streaming.demo E/ExtCapStreamingActivity: Unauthorized streaming url:null 03-16 10:18:59.523 23050-23985/com.qiniu.pili.droid.streaming.demo E/Muxer: Init streaming core failed. 03-16 10:18:59.523 23050-23985/com.qiniu.pili.droid.streaming.demo D/Muxer: end run 03-16 10:19:05.550 23050-23418/com.qiniu.pili.droid.streaming.demo E/AudioRecord-JNI: Error -4 during AudioRecord native read 03-16 10:19:05.550 23050-23418/com.qiniu.pili.droid.streaming.demo E/ExtAudioCapture: Error ERROR_INVALID_OPERATION 03-16 10:19:05.561 23050-23050/com.qiniu.pili.droid.streaming.demo D/ExtAudioCapture: Stop audio capture success ! 03-16 10:19:05.561 23050-23050/com.qiniu.pili.droid.streaming.demo D/StreamingManager: pause + 03-16 10:19:05.561 23050-23050/com.qiniu.pili.droid.streaming.demo I/StreamingManager: stopStreaming mRecordingEnabled:false,mIsInitialized:false 03-16 10:19:05.561 23050-23050/com.qiniu.pili.droid.streaming.demo I/StreamingEnv: pause 03-16 10:19:05.564 23050-23050/com.qiniu.pili.droid.streaming.demo D/StreamingManager: pause - 03-16 10:19:05.585 23050-23162/com.qiniu.pili.droid.streaming.demo E/EGL_emulation: tid 23162: eglSurfaceAttrib(1165): error 0x3009 (EGL_BAD_MATCH) 03-16 10:19:05.585 23050-23162/com.qiniu.pili.droid.streaming.demo W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xa0cfe360, error=EGL_BAD_MATCH 03-16 10:19:05.689 23050-23162/com.qiniu.pili.droid.streaming.demo E/Surface: getSlotFromBufferLocked: unknown buffer: 0xb2e32620`