<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi,</div>

<div> </div>

<div>i want to use ffmpeg/libav to decode h264/h265 videos (sound not needed) on Windows 10, Visual Studio 2019.</div>

<div> </div>

<div>I used the precompiled Windows Libraries from gyan.dev (latest release 5.0.1 Full).</div>

<div>As example videos i used the <a href="https://test-videos.co.uk/bigbuckbunny/mp4-h264" target="_blank">https://test-videos.co.uk/bigbuckbunny/mp4-h264</a> in 1280x720 (and also the h256 version).</div>

<div> </div>

<div>I think i have to change the codec to:</div>

<div>
<pre style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;">codec<span style="color: rgb(192,192,192);"> </span>=<span style="color: rgb(192,192,192);"> </span>avcodec_find_decoder(AV_CODEC_ID_H264);</pre>

<div> </div>

<div>My problem is that the av_parser_parse2 method seems not to find a packet or loads the whole file as one packet which i cant decode.</div>

<div> </div>

<div>I tried other codec like
<pre style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;"><span style="font-weight: 700;">AV_CODEC_ID_MPEG4, </span></pre>

<pre style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;"><span style="font-weight: 700;">AV_CODEC_ID_HEVC,</span></pre>

<div>
<pre style="margin-top: 0.0px;margin-bottom: 0.0px;margin-left: 0.0px;margin-right: 0.0px;text-indent: 0.0px;"><span style="font-weight: 700;">AV_CODEC_ID_H265</span></pre>

<div> </div>

<div><span style="font-weight: 700;">None of that works for me. </span>I also used an older version off ffmpeg that i used for video encoding years before, that also wont work.</div>

<div> </div>

<div>What did i miss? Or is this a bug?</div>

<div> </div>

<div>Best Regards</div>

<div> </div>
</div>
</div>
</div>

<div> </div></div></body></html>