I would love to be able to do this, but unfortunately this is just a small part of a larger system, and I need to be able to call it with one command line argument, so I can't use a shell pipe to do this (although I do think that you method will be an excellent way to verify that my system as a whole will work properly once all of the pipe code is in place).
<br><br>Sorry if I seem to know so little about unix pipes, I'm not an expert programmer by any means and I have never had to use pipes in the way that I am attempting to use them.<br><br>Russell<br><br><div><span class="gmail_quote">
On 6/21/07, <b class="gmail_sendername">Ross Finlayson</b> <<a href="mailto:finlayson@live555.com">finlayson@live555.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
>Ok, after some hours of tinkering this (non-working) bit of code<br><br>I think you're misunderstanding what I have in mind. You should not<br>have to change *any* existing LIVE555 code (except to change<br>"
test.ts" to "stdin" in "testMPEG2TransportStreamer.cpp"). Instead,<br>just run your MPEG-2 TS grabbing code in a separate process (that<br>writes to stdout), and just pipe it to "testMPEG2TransportStreamer"
<br>using the command line - i.e.,<br><br> yourGrabberApplication | testMPEG2TransportStreamer<br><br>Alternatively, if your Transport Stream source is available as a<br>named file (e.g., device), then just run<br>
testMPEG2TransportStreamer < yourTransportStreamDeviceFileName<br><br>(It baffles me that so many Unix programmers these days seem to know<br>so little about pipes, filters, and stdio.)<br>--<br><br>Ross Finlayson
<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a><br>_______________________________________________<br>live-devel mailing list<br><a href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com
</a><br><a href="http://lists.live555.com/mailman/listinfo/live-devel">http://lists.live555.com/mailman/listinfo/live-devel</a><br></blockquote></div><br><br clear="all"><br>-- <br>Russell Brennan<br><a href="mailto:RJBrennn@gmail.com">
RJBrennn@gmail.com</a><br>(708) 699-7314