[Live-devel] How to create a custom sink that streams to both the network and a local file

Ross Finlayson finlayson at live555.com
Thu Dec 8 11:41:59 PST 2011


> I'm currently doing a live camera streaming project that needs a history function. I've done some search and come to the solution of creating a custom sink that is the combination of MPEG4ESVideoRTPSink and FileSink, which will stream to both a local file and the network.

A simpler solution would be to write a new 'filter' class (i.e., a subclass of "FramedFilter") that simply delivers its input to its output, but also writes to a file.  Then, add an object of this class to the end of your data stream (i.e., before you feed it into a sink).  That way, you won't need to create (or modify) any "MediaSink" class at all.


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20111208/dcc2d9c7/attachment.html>


More information about the live-devel mailing list