how to use Gstreamer for rtsp proxy - streaming

I want to create an rtsp proxy where rtsp stream can be taken from one end and then need to stream the same(using rtsp) on other side.This is more of a rtsp relay but I wanted to trans code this relayed stream in between.
Can anyone suggest a way for doing this? I had considered Gstreamer for this, but that can act only as rtsp server, but I still don't know how to get the rtsp stream from other side and how to relay rtsp events.
Any existing library which can help me in achieving this? or If Gstreamer can be used in this way ?

Gstreamer should be able to use RTSP on input, there is rtspsrc element for it.

Related

Does ExoPlayer or AVFoundation work with an udpxy stream?

I'm building a frontend for a proprietary IPTV backend, which receives its channel streams via multicast, then for the end users it uses udpxy to convert the traffic from multicast to HTTP. However, neither ExoPlayer or AVFoundation seem to accept this stream (both the VLC app & flutter_vlc_player play this stream nicely) - I'm using the video_player plugin for Flutter, so I may miss over some live stream specific impls. Can anyone point me in the right direction? Thanks!
Media information (VLC):
udpxy: udpxy 1.0-23.12 (prod) standard [Linux 5.10.0-10-amd64 x86_64], the output stream is application/octet-stream (maybe that can cause some problems?)

DirectShow to RTSP to Kurento

I need to broadcast a DirectShow samples to Kurento using RTSP. Is there a good way to send RTSP from DirectShow?
So far I have tested with raw samples to HTTP endpoint, different leadtools solutions RTSP, Dash. But no luck so far!

Get RTSP stream on server from WebRTC

How can I get RTSP stream on server from WebRTC and then use it for my own purposes, for example, to retranslate it somewhere. Maybe there is some solution or library?
Any help is much appreciated!
Denis
If you are willing to hook into the webrtc code then this can be done easily by doing the following:
Build a native webrtc C++ client on server
If the codec used is H.264, tap the output (encoded frames) from H264 RTP receiver.
Use a third party library such as (http://www.live555.com/openRTSP/) to build a RTSP server out of it.
If vp8, you might as well tap the output of vp8 decoder and then use ffmpeg to create rtsp stream out of it. Or consider webm may be?

How to broadcast mp4 stream

I have mp4 stream available over HTTP to single client
How to broadcast it to multiple clients?
I can write code that will read MP4 stream over HTTP and copy to multiple clients.
But is there some initial frame, header in MP4 stream?
May be some framework or existing server can broadcast mp4 stream?
Use VLC, it has nice streaming possibilities (VLC is for Video Lan Client, by the way).
Just fire up VLC, go to File->Stream..., select the source you want to distribute, choose e.g. http as method, transcode (or don't), and select the port to listen on. From there on, your clients can connect :)

Linux server vlc to restream rtsp feed from ip cam

Im new i streaming so sorry for stupid questions, I tried to find info in web but nothing seems to work.
What Im trying to do
I have IP Cam that puts out RTSP stream to internet its IP is: rtsp://89.79.16.127:2550
When Im accessing that stream in windows VLC (win xp) every thing works (you can tryit for yourself)
Now I have dedicated linux debian serwer with ip: 109.95.153.133
I want to setup VLC serwer that will grap rtsp feed from camera IP and restream it via my serwer, so I can show that stream on my website (located on that dedicated serwer)
Can You help mi accomplish that?
Open VLC, select Open location from clipboard
Enter the proper camera url. For example, the axis M7014 streams in H264 so its url will look like rtsp://Camera-IP/axis-media/media.amp?codec=h264
Enter the login at the prompt or encode it to the rtsp link
rtsp://user:pass#Camera-IP/axis-media/media.amp?codec=INFO.)
If the stream is playing on the screen it means you support this codec. If not, then you shouldn't try to transcode it. For example, the axis M7014 uses an H264 variant that only quicktime fully supports.
The previous steps were to determine if you can transcode or if you should just forward the traffic.
Menu-Stream, select your RTSP as a source, then add an RTSP destination and stream. If you cant see the video play you can only forward it to a player that can. beware, some RTSP headers might get tweaked and disable the ability to pause video. I can looking for a fix right now.