<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi there,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So I am currently trying to decode a video that I encoded myself through the use of the library,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">after I have sent some packets and received some frames it eventually starts spitting out errors like this<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Missing reference picture, default is 65548<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">This error is printed 4 times right after the call to avcodec_send_packet<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Every subsequent call to avcodec_send_packet also prints this error except the number has been incremented by 8.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">There are some other errors that get printed later after 200-300 of the missing reference ones but I assume they are a symptom of this one.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">(examples of these would be “mmco: unref short failure”, “pps_id 3199971767 out of range”, “Invalid NAL unit 17, skipping.”, “slice type 32 too large at 31195135”, “decode_slice_header error”, “no frame!”, “illegal POC
 type 4” and “too many reference frames 32”)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Full log until first error:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Output #0, mp4, to 'D:\test_projects\test\trusting.mp4':<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">  Metadata:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">    major_brand     : isom<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">    minor_version   : 512<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">    compatible_brands: isomiso2avc1mp41<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">    encoder         : Lavf58.20.100<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 256x256, q=2-31, 133 kb/s, 60.02 fps, 60 tbr, 90k tbn, 120 tbc (default)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">   Metadata:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">      handler_name    : VideoHandler<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Parser not found, will try to encode without parsing.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Output #0, wav, to 'D:\test_projects\test\faraway.wav':<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[libx264 @ 0000015719378a00] MB rate (23040000) > level limit (16711680)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[libx264 @ 0000015719378a00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[libx264 @ 0000015719378a00] profile Progressive High, level 6.2, 4:2:0, 8-bit<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[libx264 @ 0000015719378a00] 264 - core 157 r2970 5493be8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=8 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2
 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=12 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=12 rc=abr mbtree=1 bitrate=200 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[aac @ 000001571937b2c0] Too many bits 32768.000000 > 12288 per frame requested, clamping to max<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Output #0, mp4, to 'D:\test_projects\test\interleaved.mp4':<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">    Stream #0:0: Video: h264, yuv420p, 256x256, q=2-31, 200 kb/s, 90k tbn<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">    Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp, 529 kb/s<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[h264 @ 0000015718f18880] Missing reference picture, default is 65548<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[h264 @ 0000015718f18880] Missing reference picture, default is 65548<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[h264 @ 0000015718f18880] Missing reference picture, default is 65548<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[h264 @ 0000015718f18880] Missing reference picture, default is 65548<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you in advance for any help you can provide<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Cheers<o:p></o:p></span></p>
</div>
</body>
</html>