<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 9, 2023 at 4:17 AM wolverin <<a href="mailto:wolverin82@mail.ru">wolverin82@mail.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><div> <blockquote style="border-left:1px solid rgb(8,87,166);margin:10px;padding:0px 0px 0px 10px">Суббота, 22 апреля 2023, 13:00 +05:00 от Paul B Mahol <<a href="mailto:onemda@gmail.com" target="_blank">onemda@gmail.com</a>>:<div id="m_8091080645550788302"><div><div><div id="m_8091080645550788302style_16821504530104705720_BODY"><div><div><div> </div><div><div>On Fri, Apr 21, 2023 at 3:12PM wolverin via Libav-user <<a href="//e.mail.ru/compose/?mailto=mailto%3alibav%2duser@ffmpeg.org" target="_blank">libav-user@ffmpeg.org</a>> wrote:</div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div> <blockquote style="border-left:1px solid rgb(8,87,166);margin:10px;padding:0px 0px 0px 10px">Пятница, 21 апреля 2023, 17:13 +05:00 от Yurii Monakov <<a href="//e.mail.ru/compose/?mailto=mailto%3amonakov.y@gmail.com" target="_blank">monakov.y@gmail.com</a>>:<br> <div id="m_8091080645550788302m_8877160941495967771_mr_css_attr"><div><div><div id="m_8091080645550788302m_8877160941495967771style_16820792101565684055_BODY_mr_css_attr"><div><div><div>Hi,</div> <div><div>The local screen is converted to mjpeg and streamed to localhost:</div><div> </div>ffmpeg -video_size 1024x768 -framerate 5 -f x11grab -i :1 -vcodec mjpeg -f mjpeg udp://<a href="http://127.0.0.1:8554" target="_blank">127.0.0.1:8554</a><br>ffplay -f mjpeg udp://<a href="http://127.0.0.1:8554" target="_blank">127.0.0.1:8554</a></div><div> </div><div><div> </div><div>This pair of commands work fine with ffmpeg 4.4.2</div></div><div> </div><div>Yurii</div><div> </div></div></div></div></div></div></div></blockquote><div>Thank you for paying attention to my problem, again!</div> <div>I am using ffmpeg 5.0 version, but I am not transferring localhost, but between different hosts or even the internet.</div><div>Of course, in the latter case, packet losses occur, but how to make the ffmpeg of the library process this correctly.</div><div>I set fifo_size to 100M, it reduced the number of other errors, but it didn't get rid of this one.</div></div></div></blockquote><div> </div><div>I doubt that udp protocol can handle packet losses reliably.</div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">_______________________________________________</blockquote></div></div></div></div></div></div></div></blockquote><div> </div><div><div><div>Initially, I wanted to forward packets via symmetric NAT, and it doesn't even matter if some frames are lost, the question is probably how to discard damaged frames?</div><div> </div><div>Perhaps you can recommend another protocol from ffmpeg, more suitable for my task???</div></div></div></div></div></blockquote><div><br></div><div>Over real physical network use protocol that can handle losses.</div><div>Also mjpeg format is not going to handle well losses via udp, mpegts might be better for that, but it does not support mjpeg video.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div> </div><div>Thank you if you respond.</div></div></div>
</blockquote></div></div>