[Live-devel] HTTP Live Streaming from a camera advice

Ross Finlayson finlayson at live555.com
Tue May 15 13:14:02 PDT 2012


> I'm interested in streaming from a camera using HLS. I've looked at the
> live555MediaServer application and the liveMedia/DeviceSource.cpp code.
> I can't seem to modify the live555MediaServer app in order to not make
> it use a .tsx file, which sorta makes me think the FAQ link
> http://www.live555.com/liveMedia/faq.html#liveInput  is the way to go.
> As I'm completely new to live555 I was hoping someone could say HLS from
> a camera is possible

No, unfortunately it's not currently possible to use our server code to support HLS from a live source.  The reason for this is that our implementation implements HLS by seeking within the input source (as specified by the segment denoted in the 'm3u' playlist), and live input sources are not seekable.  Note line 124 of "liveMedia/RTSPServerSupportingHTTPStreaming.cpp".

This is why we currently support HLS only on streams that come from seekable files.  (And Transport Stream files, to be seekable, have to have a corresponding ".tsx" file.)

To implement HLS on a live source, one would have to develop an appropriate "ServerMediaSubsession" subclass that sits in front of the live source, caching recent data, and presenting this cached data - to the server - as a seekable object.  (You'd also have to make changes to the playlist.)  This is probably doable, but would be a lot of work.

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/20120515/cda9bd0d/attachment.html>


More information about the live-devel mailing list