[Live-devel] using stdin for live555MediaServer

Simon Brown sbrown at microvideo.co.uk
Fri Aug 21 07:11:29 PDT 2020


Hi,

I'm trying to send a live transport stream over RTSP.  I initially 
tested with testMPEG2TransportStreamer having modified it to pull from 
stdin and got results, though there was significant picture break 
up/dropped frames because it was using UDP.  So instead I've started 
using live555MediaServer because that can do the same thing.  I've 
gratuitously modified 
MPEG2TransportFileServerMediaSubsession::createNewStreamSource to change 
liveStream.ts to "stdin" on the filename.

If I now run the server with cat test.ts | live555MediaServer and then 
go to "rtsp://192.168.1.14/liveStream.ts" on VLC on a different machine 
I can view that ts.  However, if I then connect my encoder to stdin (via 
"C" pipes, as worked for testMPEG2TransportStreamer) then VLC complains 
that it can't open the file.  Is there any accepted technique for this?

Any other clues as to what I might be doing wrong?

Regards,

Simon



More information about the live-devel mailing list