Giter Club home page Giter Club logo

camrecorder's People

Contributors

calc86 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

camrecorder's Issues

Не получается собрать проект: зависимости...

Зависимости

import org.oasis_open.docs.wss._2004._01.oasis_200401_wss_wssecurity_utility_1_0.AttributedDateTime;
import org.onvif.ver10.media.wsdl.*;
import org.w3._2003._05.soap_envelope.Body;

не очень понятно, где и как можно закачать. их нет, например, в https://github.com/Calc86/camRecorder/blob/master/httpRecorder.iml - не очень понятно, как можно с ними собрать проект? поиск в интернете такие пакеты не дает...

видимо слишком большое sdp?

Эмулирую rtsp-камеру, вот такое тело (с sdp):

S -> C
RTSP/1.0 200 OK
CSeq: 2
Content-Type: application/sdp
Content-Base: rtsp://localhost:6666/autostream/
Server: GStreamer RTSP server
Date: Thu, 21 Aug 2014 09:40:33 GMT
Content-Length: 276

v=0
o=- 123456 1 IN IP4 127.0.0.1
s=123456
i=rtsp-server
e=NONE
t=0 0
a=tool:GStreamer
a=type:broadcast
a=control:*
a=range:npt=0,000000-119,961667
m=video 59820 RTP/AVP 26
c=IN IP4 127.0.0.1
a=rtpmap:26 JPEG/90000
a=control:stream=0

А у camRecorder-a происходит:

[2014-08-21 01:40:33] INFO(ru.xsrv.net.rtsp.Rtsp readReply): RTSP/1.0 200 OK
CSeq: 2
Content-Type: application/sdp
Content-Base: rtsp://127.0.0.1:6666/autostream/
Server: GStreamer RTSP server
Date: Thu, 21 Aug 2014 09:40:33 GMT
Content-Length: 234

java.net.SocketException: Socket operation on nonsocket: recv failed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:150)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.net.SocketInputStream.read(SocketInputStream.java:107)
at ru.xsrv.net.utils.AsyncBufferedInputStream$ReaderThread.run(AsyncBufferedInputStream.java:84)
at java.lang.Thread.run(Thread.java:722)
Exception in thread "Thread-4" java.lang.NullPointerException
at ru.xsrv.recorder.server.ArchiveRotator.move(ArchiveRotator.java:62)
at ru.xsrv.recorder.server.ArchiveRotator.close(ArchiveRotator.java:67)
at ru.xsrv.recorder.server.Server.rtsp(Server.java:233)
at ru.xsrv.recorder.server.Server.access$000(Server.java:25)
at ru.xsrv.recorder.server.Server$CamHolder.run(Server.java:42)
at java.lang.Thread.run(Thread.java:722)

Подебажил, но не понял из-за чего. Если что, ответ сервера формировался вот так:

RTSPBufferedWriter.write("Content-Type: application/sdp" + CRLF +
                    "Content-Base: rtsp://127.0.0.1:6666/autostream" + EXTENSION + "/" + CRLF +
                    "Server: GStreamer RTSP server" + CRLF +
                    "Date: " + dateFormat.format(new Date()) + CRLF +
                    "Content-Length: 234" + CRLF +  //248
                    "" + CRLF +
                    "v=0" + CRLF +
                    "o=- " + RTSP_ID + " 1 IN IP4 127.0.0.1" + CRLF +
                    "s=" + RTSP_ID + CRLF +
                    "i=rtsp-server" + CRLF +
                    "e=NONE" + CRLF +
                    "t=0 0" + CRLF +
                    "a=tool:GStreamer" + CRLF +
                    "a=type:broadcast" + CRLF +
                    "a=control:*" + CRLF +
                    //"a=range:npt=0,000000-119,961667" + CRLF +
                    "a=range:npt=0,000000-" + CRLF +
                    //"m=audio "+RTP_dest_port+" RTP/AVP "+MJPEG_TYPE+CRLF +
                    "m=video 0 RTP/AVP " + MJPEG_TYPE + CRLF +
                    "c=IN IP4 127.0.0.1" + CRLF +
                    //"a=rtpmap:96 JPEG/90000" +CRLF+   PCMU/8000
                    "a=rtpmap:" + MJPEG_TYPE + " JPEG/90000" + CRLF +
                    "a=control:stream=0" + CRLF);
        }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.