[Live-devel] live streaming from a file

Ross Finlayson finlayson at live555.com
Tue Nov 29 00:49:59 PST 2011


> My requirement needs a live mpeg ts stream for testing some media players. I would like to simulate a live streaming by looping a *.ts file in my server (lack of encoders and live source), so that the connecting clients will not start playing the stream from beginning of the file always.

The easiest way to do this is to develop a server that appears to be reading from a live input source
	(see http://www.live555.com/liveMedia/faq.html#liveInput-unicast for details)
but have the input source be your own subclass (that you would write) of "ByteStreamFileSource" that handles reads ("doGetNextFrame()") by looping through the file, and never actually generating "file closed" events.


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/20111129/443fc1c6/attachment.html>


More information about the live-devel mailing list