[Live-devel] Buffered MPEG2-TS to RTP how-to

Ross Finlayson finlayson at live555.com
Thu Jun 21 15:02:02 PDT 2007


>Ok, after some hours of tinkering this (non-working) bit of code

I think you're misunderstanding what I have in mind.  You should not 
have to change *any* existing LIVE555 code (except to change 
"test.ts" to "stdin" in "testMPEG2TransportStreamer.cpp").  Instead, 
just run your MPEG-2 TS grabbing code in a separate process (that 
writes to stdout), and just pipe it to "testMPEG2TransportStreamer" 
using the command line - i.e.,

	yourGrabberApplication | testMPEG2TransportStreamer

Alternatively, if your Transport Stream source is available as a 
named file (e.g., device), then just run
	testMPEG2TransportStreamer < yourTransportStreamDeviceFileName

(It baffles me that so many Unix programmers these days seem to know 
so little about pipes, filters, and stdio.)
-- 

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


More information about the live-devel mailing list