spex66 / RTSP-Camera-for-Android

Android based RTSP Server which is able to serve live camera view to multiple RTSP clients, such as VLC.
406 stars 257 forks source link

I can't work it,help me #3

Open zhaoyujia11808 opened 12 years ago

zhaoyujia11808 commented 12 years ago

I just import the project and setup the rtsp camera but I can't recieve with vlc in pc . The error is java.net.SocketException: sendto failed: EPIPE (Broken pipe) can you help me

msuzer commented 12 years ago

Hi zhaoyujia11808;

can you describe your setup, so i may help you on this. please tell me about your network setup, your android device (API version) etc. And also copy paste the logcat output.

zhaoyujia11808 commented 12 years ago

i think this maybe happened with some devices like samsumg 5831 2.3.7 the cpu is armv6 the error is socket closed .I try the api way but I can't see the view by VLC

------------------ 原始邮件 ------------------ 发件人: "lazy21tr"notifications@github.com; 发送时间: 2012年8月21日(星期二) 晚上8:45 收件人: "spex66/RTSP-Camera-for-Android"RTSP-Camera-for-Android@noreply.github.com; 抄送: "zhaoyujia11808"675121852@qq.com; 主题: Re: [RTSP-Camera-for-Android] I can't work it,help me (#3)

Hi zhaoyujia11808;

can you describe your setup, so i may help you on this. please tell me about your network setup, your android device (API version) etc. And also copy paste the logcat output.

— Reply to this email directly or view it on GitHub.

zhaoyujia11808 commented 12 years ago

------------------ 原始邮件 ------------------ 发件人: "lazy21tr"notifications@github.com; 发送时间: 2012年8月21日(星期二) 晚上8:45 收件人: "spex66/RTSP-Camera-for-Android"RTSP-Camera-for-Android@noreply.github.com; 抄送: "zhaoyujia11808"675121852@qq.com; 主题: Re: [RTSP-Camera-for-Android] I can't work it,help me (#3)

Hi zhaoyujia11808;

can you describe your setup, so i may help you on this. please tell me about your network setup, your android device (API version) etc. And also copy paste the logcat output.

— Reply to this email directly or view it on GitHub.

zhaoyujia11808 commented 12 years ago

08-21 21:17:03.083: I/avenc_api(15221): PVAVCEncSetInput AVCENC_SUCCESS -> enc_state = AVCEnc_Encoding_Frame 08-21 21:17:03.083: I/avenc_api(15221): PVAVCEncSetInput return: final status 08-21 21:17:03.083: I/pvaencoder(15221): Encode AVCENC_SUCCESS-> return: EAVCEI_SUCCESS 08-21 21:17:03.083: I/pvaencoder(15221): GetOuput 08-21 21:17:03.083: I/avenc_api(15221): PVAVCEncodeNAL: 5 08-21 21:17:03.083: I/avenc_api(15221): PVAVCEncodeNAL: AVCEnc_Encoding_Frame 08-21 21:17:03.106: D/dalvikvm(15221): GC_FOR_ALLOC freed 297K, 5% free 11572K/12103K, paused 32ms, total 32ms 08-21 21:17:03.223: D/dalvikvm(15221): GC_FOR_ALLOC freed 297K, 5% free 11572K/12103K, paused 30ms, total 30ms 08-21 21:17:03.340: D/dalvikvm(15221): GC_FOR_ALLOC freed 297K, 5% free 11572K/12103K, paused 30ms, total 30ms 08-21 21:17:03.348: I/avenc_api(15221): PVAVCEncodeNAL AVCEnc_Encoding_Frame -> enc_state = AVCEnc_Analyzing_Frame 08-21 21:17:03.348: I/pvaencoder(15221): GetOuput (iEncStatus == AVCENC_PICTURE_READY) -> return EAVCEI_SUCCESS 08-21 21:17:03.348: I/System.out(15221): RtpVideoRecorder: captureThread: encodeResult == 0 08-21 21:17:03.356: W/System.err(15221): java.net.SocketException: sendto failed: EINVAL (Invalid argument) 08-21 21:17:03.356: W/System.err(15221): at libcore.io.IoBridge.maybeThrowAfterSendto(IoBridge.java:506) 08-21 21:17:03.356: I/pvaencoder(15221): Encode 08-21 21:17:03.356: W/System.err(15221): at libcore.io.IoBridge.sendto(IoBridge.java:475) 08-21 21:17:03.356: W/System.err(15221): at java.net.PlainDatagramSocketImpl.send(PlainDatagramSocketImpl.java:182) 08-21 21:17:03.356: W/System.err(15221): at java.net.DatagramSocket.send(DatagramSocket.java:284) 08-21 21:17:03.356: W/System.err(15221): at de.kp.net.rtp.RtpSocket.send(RtpSocket.java:131) 08-21 21:17:03.356: W/System.err(15221): at de.kp.net.rtp.RtpSender.send(RtpSender.java:79) 08-21 21:17:03.356: W/System.err(15221): at de.kp.net.rtp.stream.RtpOutputStream.transmit(RtpOutputStream.java:146) 08-21 21:17:03.356: W/System.err(15221): at de.kp.net.rtp.stream.RtpOutputStream.write(RtpOutputStream.java:86) 08-21 21:17:03.356: W/System.err(15221): at com.orangelabs.rcs.core.ims.protocol.rtp.CodecChain.doProcess(CodecChain.java:99) 08-21 21:17:03.356: W/System.err(15221): at com.orangelabs.rcs.core.ims.protocol.rtp.CodecChain.process(CodecChain.java:84) 08-21 21:17:03.356: W/System.err(15221): at com.orangelabs.rcs.core.ims.protocol.rtp.Processor.run(Processor.java:149) 08-21 21:17:03.356: W/System.err(15221): Caused by: libcore.io.ErrnoException: sendto failed: EINVAL (Invalid argument) 08-21 21:17:03.364: W/System.err(15221): at libcore.io.Posix.sendtoBytes(Native Method) 08-21 21:17:03.364: W/System.err(15221): at libcore.io.Posix.sendto(Posix.java:146) 08-21 21:17:03.364: W/System.err(15221): at libcore.io.BlockGuardOs.sendto(BlockGuardOs.java:177) 08-21 21:17:03.364: W/System.err(15221): at libcore.io.IoBridge.sendto(IoBridge.java:473) 08-21 21:17:03.364: W/System.err(15221): ... 9 more

