<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div dir="auto"><span style="font-family: Roboto, Arial, Helvetica, sans-serif; font-size: 14.3px; line-height: 1.5; display: inline !important; color: rgb(85, 85, 85); background-color: rgb(255, 255, 255);">Hi,</span><br style="border: none; box-sizing: border-box; margin: 0px; font-family: Roboto, Arial, Helvetica, sans-serif; font-size: 14.3px; line-height: 1.5; color: rgb(85, 85, 85); background-color: rgb(255, 255, 255);">
<span style="font-family: Roboto, Arial, Helvetica, sans-serif; font-size: 14.3px; line-height: 1.5; display: inline !important; color: rgb(85, 85, 85); background-color: rgb(255, 255, 255);">I am using the h264_v4l2m2m decoder with libavcodec on a Raspberry
Pi Zero 2 running Bookworm OS. My codec has the AV_CODEC_CAP_DELAY capability set, which means "The decoder has a non-zero delay" (reference:<span> </span></span><a href="https://ffmpeg.org/doxygen/6.0/group__lavc__core.html#ga3f55f5bcfbb12e06c7cb1195028855e6" class="postlink" data-outlook-id="865aac38-2c7b-486e-8b87-41920aa723e4" data-linkindex="0" style="border: none; box-sizing: border-box; margin: 0px; text-decoration: none; unicode-bidi: embed; font-family: Roboto, Arial, Helvetica, sans-serif; font-size: 14.3px; line-height: 1.5; color: rgb(211, 85, 119); background-color: rgb(255, 255, 255);">https://ffmpeg.org/doxygen/6.0/group__l
... 95028855e6</a><span style="font-family: Roboto, Arial, Helvetica, sans-serif; font-size: 14.3px; line-height: 1.5; display: inline !important; color: rgb(85, 85, 85); background-color: rgb(255, 255, 255);">). I have observed that the decoder stores N encoded
frames before outputting a decoded frame, and the value of N varies depending on the resolution, with higher resolution leading to a larger N. It means i have a delay in decoding about N*time_per_frame (e.g., at 25 fps, time_per_frame=40 milliseconds).</span><br style="border: none; box-sizing: border-box; margin: 0px; font-family: Roboto, Arial, Helvetica, sans-serif; font-size: 14.3px; line-height: 1.5; color: rgb(85, 85, 85); background-color: rgb(255, 255, 255);">
<br style="border: none; box-sizing: border-box; margin: 0px; font-family: Roboto, Arial, Helvetica, sans-serif; font-size: 14.3px; line-height: 1.5; color: rgb(85, 85, 85); background-color: rgb(255, 255, 255);">
<span style="font-family: Roboto, Arial, Helvetica, sans-serif; font-size: 14.3px; line-height: 1.5; display: inline !important; color: rgb(85, 85, 85); background-color: rgb(255, 255, 255);">Is there a way to reduce this N value?</span><br style="border: none; box-sizing: border-box; margin: 0px; font-family: Roboto, Arial, Helvetica, sans-serif; font-size: 14.3px; line-height: 1.5; color: rgb(85, 85, 85); background-color: rgb(255, 255, 255);">
<br style="border: none; box-sizing: border-box; margin: 0px; font-family: Roboto, Arial, Helvetica, sans-serif; font-size: 14.3px; line-height: 1.5; color: rgb(85, 85, 85); background-color: rgb(255, 255, 255);">
<span style="font-family: Roboto, Arial, Helvetica, sans-serif; font-size: 14.3px; line-height: 1.5; display: inline !important; color: rgb(85, 85, 85); background-color: rgb(255, 255, 255);">Thanks,</span><br style="border: none; box-sizing: border-box; margin-top: 0px; font-family: Roboto, Arial, Helvetica, sans-serif; font-size: 14.3px; line-height: 1.5; margin-bottom: 0px !important; color: rgb(85, 85, 85); background-color: rgb(255, 255, 255);">
<span style="font-family: Roboto, Arial, Helvetica, sans-serif; font-size: 14.3px; line-height: 1.5; display: inline !important; color: rgb(85, 85, 85); background-color: rgb(255, 255, 255);">Alessandro</span><br>
</div>
<div id="ms-outlook-mobile-signature" dir="auto">
<div><br>
</div>
Inviato da <a href="https://aka.ms/AAb9ysg">Outlook per Android</a></div>
</body>
</html>