<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hello libav-user folk,</div><div><br></div><div>I'm trying to build a streaming server of sorts, where I stream RTMP to the server, and it saves that stream as HLS. I'd like to support multiple streams at once. I've come up with an option that would be perfect for me: I'd like to be able to enter <font face="Courier New">rtmp://my-domain/foo</font><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"> in my client (the one producing the stream) and have the server automatically save that stream as <font face="Courier New">foo.m3u8</font></span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">. (I would accept the stream name as well, i.e. the <font face="Courier New">bar</font></span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"> in <font face="Courier New">rtmp://my-domain/foo/bar</font></span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">)</span></div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br></span></div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">I've come up with a way to do this as well: I'll run a tcp listener on port 1935, and whenever I get a connection, I'll use <font face="Courier New">avformat_open_input</font></span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"> with a custom <font face="Courier New">AVIOContext</font></span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"> that reads from that connection.</span></div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br></span></div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">The issue I still have is in figuring out what to name the output HLS file. Is there a way for me to figure out the app name that the remote is requesting (the <font face="Courier New">foo</font></span><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"> in the above example)?</span></div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br></span></div>Thank you,<br id="lineBreakAtBeginningOfSignature"><div dir="ltr">Lysander Mealy</div></body></html>