I have figured out how to do this, so here is the basis of my code, and some
hanging unanswered questions... the code is mostly
testMPEG2TransportStreamer.cpp.
#include
#include
#include
#include "liveMedia.hh"
#include "BasicUsageEnvironment.hh"
#include "GroupsockHelper.hh"
// To stream usi
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 wh
>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 grabbi
Ok, after some hours of tinkering this (non-working) bit of code is what I
have come up with:
*
int pipeFile[2]; // Pipe file descriptors
FILE* fdFile;
if (pipe(pipeFile) == -1) // create the pipe
{ perror ("pipe");
exit(1);
}
if ((fdFile = fdopen(pipeFile
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
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
>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 da
Hello,
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. I am currently basing my
work on the testMEPG2TransportStreamer code, but obviously this was designed
to stream a file.
My current idea is not really panning out, du