[Live-devel] How to create ProxyServer with "Environment Pool"

Ross Finlayson finlayson at live555.com
Tue Dec 6 06:08:14 PST 2016


> But it seem you misunderstood my idea

No I didn’t.


> , I want to create multiple thread to reduce latency in receiving and sending content, for example, I want to proxy 60 cameras, my server has 4 cores so I want split 15 cameras in one thread aka environment, so here I have an environment pool that contains 4 environments, each dedicate for 15 cams. So can we do this?

First, please read the FAQ; in particular
	http://live555.com/liveMedia/faq.html#threads
(as you were asked to do before posting to the mailing list)

The existing “LIVE555 Proxy Server” application is single-threaded.  However, if you really want to, you could run 4 parallel copies of the application, each using a different ‘front end’ RTSP port number - e.g., from the command line:
	live555ProxyServer -p 8554 &
	live555ProxyServer -p 8555 &
	live555ProxyServer -p 8556 &
	live555ProxyServer -p 8557 &

Note that this runs 4 separate *processes*, rather than 4 separate threads within a single process.  (Because the "LIVE555 Proxy Server” application is single-threaded (using events rather than threads for concurrency), there is no way to run a single instance of this application so that it uses multiple threads.


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




More information about the live-devel mailing list