msuzer commented 12 years ago

i have samsung s5830 (android 2.3.3 api 10). I tried h263 with api codec, it works right now (across vlc). native codecs and h264 api codec does not work.

spex66 commented 12 years ago

Thank you for your support offer lazy21tr!

regards Peter (=PA=)

On Tue, Aug 21, 2012 at 2:45 PM, lazy21tr notifications@github.com wrote:

Hi zhaoyujia11808;

can you describe your setup, so i may help you on this. please tell me about your network setup, your android device (API version) etc. And also copy paste the logcat output.

— Reply to this email directly or view it on GitHubhttps://github.com/spex66/RTSP-Camera-for-Android/issues/3#issuecomment-7899773.

msuzer commented 12 years ago

Hi Peter,

well, i just want to help for basic setup. for more complicated problems, you are the master :)

best,

spex66 commented 12 years ago

Hi lazy21tr,

No problem with that share :) But in my opinion the error seems to be not directly related to the source, but the app context. So, your support is very appreciated.

regards (=PA=)

On Tue, Aug 21, 2012 at 5:45 PM, lazy21tr notifications@github.com wrote:

Hi Peter,

well, i just want to help for basic setup. for more complicated problems, you are the master :)

best,

— Reply to this email directly or view it on GitHubhttps://github.com/spex66/RTSP-Camera-for-Android/issues/3#issuecomment-7905502.

zhaoyujia11808 commented 12 years ago

I just suppose this issues happen with api ,cpu . so can you share your test?

zhaoyujia11808 commented 12 years ago

I just think this happened wtih socket .Beacuse this issues happened with the same pad somtime it works OK

spex66 commented 12 years ago

Hi,

just for information: Which exact Android hardware are you using, and which exact Android Software Version?

regards (=PA=)

On Thu, Aug 23, 2012 at 10:35 AM, zhaoyujia11808 notifications@github.comwrote:

I just think this happened wtih socket .Beacuse this issues happened with the same pad somtime it works OK

— Reply to this email directly or view it on GitHubhttps://github.com/spex66/RTSP-Camera-for-Android/issues/3#issuecomment-7963239.

zhaoyujia11808 commented 12 years ago

i use pad android 4.0.3

zhaoyujia11808 commented 12 years ago

Hi Peter,
I think this may be happen in the java code somethings in rtsp beacuse the vlc reconneted quckily I am in the other side of the earth ,so time difference is serious. I am waiting for the truth