[Live-devel] Problem with Amino set-top box.
Ross Finlayson
finlayson at live555.com
Wed Dec 27 11:37:18 PST 2006
> > However, I instead suggest that you use the
>> "testMPEG1or2ProgramToTransportStream" application (distributed in
>> the "testProgs" directory) to convert your Program Stream file to a
>> Transport Stream file. You can then stream this (using our RTSP
>> server applications) to an Amino STB.
>
>Thanks for the help so far.
>
>I have been looking into the source for all those test applications
>lately. Is there any way to transcode the program stream on the fly?
Yes. If you look at the code for the
"testMPEG1or2ProgramToTransportStream" demo application, you'll see
that reads from a "ByteStreamFileSource", and writes to a "FileSink".
You can replace the "ByteStreamFileSource" with a source object for
your Program Stream (or, if your Program Stream source is accessible
as a file, then you can simply continue using a
"ByteStreamFileSource", but with a different input file name).
Then, replace the "FileSink" with a "MPEG2TransportStreamFramer",
chained to a "SimpleRTPSink", as illustrated by the code for
"testMPEG2TransportStreamer" (multicast streaming) or
"MPEG2TransportFileServerMediaSubsession" (unicast streaming).
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list