[Live-devel] Multicast live source

Ross Finlayson finlayson at live555.com
Thu Feb 25 16:17:29 PST 2021



> On Feb 25, 2021, at 12:14 PM, Hinchcliffe, Mark <Mark.Hinchcliffe at scientificgames.com> wrote:
> 
> I can run the live555ProxyServer, which if I understand correctly is unicast/multicast receiver, and unicast streamer.
> 
>  
> I’m hoping I might get a few pointers regarding how to set up a proxy server which is a multicast streamer.
> 
> I aim to receive a single live camera source via unicast, then stream this data back out via multicast.

If your live camera source is H.264 video-only (no audio), then the simplest way to do what you’re asking is to modify the “testH264VideoStreamer” demo application to read from ’stdin’ (rather than from a file), and then simply pipe the video output from your RTSP client into (your modified) “testH264VideoStreamer”.

Specifically:
	- Edit line 34 of “testH264VideoStreamer.cpp”, changing "test.264” to “stdin”.  Re-make “testH264VideoStreamer”.
	-Run
		openRTSP -v URL | your-modified-testH264VideoStreamer
	(replace URL with your back-end stream’s “rtsp://“ URL).  Note that the “-v” (lower-case “v”) option to “openRTSP” tells it to output video (only) to ’stdout’.

Alternatively, instead of “openRTSP”, you could use “testRTSPClient”, but modified to call
	FileSink::createNew(env, “stdout”)
instead of
	DummySink::createNew(env, … );
and then pipe (your modified) “testRTSPClient” into (your modified) “testH264VideoStreamer”, as above.  (If you use “testRTSPClient” this way, however, then you’ll only be able to access one back-end RTSP stream at a time.)

If, however, your stream is audio+video, then the possible solutions become much more complicated.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/




More information about the live-devel mailing list