Giter VIP home page Giter VIP logo

Comments (4)

ngraziano avatar ngraziano commented on July 20, 2024 1

Hi,

I made some research the only specification I can found is this document : https://opensource.apple.com/source/QuickTimeStreamingServer/QuickTimeStreamingServer-412.42/Documentation/RTSP_Over_HTTP.pdf

If I understand well the client send an initial GET request to "establish" the tunnel, when the client want to send data it send an POST request and when it need data it send a GET request (when it wait for a response)
To include in sharprtsp you will need to make an other IRtspTransport with return (for GetStream) a custom Stream which make the HTTP request.

Actually I'm between jobs, so I don't have access to CCTV camera to make some test. Wireshark capture of a dialog may be interesting

Some links I have found
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/main/subprojects/gst-plugins-base/gst-libs/gst/rtsp/gstrtspconnection.c
https://www.happytimesoft.com/knowledge/rtsp-over-http.html
https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/rtsp.c with RTSP_MODE_TUNNEL

from sharprtsp.

RogerHardiman avatar RogerHardiman commented on July 20, 2024 1

I started to implement it with SharpRTSP being the server but never finished it.
I used the Apple document and used ffmpeg's 'ffplay' command to connect to my test code to so I could see what the HTTP Headers were like.
The main thing was accepting two TCP connections and using information in the HTTP Headers so you know which TCP sockets are the pair needed to send and receive.
Then the code that reads and writes the normal RTSP socket needs a wrapper so instead of reading/writing one socket, it has to work with two TCP sockets

from sharprtsp.

Revan1985 avatar Revan1985 commented on July 20, 2024

Wireshark-over http samsung.zip

Hello ngrazioano,
I am attaching a zip file with a wireshark for an rtsp over http, as exposed by a program called ODM (OnvifDM, useful for onvif find).
I am not sure this is what correctly needed, as this uses onvif for discovery and connection, but I think is almost what setup by the Rtsp over Http tunneling.
Let me know if can be usefull.
I have understood what is needed to do, will try to implement it, and maybe, when will works, to merge in the main code...

Have a nice day

from sharprtsp.

Revan1985 avatar Revan1985 commented on July 20, 2024

We can consider this closed with pull #98

from sharprtsp.

Related Issues (20)

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.