<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">IIRC, you need to send a NULL sample buffer to flush the pipeline before closing. (From memory)<br><br><div id="AppleMailSignature" dir="ltr">Sent from my iPhone</div><div dir="ltr"><br>On Jul 1, 2019, at 8:23 PM, Mert Gedik <<a href="mailto:gedikmert89@gmail.com">gedikmert89@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi team,<div><br></div><div>When I close the RTSP stream gracefully, the socket on the server seems still open, then We've realized that RTSP stack in ffmpeg doesn't close the connection. </div><div><br></div><div>With an hacky way, or workaround (see below), We are able to send RTSP Teardown message but when We stop streaming, still the socket on the server isn't closed properly.</div><div>Then, We tried with VLC and see that it's working, later We compared the wireshark captures of ffmpeg and vlc and see that VLC is also sending RTCP Goodbye message, and this makes the sockets on server close gracefully. How can We also send RTCP Goodbye message like VLC ?</div><div>Thanks in advance.</div><div><br></div><div>Regards,</div><div><br></div><div>MG</div><div><br></div><div><br></div><div><p style="margin:0px;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(8,250,149);background-color:rgb(0,0,0)"><span style="color:rgb(255,255,255)"> </span>RTSPState<span style="color:rgb(255,255,255)"> *r = (</span>RTSPState<span style="color:rgb(255,255,255)"> *)</span>avFormatCtx<span style="color:rgb(255,255,255)">-></span>priv_data<span style="color:rgb(255,255,255)">;</span></p>
<p style="margin:0px;font-stretch:normal;font-size:15px;line-height:normal;font-family:Menlo;color:rgb(8,250,149);background-color:rgb(0,0,0)"><span style="color:rgb(255,255,255)"> </span>ff_rtsp_send_cmd_async<span style="color:rgb(255,255,255)">(</span>avFormatCtx<span style="color:rgb(255,255,255)">, </span><span style="color:rgb(255,70,71)">"TEARDOWN"</span><span style="color:rgb(255,255,255)">, r-></span>control_uri<span style="color:rgb(255,255,255)">, </span><span style="color:rgb(222,56,165)">NULL</span><span style="color:rgb(255,255,255)">);</span></p></div></div></div></div></div>
</div></blockquote><blockquote type="cite"><div dir="ltr"><span>_______________________________________________</span><br><span>Libav-user mailing list</span><br><span><a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a></span><br><span><a href="https://ffmpeg.org/mailman/listinfo/libav-user">https://ffmpeg.org/mailman/listinfo/libav-user</a></span><br><span></span><br><span>To unsubscribe, visit link above, or email</span><br><span><a href="mailto:libav-user-request@ffmpeg.org">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".</span></div></blockquote></body></html>