<HTML><BODY><div class="js-helper js-readmsg-msg"><div id="style_16733320160828481647"><div id="style_16733320160828481647_BODY"><div class="cl_423590"><div>Hi, I'm trying to modify ffserver.c of the old version to use rtps server.</div><div> </div><div>If I send an rtsp/rtp stream via <strong><em>av_write_frame(pFmtCtxOut, ppktout)</em></strong> to rtsp-simple-server and watch it in VLC, then there are no errors, I install pts/dts myself in my source.</div><div> </div><div>But if I send x264 encoded packets via udp protocol to a connection implemented so as not to use temporary files.</div><div> </div><div><div><div> AVDictionary * pDicStm = NULL;</div><div> av_dict_set(&pDicStm, "rtsp_flags", "listen", 0);</div><div> av_dict_set(&pDicStm, "protocol_whitelist", "tcp,udp,rtp", 0);</div><div> av_dict_set(&pDicStm, "rtsp_transport", "udp", 0);</div><div> av_dict_set(&pDicStm, "allowed_media_types", "video", 0);</div><div> av_dict_set(&pDicStm, "max_delay", "5000000", 0);</div><div> avformat_open_input(&pFmtCtxStm, rtsp_url, NULL, &pDicStm);</div></div></div><div> </div><div><div><div>Then when reading from such a connection, I see errors</div></div></div><div> </div><div><div><div><div><div>[rtsp @ ] max delay reached. need to consume packet</div><div>[rtsp @ ] RTP: missed 17 packets</div><div>[rtsp @ ] max delay reached. need to consume packet</div><div>[rtsp @ ] RTP: missed 10 packets</div><div>[rtsp @ ] jitter buffer full</div><div>[rtsp @ ] RTP: missed 50 packets</div><div>[rtsp @ ] max delay reached. need to consume packet</div><div>[rtsp @ ] RTP: missed 33 packets</div><div>[rtsp @ ] max delay reached. need to consume packet</div><div>[rtsp @ ] RTP: missed 1 packets</div></div></div><div> </div><div>Increasing max_delay only increases the number of messages jitter buffer full</div><div> </div><div><span style="color: rgb(0, 0, 0); font-family: Arial, Helvetica, sans-serif; font-size: 24px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgba(7, 28, 71, 0.05); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">Is it possible to defeat packet loss somehow?</span></div></div></div></div></div></div></div></BODY></HTML>