<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div>I'm interested in streaming from a camera using HLS. I've looked at the<br>live555MediaServer application and the liveMedia/DeviceSource.cpp code.<br>I can't seem to modify the live555MediaServer app in order to not make<br>it use a .tsx file, which sorta makes me think the FAQ link<br><a href="http://www.live555.com/liveMedia/faq.html#liveInput">http://www.live555.com/liveMedia/faq.html#liveInput</a> is the way to go.<br>As I'm completely new to live555 I was hoping someone could say HLS from<br>a camera is possible</div></blockquote><div><br></div>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".</div><div><br></div><div>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.)</div><div><br></div><div>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.</div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>