Well, I have been experimenting with piping and I can get file descriptors for pipes using the pipe() call, but it seems that I need a FILE sctruct rather than a file descriptor. Any ideas how to convert one to the other?
Russell On 6/20/07, Russell Brennan <[EMAIL PROTECTED]> wrote:
Yes, I'm on RedHat 5... Piping it sounds liek a great idea to me, I'm going to try to put something together and I'll post some code snippets for future reference when I get things running smoothly. Thanks, Russell On 6/19/07, Ross Finlayson <[EMAIL PROTECTED]> wrote: > > >I am trying to take a buffer of MPEG2-TS data which is constantly > >written to, and hook it up to live555 for output via RTP. > > The best way to do this is to make your buffer an OS pipe, and then > just have your LIVE555-based application read from this. For > example, if you write your MPEG-2 TS data to standard output (in one > process), and then pipe this to your LIVE-555-based application (in > another process), that reads from "stdin" (see below). > > If you do this, then you won't have to modify any existing code > (except the name of the input file in "testMPEG2TransportStreamer"). > > > I am currently basing my work on the testMEPG2TransportStreamer > >code, but obviously this was designed to stream a file. > > Yes - however, the special file name "stdin" can be used to read from > standard input. > > (I'm assuming that you're running a Unix system (including Linux). > If instead you're running Windows, then I don't know what you'd do > (although I think Windows has 'named pipes').) > -- > > Ross Finlayson > Live Networks, Inc. > http://www.live555.com/ > _______________________________________________ > live-devel mailing list > [email protected] > http://lists.live555.com/mailman/listinfo/live-devel > -- Russell Brennan [EMAIL PROTECTED] (708) 699-7314
-- Russell Brennan [EMAIL PROTECTED] (708) 699-7314
_______________________________________________ live-devel mailing list [email protected] http://lists.live555.com/mailman/listinfo/live-devel
