title: Streaming over RTSP using nodejs
body: <p>I am trying to stream a (.mp4) file through my nodejs server using RTSP. I searched a lot and got stumbled upon this:</p>
  
  <p><a href="https://github.com/iizukanao/node-rtsp-rtmp-server" rel="nofollow">node-rstp-server</a></p>
  
  <p>which really looks promising. </p>
  
  <p>I tried streaming the video over rtsp and testing in VLC media player as provided in the docs like: rtps://localhost:8080/video.mp4 and the vlc is unable to play any video. The doc for the above says that you can access streamed video using file path directly which clearly doesn't work over RTSP.</p>
  
  <p>I did some more research and found that RTSP requires a SDP to be constructed first. What is the best way to construct a proper SDP and then RTSP it on a specific port using a path.</p>
  
  <p><code>(e.g rstp://112.332.3.1:8493/someFilePath)</code> </p>
  
  <p>Excuse the terminology if it looks a bit weird, I am new to all this. I am working in a nodejs ecosystem on the server side which can easily implement a ffmpeg and my client is going to be a simple html5 app over cordova.</p>