RTSP-Camera-for-Android icon indicating copy to clipboard operation
RTSP-Camera-for-Android copied to clipboard

I can't work it,help me

Open zhaoyujia11808 opened this issue 12 years ago • 13 comments

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

zhaoyujia11808 avatar Aug 20 '12 14:08 zhaoyujia11808

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.

msuzer avatar Aug 21 '12 12:08 msuzer

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"[email protected]; 发送时间: 2012年8月21日(星期二) 晚上8:45 收件人: "spex66/RTSP-Camera-for-Android"[email protected]; 抄送: "zhaoyujia11808"[email protected]; 主题: 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 avatar Aug 21 '12 13:08 zhaoyujia11808

------------------ 原始邮件 ------------------ 发件人: "lazy21tr"[email protected]; 发送时间: 2012年8月21日(星期二) 晚上8:45 收件人: "spex66/RTSP-Camera-for-Android"[email protected]; 抄送: "zhaoyujia11808"[email protected]; 主题: 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 avatar Aug 21 '12 13:08 zhaoyujia11808

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

zhaoyujia11808 avatar Aug 21 '12 13:08 zhaoyujia11808

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.

msuzer avatar Aug 21 '12 14:08 msuzer

Thank you for your support offer lazy21tr!

regards Peter (=PA=)

On Tue, Aug 21, 2012 at 2:45 PM, lazy21tr [email protected] 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.

spex66 avatar Aug 21 '12 14:08 spex66

Hi Peter,

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

best,

msuzer avatar Aug 21 '12 15:08 msuzer

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 [email protected] 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.

spex66 avatar Aug 21 '12 16:08 spex66

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

zhaoyujia11808 avatar Aug 22 '12 01:08 zhaoyujia11808

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

zhaoyujia11808 avatar Aug 23 '12 08:08 zhaoyujia11808

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 [email protected]:

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.

spex66 avatar Aug 23 '12 13:08 spex66

i use pad android 4.0.3

zhaoyujia11808 avatar Aug 23 '12 15:08 zhaoyujia11808

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

zhaoyujia11808 avatar Aug 25 '12 08:08 zhaoyujia11808