Closed heiruwu closed 1 year ago
I've been testing real time streaming on two of my android devices, both are 4.4. I use Rtsp client and Rtsp server to realize this, but keep getting this error, having trouble solving, plz give me a hand.
_Server Log_
08-07 15:23:43.761 11639-11639/com.example.hrw.rtspserver I/Adreno200-EGL﹕ <qeglDrvAPI_eglInitialize:269>: EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_JB_VANILLA.04.02.02.60.051_msm8960_JB_VANILLA_CL2997615_release_AU (CL2997615) Build Date: 04/11/13 Thu Local Branch: Remote Branch: quic/mako_jb_mr1 Local Patches: NONE Reconstruct Branch: AU_LINUX_ANDROID_JB_VANILLA.04.02.02.60.051 + NOTHING 08-07 15:23:43.841 11639-11639/com.example.hrw.rtspserver D/OpenGLRenderer﹕ Enabling debug mode 0 08-07 15:23:44.401 11639-11639/com.example.hrw.rtspserver I/Timeline﹕ Timeline: Activity_idle id: android.os.BinderProxy@41ece808 time:122621099 08-07 15:23:47.575 11639-11881/com.example.hrw.rtspserver I/RtspServer﹕ Connection from 192.168.1.1 08-07 15:23:47.575 11639-11881/com.example.hrw.rtspserver E/RtspServer﹕ ANNOUNCE rtsp://192.168.1.227:1234/ 08-07 15:23:47.575 11639-11881/com.example.hrw.rtspserver E/RtspServer﹕ Command unknown: net.majorkernelpanic.streaming.rtsp.RtspServer$Request@41eba550 08-07 15:23:47.575 11639-11881/com.example.hrw.rtspserver D/RtspServer﹕ RTSP/1.0 400 Bad Request Server: MajorKernelPanic RTSP Server Cseq: 1 Content-Length: 0 08-07 15:23:47.585 11639-11881/com.example.hrw.rtspserver E/RtspServer﹕ Error parsing CSeq: 08-07 15:23:47.585 11639-11881/com.example.hrw.rtspserver D/RtspServer﹕ RTSP/1.0 400 Bad Request Server: MajorKernelPanic RTSP Server Content-Length: 0 08-07 15:23:47.585 11639-11881/com.example.hrw.rtspserver E/RtspServer﹕ Error parsing CSeq: 08-07 15:23:47.585 11639-11881/com.example.hrw.rtspserver D/RtspServer﹕ RTSP/1.0 400 Bad Request Server: MajorKernelPanic RTSP Server Content-Length: 0 08-07 15:23:47.585 11639-11881/com.example.hrw.rtspserver E/RtspServer﹕ Response was not sent properly 08-07 15:23:47.595 11639-11881/com.example.hrw.rtspserver I/RtspServer﹕ Client disconnected
_Client Log_
08-07 15:23:49.353 29355-29389/com.example.hrw.mfcvs D/RtspClient﹕ Connecting to RTSP server... 08-07 15:23:49.353 29355-29389/com.example.hrw.mfcvs D/libc﹕ [NET] getaddrinfo+,hn 13(0x3139322e313638),sn(),family 0,flags 4 08-07 15:23:49.353 29355-29389/com.example.hrw.mfcvs D/libc﹕ [NET] getaddrinfo-, SUCCESS 08-07 15:23:49.363 29355-29355/com.example.hrw.mfcvs W/MainActivity﹕ Session Configured 08-07 15:23:49.363 29355-29355/com.example.hrw.mfcvs D/MP4Config﹕ SPS: Z0KAHtoC0PaAbQoTUA== 08-07 15:23:49.363 29355-29355/com.example.hrw.mfcvs D/MP4Config﹕ PPS: aM4G4g== 08-07 15:23:49.363 29355-29355/com.example.hrw.mfcvs W/MainActivity﹕ v=0 o=- 0 0 IN IP4 null s=Unnamed i=N/A c=IN IP4 192.168.1.227 t=0 0 a=recvonly m=audio 5004 RTP/AVP 96 a=rtpmap:96 mpeg4-generic/16000 a=fmtp:96 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1408; SizeLength=13; IndexLength=3; IndexDeltaLength=3; a=control:trackID=0 m=video 5006 RTP/AVP 96 a=rtpmap:96 H264/90000 a=fmtp:96 packetization-mode=1;profile-level-id=42801e;sprop-parameter-sets=Z0KAHtoC0PaAbQoTUA==,aM4G4g==; a=control:trackID=1 08-07 15:23:49.383 29355-29389/com.example.hrw.mfcvs D/MP4Config﹕ SPS: Z0KAHtoC0PaAbQoTUA== 08-07 15:23:49.383 29355-29389/com.example.hrw.mfcvs D/MP4Config﹕ PPS: aM4G4g== 08-07 15:23:49.383 29355-29389/com.example.hrw.mfcvs I/RtspClient﹕ ANNOUNCE rtsp://192.168.1.227:1234/ RTSP/1.0 08-07 15:23:49.403 29355-29389/com.example.hrw.mfcvs D/RtspClient﹕ Response from server: 400 08-07 15:23:49.403 29355-29389/com.example.hrw.mfcvs V/RtspClient﹕ RTSP server name: MajorKernelPanic RTSP Server 08-07 15:23:49.403 29355-29389/com.example.hrw.mfcvs I/RtspClient﹕ TEARDOWN rtsp://192.168.1.227:1234/ RTSP/1.0 08-07 15:23:49.403 29355-29355/com.example.hrw.mfcvs W/onRtspUpdate﹕ java.io.IOException: Invalid response from server. Session id: null
Dont know if i have to post my code, if needed will do right away. thanks a lot.
Same here... there is not Method ANNOUNCE is rtspServer.class, can you open the file and replace /ANNOUNCE/DESCRIBE/ and try again?
I've been testing real time streaming on two of my android devices, both are 4.4. I use Rtsp client and Rtsp server to realize this, but keep getting this error, having trouble solving, plz give me a hand.
_Server Log_
_Client Log_
Dont know if i have to post my code, if needed will do right away. thanks a lot.