[Live-devel] using stdin for live555MediaServer

Simon Brown sbrown at microvideo.co.uk
Tue Aug 25 02:51:59 PDT 2020


On 25/08/2020 10:44, Ross Finlayson wrote:
>> It would transpire that the onDemandRTSP server doesn't open stdin or pull data from it until it gets an RTSP request from the outside world.  But our encoder is pushing data out on stdout continuously.
> Why is it doing that?  Is it doing non-blocking writes to ’stdout’?  If so, then it probably shouldn’t.  If you do blocking writes to ’stdout’, and nothing is currently reading from the other side, then your encoder will just block until the other side needs data.

It does non-blocking writes because otherwise everything else stalls.  
We're only sending one of the streams to live555, the other streams 
can't stop just because no-one is pulling the RTSP stream.

Simon

-- 
Microvideo
Copley Hill Business Park
Cambridge Road
Babraham
CB22 3GN

tel: +44 1223 834119



More information about the live-devel mailing list