<HTML><BODY><div class="js-helper js-readmsg-msg"><div id="style_16621865200088296937"><div id="style_16621865200088296937_BODY"><div class="cl_799461"><div>Ok</div><div> </div><div>I found how to listen and read the incoming connection to which I am sending data using av_dict_set(&options, "rtsp_flags", "listen", 0) and avformat_open_input(&format_context, url, NULL, &options)</div><div><a href="https://stackoverflow.com/questions/43979720/how-to-listen-to-2-incoming-rtsp-streams-at-the-same-time-with-ffmpeg">https://stackoverflow.com/questions/43979720/how-to-listen-to-2-incoming-rtsp-streams-at-the-same-time-with-ffmpeg</a></div><div> </div><div>And I already knew how to write data to this connection using avformat_alloc_output_context2(&pFmtCtxOut, NULL, "rtsp", rtsp_url) and av_interleaved_write_frame.</div><div> </div><div>But how do I create a listening connection for rtsp clients???</div><div>Maybe I should also use a function avformat_alloc_output_context2 with a rtsp_flags listen?</div></div></div></div></div></BODY></HTML>