<div dir="ltr">Hi,<div><br></div><div>I have an application sending and receiving RTP streams (only RTP not RTSP), so I'm initializing my sender using something like this:</div><div><br></div><div>...</div><div><br></div><div>rtpOutFormatContext->flags |= AVFMT_FLAG_NONBLOCK;<br></div><div><div>rtpOutFormatContext->oformat = av_guess_format("rtp", NULL, NULL);</div><div>sprintf_s(rtpOutFormatContext->filename, sizeof(rtpOutFormatContext->filename),</div><div><span style="white-space:pre">             </span>  "rtp://%s:%d", ip, remotePort);</div><div>...</div><div><br></div><div>With my sender, everything works fine, including the RTCP flow that runs in remotePort+1.</div><div><br></div><div>In my receiver I'm using a SDP structure to start it:</div><div><br></div><div>...</div><div><br></div><div><div>rtpInFormatContext->iformat = av_find_input_format("sdp");</div><div>AVIOContext *ioContext = avio_alloc_context((unsigned char*)sdp, strlen(sdp), 0, NULL, NULL, NULL, NULL);<br></div><div>rtpInFormatContext->pb = ioContext;</div><div><br></div><div>avformat_open_input(&rtpInFormatContext, "", rtpInFormatContext->iformat, &options);</div><div>avformat_find_stream_info(rtpInFormatContext, NULL);</div><div>av_dump_format(rtpFormatContext, 0, rtpInFormatContext->filename, 0);</div></div><div><br></div><div>...</div><div><br></div><div>The receiver works fine as well, but there is no RTCP flow associated with it.</div><div><br></div><div>I tried to add:</div><div><br></div><div>av_dict_set(&options, "sdp_flags", "rtcp_to_source", 0);</div><div><br></div><div>but looks like it only works for RTSP streams.</div><div><br></div><div>Someone knows if there is a way to enable this RTCP flow? Or does libav API just implement RTCP RR using RTSP?</div><div><br></div><div>Regards,</div><div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><font color="#999999">Guilherme Longoni</font></span></div><div dir="ltr"><div><br></div></div></div></div></div></div></div></div></div></div></div>
</div></div></div>