Giter VIP home page Giter VIP logo

Comments (9)

iizukanao avatar iizukanao commented on August 27, 2024

Hi, thanks for your feedback! I will write an example code in a few days.
I will also add support for TCP/UDP since it seems relatively easy to implement.

from node-rtsp-rtmp-server.

notcoffeetable avatar notcoffeetable commented on August 27, 2024

I stubbed ANNOUNCE and RECORD. I think it needs to begging writing data received from the client which sent RECORD to a buffer (or maybe to the unix socket) where it can be read back out when a client requests play on that stream.

from node-rtsp-rtmp-server.

iizukanao avatar iizukanao commented on August 27, 2024

Currently this RTSP server has a very limited set of features (DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE), and it is intended for live streaming. I agree that ANNOUNCE method should be added. Adding support for RECORD seems a bit hard, but interesting.

from node-rtsp-rtmp-server.

notcoffeetable avatar notcoffeetable commented on August 27, 2024

The reason RECORD might be necessary is because many RTSP streaming application (such as FFMPEG) send a RECORD command in order to tell the server that it is going to begin sending video/audio data. It doesn't need to record to a file for use, only buffer the data to send to clients who send PLAY on the same stream.

from node-rtsp-rtmp-server.

iizukanao avatar iizukanao commented on August 27, 2024

Oh, do you want to feed video/audio data from ffmpeg to RTSP server using RECORD method? I thought that RECORD method is meant to be used for recording server-side streaming data. Currently this RTSP server receives video/audio data from UNIX domain sockets with custom format. I'm still not sure about the purpose of RECORD method. I need to look into that.

from node-rtsp-rtmp-server.

iizukanao avatar iizukanao commented on August 27, 2024

Sorry, now I understand the usage of ANNOUNCE and RECORD. It is going to be a little hard to implement, but these methods are better than the custom protocol which is incompatible with other software, so I will give it a try.

from node-rtsp-rtmp-server.

notcoffeetable avatar notcoffeetable commented on August 27, 2024

Yeah, i understand it isn't the point of this project and I'm willing to work on the network stuff myself, I'd just like an example of sending video to the Unix Domain Socket so I can test out stuff.

Thanks.

from node-rtsp-rtmp-server.

iizukanao avatar iizukanao commented on August 27, 2024

Sorry for being late! Just added example codes. Feeding audio/video data via TCP and UDP are now implemented, but UDP is not efficient as expected. It may stem from Node's internal implementation of UDP API.

ANNOUNCE and RECORD are not implemented yet.

from node-rtsp-rtmp-server.

GsandeepR avatar GsandeepR commented on August 27, 2024

Hi, I am sending feed from my App instead of ffmpeg.But I am unable to play output.While debugging I got to know getStreamByRTSPUDPAddress is returning null .Even rtspUploadingClients has my App information ,why it is returning undefined.
app

from node-rtsp-rtmp-server.

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.